From dd9b59226238ed98235d1edaa1fbd65f825a5a77 Mon Sep 17 00:00:00 2001 From: Alexander Watzinger Date: Thu, 16 Nov 2023 16:23:08 +0100 Subject: [PATCH] Template formatting --- openatlas/templates/entity/update.html | 6 +- .../templates/forms/reference_field.html | 16 +- .../templates/forms/table_multi_select.html | 20 +-- openatlas/templates/forms/table_select.html | 28 ++-- .../templates/forms/tree_multi_select.html | 146 +++++++++--------- 5 files changed, 109 insertions(+), 107 deletions(-) diff --git a/openatlas/templates/entity/update.html b/openatlas/templates/entity/update.html index fceef0126..56e0edb88 100644 --- a/openatlas/templates/entity/update.html +++ b/openatlas/templates/entity/update.html @@ -2,8 +2,8 @@ {% block content %} {% if entity.class_.view not in ['artifact', 'place'] %}
- {{ form|display_form(manual_page='entity/' + entity.class_.view)|safe }} - {{ entity.class_.view|display_citation_example|safe }} + {{ form|display_form(manual_page='entity/' + entity.class_.view)|safe }} + {{ entity.class_.view|display_citation_example|safe }}
{% else %}
@@ -20,7 +20,7 @@
- + diff --git a/openatlas/templates/forms/reference_field.html b/openatlas/templates/forms/reference_field.html index c85e39ea0..f506e188b 100644 --- a/openatlas/templates/forms/reference_field.html +++ b/openatlas/templates/forms/reference_field.html @@ -9,18 +9,18 @@ name="reference_system_id_{{ field.reference_system_id }}" type="text" class="{{ config.CSS.string_field }}" - data-reference-system="{{ field.label.text.replace(' ','-') }}"/> - + data-reference-system="{{ field.label.text.replace(' ','-') }}">
- - +
diff --git a/openatlas/templates/forms/table_multi_select.html b/openatlas/templates/forms/table_multi_select.html index 85d9e192f..6b957251e 100644 --- a/openatlas/templates/forms/table_multi_select.html +++ b/openatlas/templates/forms/table_multi_select.html @@ -25,8 +25,7 @@ id="{{ field.id }}-button" class="{{ config.CSS.button.secondary }}" onclick="$('#{{ field.id }}-modal').modal('show')" - tabindex="0" - > + tabindex="0"> {{ _('change')|uc_first }} @@ -59,13 +58,14 @@ diff --git a/openatlas/templates/forms/table_select.html b/openatlas/templates/forms/table_select.html index f72e47d1e..ac9eb6f8e 100644 --- a/openatlas/templates/forms/table_select.html +++ b/openatlas/templates/forms/table_select.html @@ -9,8 +9,7 @@ readonly="readonly" value="{{ selection }}" onclick="$('#{{ field.id }}-modal').modal('show')" - tabindex="0" - > + tabindex="0">
+ {{ _(add_dynamical)|uc_first }}
{% endif %} +