From 6faa859d7dc69ee873bda8e5e695ce4332462435 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 Sep 2019 19:03:52 +0200 Subject: Forms: manage conditionnal field inside a same form with JS --- ishtar_common/templates/blocks/bs_field_snippet.html | 2 +- ishtar_common/templates/blocks/bs_form_snippet.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html index b89727327..644f7f433 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 show_field_number or form.show_field_number %} diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index 98d9e0fe6..124ecfb5e 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -125,3 +125,5 @@ $(register_advanced_search); {% endif %} + +{{form.extra_render|safe}} -- cgit v1.2.3