From 6d7d2dccc6e99e8e12d9bd91ccee23add7408840 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 24 Mar 2017 11:38:42 +0100 Subject: [PATCH] test fix for https://forum.opnsense.org/index.php?topic=4860 --- .../views/layout_partials/base_dialog.volt | 36 ++++++++---------- .../app/views/layout_partials/base_form.volt | 37 ++++++++----------- 2 files changed, 32 insertions(+), 41 deletions(-) diff --git a/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt b/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt index 8226061ed0a..9ad35bc7f7a 100644 --- a/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt +++ b/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt @@ -34,25 +34,6 @@ label : dialog label #} -{%- macro base_dialog_header(field) %} - - - -
- - - - - - - - - - - - -{%- endmacro %} - {# Volt templates in php7 have issues with scope sometimes, copy input values to make them more unique #} {% set base_dialog_id=id %} {% set base_dialog_fields=fields %} @@ -111,7 +92,22 @@ label : dialog label {% set allownew=false %} {% if field['type'] == 'header' %} {# close table and start new one with header #} - {{ base_dialog_header(field) }} + +

{{field['label']}}

+
+
+ + + + + + + + + + + + {% else %} {{ partial("layout_partials/form_input_tr",field)}} {% endif %} 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 5a4a85c686b..2ab362e40a8 100644 --- a/src/opnsense/mvc/app/views/layout_partials/base_form.volt +++ b/src/opnsense/mvc/app/views/layout_partials/base_form.volt @@ -34,26 +34,6 @@ data_title : data-title to set on form #} -{# close table and reopen for new header#} -{%- macro base_dialog_header(field) %} - -

{{field['label']}}

-
-
- - - - - - - - - - - - -{%- endmacro %} - {# Find if there are help supported or advanced field on this page #} {% set base_form_id=id %} {% set help=false %} @@ -97,7 +77,22 @@ data_title : data-title to set on form {% for field in fields|default({})%} {% if field['type'] == 'header' %} {# close table and start new one with header #} - {{ base_dialog_header(field) }} + +

{{field['label']}}

+
+
+ + + + + + + + + + + + {% else %} {{ partial("layout_partials/form_input_tr",field)}} {% endif %}

{{field['label']}}