summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_domain/acct_defaults.html
blob: 01cc282fbc78256dcd73f2807d0b962c307fdc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
% if ( $communigate ) {

  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',
               label=>'Password recovery',
               value=>$svc_domain->acct_def_password_recover ? 'YES' : 'NO',
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'Enabled services',
               value=>$svc_domain->acct_def_cgp_accessmodes,
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'Mail storage limit',
               value=>$svc_domain->acct_def_quota,
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'File storage limit',
               value=>$svc_domain->acct_def_file_quota,
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'Files limt',
               value=>$svc_domain->acct_def_file_maxnum,
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'File size limit',
               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,
            )
  %>
    
  <% include('/view/elements/tr.html',
               label=>'On logout remove trash',
               value=>$svc_domain->acct_def_cgp_emptytrash,
            )
  %>

  </TABLE></TD></TR></TABLE>

% }
<%init>

my($svc_domain, %opt) = @_;

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>