Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
b9472639
Commit
b9472639
authored
Mar 05, 2009
by
tbrehm
Browse files
disable some fields in edit mode.
parent
32f2ded5
Changes
4
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_domain_edit.php
View file @
b9472639
...
...
@@ -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
();
}
...
...
interface/web/mail/templates/mail_domain_edit.htm
View file @
b9472639
<h2><tmpl_var
name=
"list_head_txt"
></h2>
<div
class=
"panel panel_mail_domain"
>
<div
class=
"pnl_formsarea"
>
<fieldset
id=
"wf_area_mail_domain"
><legend>
Domain
</legend>
<tmpl_if
name=
"is_admin"
>
<span
class=
"wf_oneField"
>
<label
for=
"server_id"
class=
"wf_preField"
>
{tmpl_var name='server_id_txt'}
</label>
<select
id=
"server_id"
name=
"server_id"
>
{tmpl_var name='server_id'}
</select>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"client_group_id"
class=
"wf_preField"
>
{tmpl_var name='client_txt'}
</label>
<select
id=
"client_group_id"
name=
"client_group_id"
>
{tmpl_var name='client_group_id'}
</select>
</span>
</tmpl_if>
<tmpl_if
name=
"is_reseller"
>
<span
class=
"wf_oneField"
>
<label
for=
"client_group_id"
class=
"wf_preField"
>
{tmpl_var name='client_txt'}
</label>
<select
id=
"client_group_id"
name=
"client_group_id"
>
{tmpl_var name='client_group_id'}
</select>
</span>
</tmpl_if>
<span
class=
"wf_oneField"
>
<label
for=
"domain"
class=
"wf_preField"
>
{tmpl_var name='domain_txt'}
</label>
<input
type=
"text"
id=
"domain"
name=
"domain"
value=
"{tmpl_var name='domain'}"
size=
"30"
maxlength=
"255"
>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"policy"
class=
"wf_preField"
>
{tmpl_var name='policy_txt'}
</label>
<select
id=
"policy"
name=
"policy"
>
{tmpl_var name='policy'}
</select>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"active"
class=
"wf_preField"
>
{tmpl_var name='active_txt'}
</label>
<span
class=
""
>
{tmpl_var name='active'}
</span>
</span>
</fieldset>
<input
type=
"hidden"
name=
"id"
value=
"{tmpl_var name='id'}"
>
<input
type=
"hidden"
name=
"type"
value=
"local"
>
<div
class=
"wf_actions buttons"
>
<button
class=
"positive iconstxt icoPositive"
type=
"button"
value=
"{tmpl_var name='btn_save_txt'}"
onClick=
"submitForm('pageForm','mail/mail_domain_edit.php');"
><span>
{tmpl_var name='btn_save_txt'}
</span></button>
<button
class=
"negative iconstxt icoNegative"
type=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
onClick=
"loadContent('mail/mail_domain_list.php');"
><span>
{tmpl_var name='btn_cancel_txt'}
</span></button>
</div>
</div>
</div>
<h2><tmpl_var
name=
"list_head_txt"
></h2>
<div
class=
"panel panel_mail_domain"
>
<div
class=
"pnl_formsarea"
>
<fieldset
id=
"wf_area_mail_domain"
><legend>
Domain
</legend>
<tmpl_if
name=
"is_admin"
>
<span
class=
"wf_oneField"
>
<label
for=
"server_id"
class=
"wf_preField"
>
{tmpl_var name='server_id_txt'}
</label>
<select
id=
"server_id"
name=
"server_id"
{
tmpl_var
name=
'edit_disabled'
}
>
{tmpl_var name='server_id'}
</select>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"client_group_id"
class=
"wf_preField"
>
{tmpl_var name='client_txt'}
</label>
<select
id=
"client_group_id"
name=
"client_group_id"
>
{tmpl_var name='client_group_id'}
</select>
</span>
</tmpl_if>
<tmpl_if
name=
"is_reseller"
>
<span
class=
"wf_oneField"
>
<label
for=
"client_group_id"
class=
"wf_preField"
>
{tmpl_var name='client_txt'}
</label>
<select
id=
"client_group_id"
name=
"client_group_id"
>
{tmpl_var name='client_group_id'}
</select>
</span>
</tmpl_if>
<span
class=
"wf_oneField"
>
<label
for=
"domain"
class=
"wf_preField"
>
{tmpl_var name='domain_txt'}
</label>
<input
type=
"text"
id=
"domain"
name=
"domain"
value=
"{tmpl_var name='domain'}"
size=
"30"
maxlength=
"255"
>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"policy"
class=
"wf_preField"
>
{tmpl_var name='policy_txt'}
</label>
<select
id=
"policy"
name=
"policy"
>
{tmpl_var name='policy'}
</select>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"active"
class=
"wf_preField"
>
{tmpl_var name='active_txt'}
</label>
<span
class=
""
>
{tmpl_var name='active'}
</span>
</span>
</fieldset>
<input
type=
"hidden"
name=
"id"
value=
"{tmpl_var name='id'}"
>
<input
type=
"hidden"
name=
"type"
value=
"local"
>
<div
class=
"wf_actions buttons"
>
<button
class=
"positive iconstxt icoPositive"
type=
"button"
value=
"{tmpl_var name='btn_save_txt'}"
onClick=
"submitForm('pageForm','mail/mail_domain_edit.php');"
><span>
{tmpl_var name='btn_save_txt'}
</span></button>
<button
class=
"negative iconstxt icoNegative"
type=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
onClick=
"loadContent('mail/mail_domain_list.php');"
><span>
{tmpl_var name='btn_cancel_txt'}
</span></button>
</div>
</div>
</div>
interface/web/sites/templates/web_domain_edit.htm
View file @
b9472639
...
...
@@ -7,7 +7,7 @@
<tmpl_if
name=
"is_admin"
>
<span
class=
"wf_oneField"
>
<label
for=
"server_id"
class=
"wf_preField"
>
{tmpl_var name='server_id_txt'}
</label>
<select
id=
"server_id"
name=
"server_id"
onChange=
"loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)"
>
{tmpl_var name='server_id'}
</select>
<select
id=
"server_id"
name=
"server_id"
onChange=
"loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)"
{
tmpl_var
name=
'edit_disabled'
}
>
{tmpl_var name='server_id'}
</select>
</span>
<span
class=
"wf_oneField"
>
<label
for=
"client_group_id"
class=
"wf_preField"
>
{tmpl_var name='client_txt'}
</label>
...
...
interface/web/sites/web_domain_edit.php
View file @
b9472639
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment