aboutsummaryrefslogtreecommitdiffstats
path: root/template/edit-domain.html
blob: 5be62dda8eaab32275041d399ffa3e888545a9e0 (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
<!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>Domain names for <TMPL_VAR NAME=USER></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> /
        <a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/"><TMPL_VAR NAME=DOMAIN></a> /
      </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>Edit domain <tt><TMPL_VAR NAME=DOMAIN></tt></h1>


    <table width=90% align=center>
      <tr>
        <td width=30%>
          Status: <b><TMPL_IF NAME=ISACTIVE><span class="active">Active</span><TMPL_ELSE><span class="inactive">Inactive</span></TMPL_IF></b>
          (<a href="./?a=edit&active=<TMPL_IF NAME=ISACTIVE>FALSE<TMPL_ELSE>TRUE</TMPL_IF>">toggle</a>)
        </td>
        <td width=70% align=right>
          <span class="ack">
            <TMPL_IF NAME=NEWCHANGES>Your changes have succesfully been submitted.</TMPL_IF>
          </span>
        </td>
      </tr>
    </table>

    <br/>

    <form class="editform" name="editform" method="post">
      <div class="editform">
      <input type="hidden" name="a" value="edit" />

      <p>
        <h4 class="label">Description</h4>
        <textarea type="text" name="description" cols="50" rows="3" wrap="soft"><TMPL_VAR NAME=DESCRIPTION></textarea>
        <div class="help">
          An optional description of your domain.
        </div>
      </p>

      <hr/>

      <p>
        <h4 class="label">Catch-All aliases</h4>
        <textarea type="text" name="maildrop" cols="50" rows="10" wrap="hard" ><TMPL_VAR NAME=MAILDROP></textarea>
        <div class="help">
          An optional list of destinations (one e-mail address per line) that
          will receive mail sent to <i>non existing</i> recipients.
          Domain aliases can be defined by leaving the local part of
          the destination empty, like in <tt>@example.org</tt>: email
          to <tt>inexisting@<TMPL_VAR NAME=DOMAIN></tt>
          will then be sent to <tt>inexisting@example.org</tt>.
        </div>
      </p>

      <hr/>

      <input type="hidden" name="destination" value="<TMPL_VAR NAME=DESTINATION>" />
      <input type="submit" name="submit" value="Submit Changes" />
      </div>
    </form>
  </body>
</html>