summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_acct/communigate.html
blob: 0f090fdb966833f76e1a406e211d61023e86e203 (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
109
110
111
112
113
114
115
%# settings

  <% include('/view/elements/tr.html', label=>'Mailbox type', value=>$svc_acct->cgp_type) %>

  <% include('/view/elements/tr.html', label=>'Enabled services',
                        value=>$svc_acct->cgp_accessmodes ) %>

  <% include('/view/elements/tr.html', label=>'Mail storage limit',
                        value=>$svc_acct->quota ) %>

  <% include('/view/elements/tr.html', label=>'File storage limit',
                        value=>$svc_acct->file_quota ) %>

  <% include('/view/elements/tr.html', label=>'Number of files limit',
                        value=>$svc_acct->file_maxnum ) %>

  <% include('/view/elements/tr.html', label=>'File size limit',
                        value=>$svc_acct->file_maxsize ) %>

  <% include('/view/elements/tr.html', label=>'Password recovery',
               value=>$svc_acct->password_recover ? 'YES' : 'NO' ) %>

  <% include('/view/elements/tr.html', label=>'Allowed mail rules',
                        value=>$svc_acct->cgp_rulesallowed || 'default (No)') %>

  <% include('/view/elements/tr.html', label=>'RPOP modifications',
                        value=>$svc_acct->cgp_rpopallowed ? 'YES' : 'NO' ) %>

  <% include('/view/elements/tr.html', label=>'Accepts mail to "all"',
                        value=>$svc_acct->cgp_mailtoall ? 'YES' : 'NO' ) %>

  <% include('/view/elements/tr.html', label=>'Add trailer to sent mail',
                        value=>$svc_acct->cgp_addmailtrailer ? 'YES' : 'NO' ) %>

%# preferences

  <% include('/view/elements/tr.html', label=>'Message delete method',
                        value=>$svc_acct->cgp_deletemode ) %>

  <% include('/view/elements/tr.html', label=>'On logout remove trash',
                        value=>$svc_acct->cgp_emptytrash ) %>

  <% include('/view/elements/tr.html', label=>'Language',
                        value=>$svc_acct->cgp_language || 'default (English)' ) %>
  <% include('/view/elements/tr.html', label=>'Time zone',
                        value=>$svc_acct->cgp_timezone || 'default (HostOS)' ) %>
  <% include('/view/elements/tr.html', label=>'Layout',
                        value=>$svc_acct->cgp_skinname || 'default (***)' ) %>

  <% include('/view/elements/tr.html', label=>'Pronto style',
                        value=>$svc_acct->cgp_prontoskinname ) %>

  <% include('/view/elements/tr.html', label=>'Send read receipts',
                        value=>$svc_acct->cgp_sendmdnmode ) %>

%# vacation message
%#XXX finish me... do we need to search for specific rules
%# (and hide them?)  need to see what CGP gives back after we've added a rule
  <% include('/elements/init_overlib.html') %>

  <TR>
    <TD ALIGN="right">Vacation message</TD>
    <TD BGCOLOR="#FFFFFF">
      <% include('/elements/popup_link.html',
                   'action' => $p.'edit/cgp_rule-vacation.html?'.
                                 'svcnum='. $svc_acct->svcnum,
                   'label'  => '(add)', #XXX (edit)
                   'actionlabel' => 'Vacation message',
                   'width'  => 600,
                   'height' => 300,
                   #'color'
                )
      %>
    </TD>
  </TR>

%# redirect all mail
%#XXX finish me...

  <TR>
    <TD ALIGN="right">Redirect all mail</TD>
    <TD BGCOLOR="#FFFFFF">
      <% include('/elements/popup_link.html',
                   'action' => $p.'edit/cgp_rule-redirect_all.html?'.
                                 'svcnum='. $svc_acct->svcnum,
                   'label'  => '(add)', #XXX (edit)
                   'actionlabel' => 'Redirect all mail',
                   'width' => 763,
                   #'height'
                   #'color'
                )
      %>
    </TD>
  </TR>

%# mail rules

  <% include('/view/elements/tr.html', label=>'Mail rules',
               value=>$rule_link,
            )
  %>

<%init>

my %opt = @_;

#my $conf = new FS::Conf;

my $svc_acct = $opt{'svc_acct'};
#my $part_svc = $opt{'part_svc'};

my $rule_link = qq(<A HREF="${p}browse/cgp_rule.html?svcnum=).
                      $svc_acct->svcnum. '">View/edit mail rules</A>';

</%init>