diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-25 12:57:00 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-25 12:57:00 +0100 |
| commit | d9112d6231e45671cf4eda59ff93035a0bcc72af (patch) | |
| tree | 8c7b16e0f32c77b4a12f1cdfec5c568638c20130 /archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html | |
| parent | bc6a1747e2677580cbed970cb895b558961acd3a (diff) | |
| download | Ishtar-d9112d6231e45671cf4eda59ff93035a0bcc72af.tar.bz2 Ishtar-d9112d6231e45671cf4eda59ff93035a0bcc72af.zip | |
Change archaeological sites form (more robust)
Diffstat (limited to 'archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html')
| -rw-r--r-- | archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html b/archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html new file mode 100644 index 000000000..d72291c5b --- /dev/null +++ b/archaeological_operations/templates/ishtar/blocks/window_tables/archaeologicalsites.html @@ -0,0 +1,20 @@ +{% load i18n %} +<table class='simple'> + <caption>{{caption}}</caption> + <tr> + <th>{% trans "Ref." %}</th> + <th>{% trans "Name" %}</th> + <th>{% trans "Periods" %}</th> + <th>{% trans "Remains" %}</th> + </tr> + {% for archaeosite in data %} + <tr> + <td class='string'>{{archaeosite.reference}}</td> + <td class='string'>{{archaeosite.name}}</td> + <td class='string'>{% for period in archaeosite.periods.all %}{{period}}{% include "blocks/comma_list.html" %}{% endfor %}</td> + <td class='string'>{% for remain in archaeosite.remains.all %}{{remain}}{% include "blocks/comma_list.html" %}{% endfor %}</td> + </tr> + {% empty %} + <tr><td colspan="4" class='no_items'>{% trans "No archaeological site associated" %}</td></tr> + {% endfor %} +</table> |
