From 7504bd00a2309cbac5b28539f169e3b3f0f49f7d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 23 Mar 2017 20:39:14 +0100 Subject: [PATCH] (mvc) volt templates scope issues, closes https://github.com/opnsense/core/issues/1500 --- .../mvc/app/views/layout_partials/base_form.volt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/opnsense/mvc/app/views/layout_partials/base_form.volt b/src/opnsense/mvc/app/views/layout_partials/base_form.volt index 5a4a85c68..04b2e3e05 100644 --- a/src/opnsense/mvc/app/views/layout_partials/base_form.volt +++ b/src/opnsense/mvc/app/views/layout_partials/base_form.volt @@ -101,6 +101,16 @@ data_title : data-title to set on form {% else %} {{ partial("layout_partials/form_input_tr",field)}} {% endif %} + + {# looks a bit buggy in the volt templates, field parameters won't reset properly here #} + {% set advanced=false %} + {% set help=false %} + {% set style=false %} + {% set hint=false %} + {% set style=false %} + {% set maxheight=false %} + {% set width=false %} + {% set allownew=false %} {% endfor %} {% if apply_btn_id|default('') != '' %}