diff options
| 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 |
| commit | 4eb4708ec5358a2c2f069c58aa3284320242d026 (patch) | |
| tree | 063f1adeb5f768028edbf2c0de1cb30f17de2f8e /archaeological_context_records/templates | |
| parent | eb599665e28f5800d9d5abe3551933e3f6b0507f (diff) | |
| download | Ishtar-4eb4708ec5358a2c2f069c58aa3284320242d026.tar.bz2 Ishtar-4eb4708ec5358a2c2f069c58aa3284320242d026.zip | |
Display generation button for relation image on the sheet
Diffstat (limited to 'archaeological_context_records/templates')
| -rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 17 |
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> |
