2 % && $part_svc->part_svc_column('cgp_type')->columnflag ne 'F' )
8 <TD ALIGN="right">Mailbox type</TD>
10 <SELECT NAME="cgp_type">
11 % foreach my $option (qw( MultiMailbox TextMailbox MailDirMailbox
12 % AGrade BGrade CGrade )) {
13 <OPTION VALUE="<% $option %>"
14 <% $option eq $svc_acct->cgp_type() ? 'SELECTED' : '' %>
22 <INPUT TYPE="hidden" NAME="cgp_type" VALUE="<% $svc_acct->cgp_type() %>">
26 % #false laziness w/svc_domain
28 % && $part_svc->part_svc_column('cgp_accessmodes')->columnflag ne 'F' )
32 <TD ALIGN="right">Enabled services</TD>
34 <% include( '/elements/communigate_pro-accessmodes.html',
35 'curr_value' => $svc_acct->cgp_accessmodes,
42 <INPUT TYPE="hidden" NAME="cgp_accessmodes" VALUE="<% $svc_acct->cgp_accessmodes() |h %>">
46 % if ( $part_svc->part_svc_column('quota')->columnflag eq 'F' ) {
47 <INPUT TYPE="hidden" NAME="quota" VALUE="<% $svc_acct->quota %>">
49 % my $quota_label = $communigate ? 'Mail storage limit' : ($part_svc->part_svc_column('quota')->columnlabel || 'Quota');
50 <% include('/elements/tr-td-label.html',
51 'label' => $quota_label,
52 'required' => $part_svc->part_svc_column('quota')->required ) %>
53 <TD><INPUT TYPE="text" NAME="quota" VALUE="<% $svc_acct->quota %>"></TD>
57 % tie my %cgp_label, 'Tie::IxHash',
58 % 'file_quota' => 'File storage limit',
59 % 'file_maxnum' => 'Number of files limit',
60 % 'file_maxsize' => 'File size limit',
63 % foreach my $key (keys %cgp_label) {
65 % if ( !$communigate || $part_svc->part_svc_column($key)->columnflag eq 'F' ){
66 <INPUT TYPE="hidden" NAME="<%$key%>" VALUE="<% $svc_acct->$key() |h %>">
70 <TD ALIGN="right"><% $cgp_label{$key} %></TD>
71 <TD><INPUT TYPE="text" NAME="<% $key %>" VALUE="<% $svc_acct->$key() |h %>"></TD>
77 % if ( $communigate ) {
79 <% include('/elements/tr-checkbox.html',
80 'label' => 'Password recovery',
81 'field' => 'password_recover',
82 'curr_value' => $svc_acct->password_recover,
87 <% include('/elements/tr-select.html',
88 'label' => 'Allowed mail rules',
89 'field' => 'cgp_rulesallowed',
90 'options' => [ '', 'No', 'Filter Only', 'All But Exec', 'Any' ],
92 '' => 'default (No)', #No always the default?
94 'curr_value' => $svc_acct->cgp_rulesallowed,
98 <% include('/elements/tr-checkbox.html',
99 'label' => 'RPOP modifications',
100 'field' => 'cgp_rpopallowed',
101 'curr_value' => $svc_acct->cgp_rpopallowed,
106 <% include('/elements/tr-checkbox.html',
107 'label' => 'Accepts mail to "all"',
108 'field' => 'cgp_mailtoall',
109 'curr_value' => $svc_acct->cgp_mailtoall,
114 <% include('/elements/tr-checkbox.html',
115 'label' => 'Add trailer to sent mail',
116 'field' => 'cgp_addmailtrailer',
117 'curr_value' => $svc_acct->cgp_addmailtrailer,
122 <% include('/elements/tr-select.html',
123 'label' => 'Archive messages after',
124 'field' => 'cgp_archiveafter',
125 'options' => [ '', 0, 86400, 172800, 259200, 432000, 604800,
126 1209600, 2592000, 7776000, 15552000, 31536000,
130 '' => 'default (730 days)',#730 always default?
137 1209600 => '2 weeks',
138 2592000 => '30 days',
139 7776000 => '90 days',
140 15552000 => '180 days',
141 31536000 => '365 days',
142 63072000 => '730 days',
144 'curr_value' => $svc_acct->cgp_archiveafter,
150 %# false laziness w/svc_domain acct_def
152 <TD ALIGN="right">Message delete method</TD>
154 <SELECT NAME="cgp_deletemode">
155 % for ( 'Move To Trash', 'Immediately', 'Mark' ) {
156 <OPTION VALUE="<% $_ %>"
157 <% $_ eq $svc_acct->cgp_deletemode ? 'SELECTED' : '' %>
164 <% include('/elements/tr-select.html',
165 'label' => 'On logout remove trash',
166 'field' => 'cgp_emptytrash',
167 'options' => $svc_acct->cgp_emptytrash_values,
169 '' => 'default (92 days)', #right?
171 'curr_value' => $svc_acct->cgp_emptytrash,
175 <% include('/elements/tr-select.html',
176 'label' => 'Language',
177 'field' => 'cgp_language',
178 'options' => [ '', qw( English Arabic Chinese Dutch French German Hebrew Italian Japanese Portuguese Russian Slovak Spanish Thai ) ],
180 '' => 'default (English)',
182 'curr_value' => $svc_acct->cgp_language,
186 <% include('/elements/tr-select.html',
187 'label' => 'Time zone',
188 'field' => 'cgp_timezone',
189 'options' => $svc_acct->cgp_timezone_values,
191 '' => 'default (HostOS)',
193 'curr_value' => $svc_acct->cgp_timezone,
197 <% include('/elements/tr-select.html',
199 'field' => 'cgp_skinname',
200 'options' => [ '', '***', 'GoldFleece', 'Skin2' ],
202 '' => 'default (***)',
204 'curr_value' => $svc_acct->cgp_skinname,
208 <% include('/elements/tr-select.html',
209 'label' => 'Pronto style',
210 'field' => 'cgp_prontoskinname',
211 'options' => [ '', 'Pronto', 'Pronto-darkflame', 'Pronto-steel', 'Pronto-twilight', ],
213 'curr_value' => $svc_acct->cgp_prontoskinname,
217 <% include('/elements/tr-select.html',
218 'label' => 'Send read receipts',
219 'field' => 'cgp_sendmdnmode',
220 'options' => [ '', 'Never', 'Manually', 'Automatically' ],
222 '' => 'default (Automatically)',
224 'curr_value' => $svc_acct->cgp_language,
230 % for (qw( password_recover cgp_rulesallowed cgp_rpopallowed cgp_mailtoall
232 % cgp_deletemode cgp_emptytrash cgp_language cgp_timezone
233 % cgp_skinname cgp_sendmdnmode
236 <INPUT TYPE="hidden" NAME="<% $_ %>" VALUE="<% $svc_acct->$_() %>">
245 my $svc_acct = $opt{'svc_acct'};
246 my $part_svc = $opt{'part_svc'};
248 my $communigate = $opt{'communigate'};