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 c44eb36ca..62026f52d 100644
--- a/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
+++ b/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
@@ -34,6 +34,25 @@ label : dialog label
#}
+{%- macro base_dialog_header(header_text) %}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{header_text}} |
+
+
+
+{%- 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 %}
@@ -86,22 +105,7 @@ label : dialog label
{% set help=false %}
{% if field['type'] == 'header' %}
{# close table and start new one with header #}
-
-
-
-
-
-
-
-
-
-
-
-
- {{field['label']}} |
-
-
-
+ {{ base_dialog_header(field['label']) }}
{% else %}
{{ partial("layout_partials/form_input_tr",field)}}
{% endif %}