diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-11-27 11:26:55 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | 8355b16b1ae2f213de8d9f98221227f587e3b29f (patch) | |
tree | 300713d38252ed0fb9d25e48e8499b29523b7985 /ishtar_common/templates/ishtar | |
parent | eb7e96c07ad61a6e66fa8fd94f80fa317a99afb0 (diff) | |
download | Ishtar-8355b16b1ae2f213de8d9f98221227f587e3b29f.tar.bz2 Ishtar-8355b16b1ae2f213de8d9f98221227f587e3b29f.zip |
Documents: dynamic filter of support and medium by document type - collapse related fields on edition
Diffstat (limited to 'ishtar_common/templates/ishtar')
-rw-r--r-- | ishtar_common/templates/ishtar/forms/document.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ishtar_common/templates/ishtar/forms/document.html b/ishtar_common/templates/ishtar/forms/document.html index ed5a39daf..8e2683a03 100644 --- a/ishtar_common/templates/ishtar/forms/document.html +++ b/ishtar_common/templates/ishtar/forms/document.html @@ -13,18 +13,18 @@ <div class='form{% if not form.SEARCH_AND_SELECT %} container{% endif %}'> {% if form.non_field_errors or form.errors %} <div class="alert alert-danger"> - <div><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> - {% trans "Error on validation. Check all your fields. Modification not saved." %} + <div><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> + {% trans "Error on validation. Check all your fields. Modification not saved." %} + </div> + {% for key, error_details in form.errors.items %} + {% with field=key|from_dict:form.fields %}<strong>{{ field.label }}</strong>{{error_details}}{% endwith %} + {% endfor %} </div> - {% for error in form.non_field_errors %} - <p>{{ error }}</p> - {% endfor %} - {% for key, error_details in form.errors.items %} - {% with field=key|from_dict:form.fields %}<strong>{{ field.label }}</strong>{{error_details}}{% endwith %} - {% endfor %} -</div> {% endif %} - {% bs_form form %} + {% if item_related_label %}<div class="alert alert-info"> + <strong>{% trans "Related items" %}{% trans ":" %}</strong> {{ item_related_label }} + </div>{% endif %} + {% bs_form form 0 True %} </div> {% endblock %} |