diff options
author | ivan <ivan> | 2010-04-19 05:01:52 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-04-19 05:01:52 +0000 |
commit | 20f38e4c256094bd938b732950e8f93319f851a5 (patch) | |
tree | 35a3ee60e54628c81853dfdf5197237ce94c8856 /httemplate | |
parent | ad7f49821d40ffd099a45acc32ba91e0e211aede (diff) |
communigate provisioning phase 2: Domain:Account Defaults:Settings: RulesAllowed, RPOPAllowed, MailToAll, AddMailTrailer. RT#7514
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/svc_domain.cgi | 48 | ||||
-rw-r--r-- | httemplate/view/svc_domain/acct_defaults.html | 41 |
2 files changed, 85 insertions, 4 deletions
diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi index 8b4f282a6..0ec91bc84 100755 --- a/httemplate/edit/svc_domain.cgi +++ b/httemplate/edit/svc_domain.cgi @@ -120,14 +120,15 @@ Account defaults <% ntable("#cccccc",2) %> <% include('/elements/tr-checkbox.html', - 'label' =>'Password modification', + 'label' => 'Password modification', 'field' => 'acct_def_password_selfchange', 'curr_value' => $svc_domain->acct_def_password_selfchange, 'value' => 'Y', ) %> + <% include('/elements/tr-checkbox.html', - 'label' =>'Password recovery', + 'label' => 'Password recovery', 'field' => 'acct_def_password_recover', 'curr_value' => $svc_domain->acct_def_password_recover, 'value' => 'Y', @@ -170,6 +171,41 @@ Account defaults ) %> + <% include('/elements/tr-select.html', + 'label' => 'Allowed mail rules', + 'field' => 'acct_def_cgp_rulesallowed', + 'options' => [ '', 'No', 'Filter Only', 'All But Exec', 'Any' ], + 'labels' => { + '' => 'default (No)', #No always the default? + }, + 'curr_value' => $svc_domain->acct_def_cgp_rulesallowed, + ) + %> + + <% include('/elements/tr-checkbox.html', + 'label' => 'RPOP modifications', + 'field' => 'acct_def_cgp_rpopallowed', + 'curr_value' => $svc_domain->acct_def_cgp_rpopallowed, + 'value' => 'Y', + ) + %> + + <% include('/elements/tr-checkbox.html', + 'label' => 'Accepts mail to "all"', + 'field' => 'acct_def_cgp_mailtoall', + 'curr_value' => $svc_domain->acct_def_cgp_mailtoall, + 'value' => 'Y', + ) + %> + + <% include('/elements/tr-checkbox.html', + 'label' => 'Add trailer to sent mail', + 'field' => 'acct_def_cgp_addmailtrailer', + 'curr_value' => $svc_domain->acct_def_cgp_addmailtrailer, + 'value' => 'Y', + ) + %> + %# false laziness w/svc_acct acct_def <TR> <TD ALIGN="right">Message delete method</TD> @@ -190,6 +226,14 @@ Account defaults ) %> + <% include('/elements/tr-checkbox.html', + 'label' =>'Password recovery', + 'field' => 'acct_def_password_recover', + 'curr_value' => $svc_domain->acct_def_password_recover, + 'value' => 'Y', + ) + %> + </TABLE> <BR> diff --git a/httemplate/view/svc_domain/acct_defaults.html b/httemplate/view/svc_domain/acct_defaults.html index 0c072bff5..01cc282fb 100644 --- a/httemplate/view/svc_domain/acct_defaults.html +++ b/httemplate/view/svc_domain/acct_defaults.html @@ -3,12 +3,15 @@ Account defaults <% &ntable("#cccccc") %><TR><TD><% &ntable("#cccccc",2) %> +%# settings + <% include('/view/elements/tr.html', label=>'Password modification', value=>$svc_domain->acct_def_password_selfchange ? 'YES' : 'NO', ) %> - <% include('/view/elements/tr.html', + + <% include('/view/elements/tr.html', label=>'Password recovery', value=>$svc_domain->acct_def_password_recover ? 'YES' : 'NO', ) @@ -43,7 +46,33 @@ value=>$svc_domain->acct_def_file_maxsize, ) %> - + + <% include('/view/elements/tr.html', + label=>'Allowed mail rules', + value=>$svc_domain->acct_def_cgp_rulesallowed || 'default (No)', + ) + %> + + <% include('/view/elements/tr.html', + label=>'RPOP modifications', + value=>$svc_domain->acct_def_cgp_rpopallowed ? 'YES' : 'NO', + ) + %> + + <% include('/view/elements/tr.html', + label=>'Accepts mail to "all"', + value=>$svc_domain->acct_def_cgp_mailtoall ? 'YES' : 'NO', + ) + %> + + <% include('/view/elements/tr.html', + label=>'Add trailer to sent mail', + value=>$svc_domain->acct_def_cgp_addmailtrailer ? 'YES' : 'NO', + ) + %> + +%# preferences + <% include('/view/elements/tr.html', label=>'Message delete method', value=>$svc_domain->acct_def_cgp_deletemode, @@ -68,4 +97,12 @@ my $part_svc = $opt{'part_svc'}; my $communigate = scalar($part_svc->part_export('communigate_pro')); # || scalar($part_svc->part_export('communigate_pro_singledomain')); +my %rulesallowed = ( + -1 => 'default (No)', #No always the default? + 0 => 'No', + 1 => 'Filter Only', + 2 => 'All But Exec', + 3 => 'Any', +); + </%init> |