diff options
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> |
