From 216ea12666892397cd145cdef3c40d37b3df22a7 Mon Sep 17 00:00:00 2001
From: Marius Burkard <m.burkard@pixcept.de>
Date: Wed, 16 Dec 2015 11:03:28 -0500
Subject: [PATCH] - Changed template events (reduced php code and needed template code)
---
interface/web/sites/templates/web_vhost_domain_edit.htm | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/interface/web/sites/templates/web_vhost_domain_edit.htm b/interface/web/sites/templates/web_vhost_domain_edit.htm
index d28f0b7..230c8d0 100644
--- a/interface/web/sites/templates/web_vhost_domain_edit.htm
+++ b/interface/web/sites/templates/web_vhost_domain_edit.htm
@@ -13,7 +13,7 @@
</tmpl_if>
- {tmpl_hook name="begin_form" value="web_vhost_domain_edit"}
+ {tmpl_hook name="begin_form"}
<tmpl_if name="vhostdomain_type" value="domain">
<tmpl_if name="is_admin">
<div class="form-group">
@@ -222,32 +222,29 @@
{tmpl_var name='php'}
</select></div>
</div>
- {tmpl_hook name="begin_field" value="web_vhost_domain_edit:fastcgi_php_version"}
+ {tmpl_hook name="field_fastcgi_php_version"}
<div class="form-group fastcgi_php_version">
<label for="fastcgi_php_version" class="col-sm-3 control-label">{tmpl_var name='fastcgi_php_version_txt'}</label>
<div class="col-sm-9"><select name="fastcgi_php_version" id="fastcgi_php_version" class="form-control">
{tmpl_var name='fastcgi_php_version'}
</select></div>
</div>
- {tmpl_hook name="end_field" value="web_vhost_domain_edit:fastcgi_php_version"}
- {tmpl_var name="directive_snippets_id"}
- {tmpl_hook name="begin_field" value="web_vhost_domain_edit:enable_pagespeed"}
+ {tmpl_var name="directive_snippets_id"}
+ {tmpl_hook name="field_enable_pagespeed"}
<div class="form-group nginx pagespeed">
<label class="col-sm-3 control-label">{tmpl_var name='enable_pagespeed_txt'}</label>
<div class="col-sm-9">
{tmpl_var name="enable_pagespeed"}
</div>
</div>
- {tmpl_hook name="end_field" value="web_vhost_domain_edit:enable_pagespeed"}
- {tmpl_hook name="begin_field" value="web_vhost_domain_edit:active"}
+ {tmpl_hook name="field_active"}
<div class="form-group">
<label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label>
<div class="col-sm-9">
{tmpl_var name='active'}
</div>
</div>
- {tmpl_hook name="end_field" value="web_vhost_domain_edit:active"}
- {tmpl_hook name="end_form" value="web_vhost_domain_edit"}
+ {tmpl_hook name="end_form"}
<input type="hidden" name="id" value="{tmpl_var name='id'}">
--
Gitblit v1.9.1