summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/sheet_dating_list.html
blob: f4ec6c33ab67dfa824d0df2c437c5bd820948dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% load i18n %}
<table id='{{window_id}}-datings' class="table table-striped">
    <tr>
        <th>{% trans "Reference" %}</th>
        <th>{% trans "Chronological period" %}</th>
        <th>{% trans "Start date" %}</th>
        <th>{% trans "End date" %}</th>
        <th>{% trans "Dating type" %}</th>
        <th>{% trans "Quality" %}</th>
        <th>{% trans "Precise on this dating" %}</th>
        {% if can_change %}<th colspan='2'></th>{% endif %}
    </tr>
    {% for dating in dating_list %}
    <tr>
        <td>
            {{dating.reference|default:"-"}}
        </td>
        <td>
            {{dating.period|default:"-"}}
        </td>
        <td>
            {{dating.start_date|default_if_none:"-"}}
        </td>
        <td>
            {{dating.end_date|default_if_none:"-"}}
        </td>
        <td>
            {{dating.dating_type|default_if_none:"-"}}
        </td>
        <td>
            {{dating.quality|default_if_none:"-"}}
        </td>
        <td>
            {{dating.precise_dating|default_if_none:"-"}}
        </td>
        {% if can_change %}
        <td>
            <a class="btn btn-success btn-sm" title="Modifier" href="/geo/edit/37130/?find_id=94034&amp;back_url=/find_search/%3Fopen_item=46434"><i class="fa fa-pencil"></i></a>
        </td>
        <td>
            <a class="btn btn-danger btn-sm" title="Supprimer" href="/geo/delete/37130/?find_id=94034&amp;back_url=/find_search/%3Fopen_item=46434">
            <i class="fa fa-trash"></i></a>

        </td>
        {% endif %}
    </tr>
    {% empty %}<tr>
        <td colspan='9'>{% trans "No datation attached." %}</td>
    </tr>{% endfor %}
</table>
{% if can_change %}<div class="text-center mb-2">
    <a class="btn btn-qa btn-success" href="#"
      data-target="{% url url_dating|add:'-add' item.pk %}">
        <i class="fa fa-plus"></i> &nbsp;{% trans "dating" %}
    </a>
</div>
{% endif %}