aboutsummaryrefslogtreecommitdiffstats
path: root/template/list-locals.html
blob: ba47ac457ffddab93dcd8cc7cb8b381f6310939d (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
<!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="<TMPL_VAR NAME=url>/">Root</a> / <TMPL_VAR NAME=domain> /
      </div>
      <div class="right column">
        Logged as <a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=user_domainpart>/<TMPL_VAR NAME=user_localpart>/?a=edit"
                  ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
        | <a href="<TMPL_VAR NAME=url>/?a=logout">Log out</a>
      </div>
      <br/>
    </div>
    <hr/>

    <h1>Manage domain <tt><TMPL_VAR NAME=domain></tt
        ><TMPL_IF NAME=canEditDomain><span class="action">[<a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/?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="status">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="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/?a=add&t=mailbox">add</a>]</span
       ></TMPL_IF></h3>

    <a name="mailboxes"></a>
    <table class="list">
      <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><tt><a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/<TMPL_VAR NAME=user>/"><TMPL_VAR NAME=user></a></tt></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><tt><TMPL_VAR NAME=forward></tt><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="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/?a=add&t=alias">add</a>]</span
       ></TMPL_IF></h3>

    <a name="aliases"></a>
    <table class="list">
      <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><tt><a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/<TMPL_VAR NAME=alias>/"><TMPL_VAR NAME=alias></a></tt></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><tt><TMPL_VAR NAME=destination></tt><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="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/?a=edit#catch-all">*</a></td>
         <td>Catch-all alias(es) for domain <tt><TMPL_VAR NAME=domain></tt>.</td>
         <td><span class="dunno">&#x2014;</span></td>
         <td><TMPL_LOOP NAME=catchalls><tt><TMPL_VAR NAME=catchall></tt><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="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/?a=add&t=list">add</a>]</span
       ></TMPL_IF></h3>

    <a name="lists"></a>
    <table class="list">
      <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><tt><a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/<TMPL_VAR NAME=list>/"><TMPL_VAR NAME=list></a></tt></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_VAR NAME=transport></td>
        </tr>
      </TMPL_LOOP>
      </tbody>
    </table>
    </TMPL_IF>


  </body>
</html>