diff --git a/interface/web/mail/mail_domain_edit.php b/interface/web/mail/mail_domain_edit.php index bf22cdaf917f8a432ba0efc82cdbb9268b4b70aa..477e0b7b69aa0c010210756c875fa31450ca9724 100644 --- a/interface/web/mail/mail_domain_edit.php +++ b/interface/web/mail/mail_domain_edit.php @@ -111,6 +111,13 @@ class page_action extends tform_actions { unset($policy_select); unset($tmp_user); + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 'disabled="disabled"'); + } else { + $app->tpl->setVar("edit_disabled", ''); + } + parent::onShowEnd(); } diff --git a/interface/web/mail/templates/mail_domain_edit.htm b/interface/web/mail/templates/mail_domain_edit.htm index 64332fbc520ab2a66b5f2cfe4189be42fa148437..62174947ea37aadca2f2f8ab8d20778d616eaa3b 100644 --- a/interface/web/mail/templates/mail_domain_edit.htm +++ b/interface/web/mail/templates/mail_domain_edit.htm @@ -1,49 +1,49 @@ -

- -
- -
-
Domain - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {tmpl_var name='active'} - -
- - - - -
- - -
-
- -
+

+ +
+ +
+
Domain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {tmpl_var name='active'} + +
+ + + + +
+ + +
+
+ +
diff --git a/interface/web/sites/templates/web_domain_edit.htm b/interface/web/sites/templates/web_domain_edit.htm index 0a92965e741e1e23bbbad5762fec7d096cfa9d93..e79557246dc16d2642b9f06d0e32f1cd85bb11d0 100644 --- a/interface/web/sites/templates/web_domain_edit.htm +++ b/interface/web/sites/templates/web_domain_edit.htm @@ -7,7 +7,7 @@ - + diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php index 63854fa960990b9387b85ce9e4f178b08e552b88..15c8fa81bed3a0c8af3300a66330c539ad90cb14 100644 --- a/interface/web/sites/web_domain_edit.php +++ b/interface/web/sites/web_domain_edit.php @@ -185,6 +185,13 @@ class page_action extends tform_actions { } + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 'disabled="disabled"'); + } else { + $app->tpl->setVar("edit_disabled", ''); + } + parent::onShowEnd(); }