summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-06 08:59:53 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-06 08:59:53 +0200
commit6dfabea03aa0c92206c77d99a07c775e80f787e8 (patch)
treef8169dfe9b3ccd6cf914a6bca51596e266c8a6eb /archaeological_finds
parent32cead7cc527095fcc65f0a49ba0be8c458ae2ee (diff)
downloadIshtar-6dfabea03aa0c92206c77d99a07c775e80f787e8.tar.bz2
Ishtar-6dfabea03aa0c92206c77d99a07c775e80f787e8.zip
Static grid to jqgrid
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index c5d3eb638..429a7da2b 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -102,7 +102,10 @@
{% if forloop.counter0 %}<hr/>{% endif %}
{% endfor %}
-<table class='simple'>
+{% if not item.source.count %}
+ <p class='alert'>{% trans "No document associated to this find" %}</p>
+{% else %}
+<table class='simple' id='{{window_id}}-docs'>
<caption>{%trans "Documents"%}</caption>
<tr>
<th>{% trans "Title" %}</th>
@@ -118,8 +121,12 @@
<td class='string'>{% if doc.associated_url %}<a href='{{doc.associated_url}}'>{% trans "Link"%}</a>{% endif %}</td>
</tr>
{% empty %}
- <tr><td colspan="4" class='no_items'>{% trans "No document associated to this find" %}</td></tr>
{% endfor %}
</table>
+<script type='text/javascript'>
+tableToGrid('#{{window_id}}-docs', {});
+</script>
+{% endif %}
+
{% endblock %}