summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-06-07 13:34:38 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-06-07 15:45:15 +0200
commitd55a5ec58047dc53118dce1d3aecbeb398cf57de (patch)
treed940054e928f217004cb4694027c3b4ff44fcb29 /ishtar_common/templates/ishtar/blocks
parent5f6514859cc06841d7bfb0919f98b72168eeade9 (diff)
downloadIshtar-d55a5ec58047dc53118dce1d3aecbeb398cf57de.tar.bz2
Ishtar-d55a5ec58047dc53118dce1d3aecbeb398cf57de.zip
🐛 Sheet: add missing fields, improve layout (refs #5863, #5864, #5865, #5866, #5867, #5868, #5869, #5870, #5871, #5872)
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_address_section.html2
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_dating_list.html33
2 files changed, 34 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_address_section.html b/ishtar_common/templates/ishtar/blocks/sheet_address_section.html
index 80dbc07a4..5f577c9c9 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_address_section.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_address_section.html
@@ -5,6 +5,6 @@
<dd>
<pre>{% if item.get_address %}{{item.get_address}}{% endif %}{% if item.get_address_complement %}
{{item.get_address_complement}}{% endif %}{% if item.get_postal_code or item.get_town or item.get_precise_town %}
-{{item.get_postal_code}} {% if item.get_precise_town %}{{item.get_precise_town}}{% else %}{{item.get_town}}{% endif %}{% endif %}</pre>
+{{item.get_postal_code}} {% if item.get_precise_town %}{{item.get_precise_town.name}}{% else %}{{item.get_town}}{% endif %}{% endif %}</pre>
</dd>
</dl>{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_dating_list.html b/ishtar_common/templates/ishtar/blocks/sheet_dating_list.html
new file mode 100644
index 000000000..6135bbf77
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/sheet_dating_list.html
@@ -0,0 +1,33 @@
+{% load i18n %}
+<table id='{{window_id}}-datings' class="table table-striped">
+ <tr>
+ <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>
+ </tr>
+ {% for dating in dating_list %}
+ <tr>
+ <td>
+ {{dating.period}}
+ </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>
+ </tr>
+ {% endfor %}
+</table>