diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-07 11:31:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:59:31 +0200 |
commit | 98e33994e42a0d5ee7cd1142922265589a6cb519 (patch) | |
tree | 1b5645a807777e15ed588713695b6402ab227225 /archaeological_files/templates | |
parent | 1d3f7f13296636b2e1054cf31eb6b007f5e91c2b (diff) | |
download | Ishtar-98e33994e42a0d5ee7cd1142922265589a6cb519.tar.bz2 Ishtar-98e33994e42a0d5ee7cd1142922265589a6cb519.zip |
Preventive file form: improve price agreement form (+ edit button, redirect)
Diffstat (limited to 'archaeological_files/templates')
-rw-r--r-- | archaeological_files/templates/ishtar/forms/preventive_detail.html | 10 | ||||
-rw-r--r-- | archaeological_files/templates/ishtar/forms/preventive_price_agreement.html | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/archaeological_files/templates/ishtar/forms/preventive_detail.html b/archaeological_files/templates/ishtar/forms/preventive_detail.html index 9ad5c4802..59ebb8278 100644 --- a/archaeological_files/templates/ishtar/forms/preventive_detail.html +++ b/archaeological_files/templates/ishtar/forms/preventive_detail.html @@ -1,6 +1,16 @@ {% extends "ishtar/forms/base_form.html" %} {% load i18n table_form %} +{% block form_head %} +<div class="text-right"> + <a class="btn btn-success mb-3" href="{% url 'file-edit-preventive-price' file.pk %}"> + <i class="fa fa-pencil" aria-hidden="true"></i> + {% trans "Change price agreement" %} + </a> +</div> + +{% endblock %} + {% block bs_form_inlines %} <div class="card"> <div class="card-body"> diff --git a/archaeological_files/templates/ishtar/forms/preventive_price_agreement.html b/archaeological_files/templates/ishtar/forms/preventive_price_agreement.html new file mode 100644 index 000000000..d5d8a9319 --- /dev/null +++ b/archaeological_files/templates/ishtar/forms/preventive_price_agreement.html @@ -0,0 +1,10 @@ +{% extends "ishtar/forms/base_form.html" %} +{% load i18n %} + +{% block extra_validation_button %} +<div class="col-sm"> + <a href="{% url 'display-item' 'file' file.pk %}" class="btn btn-secondary" role="button" aria-pressed="true"> + {% trans "Back to the file" %} + </a> +</div> +{% endblock %} |