Commit f730946c authored by Ad Schellevis's avatar Ad Schellevis

(proxy) improve gui code by using the xml template for form handling

parent 623a72fc
...@@ -37,6 +37,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -37,6 +37,7 @@ class IndexController extends \OPNsense\Base\IndexController
public function indexAction() public function indexAction()
{ {
$this->view->title = "Proxy Server"; $this->view->title = "Proxy Server";
$this->view->mainForm = $this->getForm("main");
$this->view->pick('OPNsense/Proxy/index'); $this->view->pick('OPNsense/Proxy/index');
} }
} }
This diff is collapsed.
...@@ -102,9 +102,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -102,9 +102,7 @@ POSSIBILITY OF SUCH DAMAGE.
</td> </td>
</tr> </tr>
{% for field in subtab[2]|default({})%} {% for field in subtab[2]|default({})%}
{% if field['disable']|default(false) == false %}
{{ partial("layout_partials/form_input_tr",field) }} {{ partial("layout_partials/form_input_tr",field) }}
{% endif %}
{% endfor %} {% endfor %}
<tr> <tr>
<td colspan="3"><button class="btn btn-primary" id="save_{{subtab[0]}}" type="button"><b>Apply </b><i id="frm_{{subtab[0]}}_progress" class=""></i></button></td> <td colspan="3"><button class="btn btn-primary" id="save_{{subtab[0]}}" type="button"><b>Apply </b><i id="frm_{{subtab[0]}}_progress" class=""></i></button></td>
...@@ -151,9 +149,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -151,9 +149,7 @@ POSSIBILITY OF SUCH DAMAGE.
</td> </td>
</tr> </tr>
{% for field in tab[2]|default({})%} {% for field in tab[2]|default({})%}
{% if field['disable']|default(false) == false %}
{{ partial("layout_partials/form_input_tr",field)}} {{ partial("layout_partials/form_input_tr",field)}}
{% endif %}
{% endfor %} {% endfor %}
<tr> <tr>
<td colspan="3"><button class="btn btn-primary" id="save_{{tab[0]}}" type="button"><b>Apply </b><i id="frm_{{tab[0]}}_progress" class=""></i></button></td> <td colspan="3"><button class="btn btn-primary" id="save_{{tab[0]}}" type="button"><b>Apply </b><i id="frm_{{tab[0]}}_progress" class=""></i></button></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment