summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates/ishtar
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-05-01 20:09:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:43:58 +0200
commiteac44d3169c682e183d962f99d21a1e44354d37b (patch)
tree063f1adeb5f768028edbf2c0de1cb30f17de2f8e /archaeological_context_records/templates/ishtar
parentf8eca001008f0e07c6a2a38e78c1af5db415940a (diff)
downloadIshtar-eac44d3169c682e183d962f99d21a1e44354d37b.tar.bz2
Ishtar-eac44d3169c682e183d962f99d21a1e44354d37b.zip
Display generation button for relation image on the sheet
Diffstat (limited to 'archaeological_context_records/templates/ishtar')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index dd0579271..d8d89e3c2 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -86,10 +86,23 @@
<img src="{{item.relation_image.url}}" class="img-fluid img-thumbnail">
{% if output != "ODT" %}</a>{% endif %}
</div>
-<hr>
-{% endif %}
{% endif %}
+{% if DOT_GENERATION %}
+<p class="text-center mt-1">
+ <a class="btn btn-secondary"
+ onclick="long_wait();return true;"
+ href="{% url 'generate-relation-image-contextrecord' item.pk %}">
+ {% if item.relation_image %}
+ {% trans "Re-generate image" %}
+ {% else %}
+ {% trans "Generate image" %}
+ {% endif %}
+ </a>
+</p>
+{% endif %}
+<hr>
+{% endif %}
{% if item.operation %}
<h3>{% trans "Operation summary"%}</h3>