blob: 468da6bf6b9d2c748ece70a633045059db5dc175 (
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
58
59
60
61
|
{% 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 and dating.pk %}
<td>
<a class="btn btn-qa btn-success btn-sm" title="{% trans 'Modify' %}"
href="#" data-target="{% url url_dating|add:'-modify' item.pk dating.pk %}">
<i class="fa fa-pencil"></i></a>
</td>
<td>
<a class="btn btn-qa-confirm btn-danger btn-sm" title="{% trans 'Delete' %}"
href="#" data-target="{% url url_dating|add:'-delete' dating.pk %}"
data-confirm="{% trans 'Are you sure you want to delete this datation? (no undo)' %}"'>
<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> {% trans "dating" %}
</a>
</div>
{% endif %}
|