aboutsummaryrefslogtreecommitdiffstats
path: root/templates/list-domains.html
blob: f07c4eff3067a22088d5e632403f47ff543d7924 (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
<!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 domains</title>
    <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="header">
      <div class="left column">
        Root /
      </div>
      <div class="right column">
        Logged as <a href="<TMPL_VAR NAME=userURL>/?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 domains<TMPL_IF NAME=canIAddDomain><span class="action">[<a href="./?a=add">add</a>]</span></TMPL_IF></h1>

    <table class="list" id="domains">
      <thead>
        <tr class="odd">
          <th>Domain</th>
          <th>Description</th>
          <th>Active</th>
        </tr>
      </thead>
      <tbody>
      <TMPL_LOOP NAME=domains>
        <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
          <td><span class="domain"><TMPL_UNLESS NAME=isPending><a
                href="<TMPL_VAR NAME=URL>/"></TMPL_UNLESS><TMPL_VAR NAME=name><TMPL_UNLESS NAME=isPending></a></TMPL_UNLESS></span></td>
          <td><TMPL_IF NAME=isPending
             ><form class="unlock" method="post" action="<TMPL_VAR NAME=name>/?"
                ><input type="text" name="unlock" size="32"
                ><input type="hidden" name="domain" value="<TMPL_VAR NAME=name>"
               /><input type="submit" name="submit" value="Unlock domain"
               /></form
             ><TMPL_ELSE><TMPL_IF NAME=description><TMPL_VAR NAME=description><TMPL_ELSE><span class="none">(none)</span></TMPL_IF
             ></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>
        </tr>
      </TMPL_LOOP>
      </tbody>
    </table>
    </div>
  </body>
</html>