From 4a667d1fa3722dad53eaf7d426b15bfee77143db Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 26 Dec 2017 11:41:09 +0000 Subject: [PATCH] sysutils/nut: use partials for tabbed forms --- .../mvc/app/views/OPNsense/Nut/index.volt | 51 ++----------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/sysutils/nut/src/opnsense/mvc/app/views/OPNsense/Nut/index.volt b/sysutils/nut/src/opnsense/mvc/app/views/OPNsense/Nut/index.volt index ce33ec2c3..e8fdcd68f 100644 --- a/sysutils/nut/src/opnsense/mvc/app/views/OPNsense/Nut/index.volt +++ b/sysutils/nut/src/opnsense/mvc/app/views/OPNsense/Nut/index.volt @@ -1,6 +1,6 @@ {# # Copyright (C) 2017 Michael Muenz - # Copyright (C) 2014–2017 Deciso B.V. + # Copyright (C) 2014-2017 Deciso B.V. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -86,54 +86,9 @@
- {% for tab in settings['tabs']|default([]) %} - {% if tab['subtabs']|default(false) %} - {# Tab with dropdown #} - {% for subtab in tab['subtabs']|default({})%} -
- {{ partial("layout_partials/base_form",['fields':subtab[2],'id':'frm_'~subtab[0],'data_title':subtab[1],'apply_btn_id':'save_'~subtab[0]]) }} -
- {% endfor %} - {% endif %} - {% if tab['subtabs']|default(false)==false %} -
- {{ partial("layout_partials/base_form",['fields':tab[2],'id':'frm_'~tab[0],'apply_btn_id':'save_'~tab[0]]) }} -
- {% endif %} - {% endfor %} + {{ partial("layout_partials/base_tabs_content",['formData':settings]) }}