aboutsummaryrefslogtreecommitdiffstats
path: root/template/list-locals.html
blob: afff04a76a8c5b77cec8a8fcc328882a72112dfa (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Manage domain <TMPL_VAR NAME=domain></title>
    <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="header">
      <div class="left column">
        <a href="../">Root</a> / <TMPL_VAR NAME=domain> /
      </div>
      <div class="right column">
        Logged as <a href="<TMPL_VAR NAME=userURI>/?a=edit"
                  ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
        | <a href="../?a=logout">Log out</a>
      </div>
      <br/>
    </div>
    <hr/>

    <div id="content">
    <h1>Manage domain <span class="domain"><TMPL_VAR NAME=domain></span
        ><TMPL_IF NAME=canEditDomain><span class="action">[<a href="./?a=edit">edit domain</a>]</span></TMPL_IF></h1>

    <TMPL_IF NAME=description><p class="description"><TMPL_VAR NAME=description></p></TMPL_IF>

    <p id="domainstatus">Domain status:
      <b>
        <TMPL_IF NAME=isactive><span class="active">Active</span>
        <TMPL_ELSE><span class="inactive">Inactive</span>
        </TMPL_IF>
      </b>
    </p>


    <TMPL_IF NAME=listMailboxes>
    <h3>Mailboxes<TMPL_IF NAME=canAddMailbox
       ><span class="action">[<a href="./?a=add&amp;t=mailbox">add</a>]</span
       ></TMPL_IF></h3>

    <table class="list" id="mailboxes">
      <thead>
        <tr class="odd">
          <th>Account</th>
          <th>Description</th>
          <th>Active</th>
          <th>Forwards</th>
          <th>Quota</th>
        </tr>
      </thead>
      <tbody>
      <TMPL_LOOP NAME=mailboxes>
        <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
          <td><span class="mailbox"><a href="<TMPL_VAR NAME=userURI>/"><TMPL_VAR NAME=user></a></span></td>
          <td><TMPL_IF NAME=description><TMPL_VAR NAME=description><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td>
          <td><TMPL_IF NAME=isactive><span class="active">&#x2714;</span><TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></td>
          <td><TMPL_UNLESS NAME=forwards><span class="none">(none)</span></TMPL_UNLESS>
              <TMPL_LOOP NAME=forwards><span class="email"><TMPL_VAR NAME=forward></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>

          <td><TMPL_IF NAME=quota><TMPL_VAR NAME=quota><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td>
        </tr>
      </TMPL_LOOP>
      </tbody>
    </table>
    <br/>
    </TMPL_IF>


    <TMPL_IF NAME=listAliases>
    <h3>Alias<TMPL_IF NAME=canAddAlias
       ><span class="action">[<a href="./?a=add&amp;t=alias">add</a>]</span
       ></TMPL_IF><TMPL_IF NAME=listCanAddAlias><span class="permlist"
       >They can also create new aliases:
       <TMPL_LOOP NAME=listCanAddAlias><span class="email"><TMPL_VAR NAME=user></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP
       >.</span></TMPL_IF></h3>

    <table class="list" id="aliases">
      <thead>
        <tr class="odd">
          <th>Alias</th>
          <th>Description</th>
          <th>Active</th>
          <th>Destination(s)</th>
        </tr>
      </thead>
      <tbody>
      <TMPL_LOOP NAME=aliases>
        <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
          <td><span class="alias"><a href="<TMPL_VAR NAME=aliasURI>/"><TMPL_VAR NAME=alias></a></span></td>
          <td><TMPL_IF NAME=description><TMPL_VAR NAME=description><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td>
          <td><TMPL_IF NAME=isactive><span class="active">&#x2714;</span><TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></td>
          <td><TMPL_UNLESS NAME=destinations><span class="none">(none)</span></TMPL_UNLESS>
              <TMPL_LOOP NAME=destinations><span class="email"><TMPL_VAR NAME=destination></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
        </tr>
      </TMPL_LOOP>
      <TMPL_IF NAME=catchalls>
        <TMPL_IF NAME=CAodd><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
         <td><a href="./?a=edit#catch-all">*</a></td>
         <td>Catch-all alias(es) for domain <span class="domain"><TMPL_VAR NAME=domain></span>.</td>
         <td><span class="dunno">&#x2014;</span></td>
         <td><TMPL_LOOP NAME=catchalls><span class="email"><TMPL_VAR NAME=catchall></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
        </tr>
      </TMPL_IF>
      </tbody>
    </table>
    <br/>
    </TMPL_IF>


    <TMPL_IF NAME=listLists>
    <h3>Lists<TMPL_IF NAME=canAddList
       ><span class="action">[<a href="./?a=add&amp;t=list">add</a>]</span
       ></TMPL_IF><TMPL_IF NAME=listCanAddList><span class="permlist"
       >They can also create new lists:
       <TMPL_LOOP NAME=listCanAddList><span class="email"><TMPL_VAR NAME=user></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP
       >.</span></TMPL_IF></h3>

    <table class="list" id="lists">
      <thead>
        <tr class="odd">
          <th>List</th>
          <th>Description</th>
          <th>Active</th>
          <th>Tranport</th>
        </tr>
      </thead>
      <tbody>
      <TMPL_LOOP NAME=lists>
        <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
          <td><span class="list"><TMPL_UNLESS NAME=ispending><a href="<TMPL_VAR NAME=listURI>/"></TMPL_UNLESS
             ><TMPL_VAR NAME=list
             ><TMPL_UNLESS NAME=ispending></a> <a class="external" target="_blank" href="<TMPL_VAR NAME=listURL>">&#x27A0;</a></TMPL_UNLESS></span></td>
          <td><TMPL_IF NAME=description><TMPL_VAR NAME=description><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td>
          <td><TMPL_IF NAME=ispending><span class="pending">&#x2691;</span>
              <TMPL_ELSE><TMPL_IF NAME=isactive><span class="active">&#x2714;</span>
              <TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></TMPL_IF></td>
          <td><TMPL_VAR NAME=transport></td>
        </tr>
      </TMPL_LOOP>
      </tbody>
    </table>
    </TMPL_IF>
    </div>

  </body>
</html>