From cc6d9d22d724fb39a5b7d30255e6bab2adc78763 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 9 Jul 2021 19:20:12 +0200 Subject: Preventive file: work on inlines --- ishtar_common/templates/blocks/bs_field_snippet.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html index beecf624f..86ec89e84 100644 --- a/ishtar_common/templates/blocks/bs_field_snippet.html +++ b/ishtar_common/templates/blocks/bs_field_snippet.html @@ -1,5 +1,5 @@ {% load i18n %} -
{% if field.label %}{{ field.label_tag }}{% endif %} {% if extra_field_label %}{% endif %} @@ -7,17 +7,24 @@ {% if field.field.order_number %} {{field.field.order_number}} {% endif %}{% endif %} - {% if field.help_text %} + {% if field.help_text or field.field.unit %}
{% endif %} {{field|safe}} - {% if field.help_text %} + {% if field.help_text or field.field.unit %} + {% if field.field.unit %} + + {{field.field.unit}} + + {% endif %} + {% if field.help_text %} + {% endif %} {% if field.errors %}
{{ field.errors }} @@ -25,11 +32,11 @@
- {{field.help_text}} + {{field.hep_text}}
{% endif %} - {% if field.errors and not field.help_text %} + {% if field.errors and not field.help_text and not field.unit %}
{{ field.errors }}
{% endif %} -- cgit v1.2.3