cyberman/views/account.tt

121 lines
2.8 KiB
Plaintext
Raw Normal View History

2017-07-18 14:40:48 +02:00
<center>
2017-08-20 00:45:25 +02:00
<br />
<h1>Your Account</h1>
<br />
<% IF updated %>
<div class="msgBox">
Your account details were updated successfully. If you updated your email address, you need to click the link sent to you before the changes can be applied.
</div>
<br /><br />
<% END %>
2017-07-18 14:40:48 +02:00
</center>
<% IF error %>
<div style="text-align:center">
2017-08-20 00:45:25 +02:00
<div class="msgBox" style="text-align:left">
There were some problems with your submission:
<br />
<ul>
<% IF e_no_email %>
2017-08-21 20:04:18 +02:00
<li>You need to enter a valid email address.</li>
2017-08-20 00:45:25 +02:00
<% END %>
<% IF e_wrong_pass %>
<li>The password you entered is incorrect.</li>
<% END %>
<% IF e_pass_mismatch %>
<li>The two passwords you entered do not match.</li>
<% END %>
<% IF e_pass_len %>
<li>Your password must be at least 8 characters long.</li>
<% END %>
<% IF e_email_exists %>
<li>There is already an account with that email address.</li>
<% END %>
<% IF e_bad_sheet %>
<li>The stylesheet selected was invalid.</li>
<% END %>
<% IF e_bad_privacy %>
<li>Please select a value for WHOIS privacy.</li>
<% END %>
2017-08-20 00:45:25 +02:00
</ul>
</div>
2017-07-18 14:40:48 +02:00
</div>
2017-07-18 14:51:30 +02:00
<br />
2017-07-18 14:40:48 +02:00
<% END %>
<div class="body">
2017-08-20 00:45:25 +02:00
<form method="POST">
<table class="domains">
<tr>
<td>
<label for="email">Email address:</label>
</td>
<td>
<input type="email" name="email" id="email" value="<% user.email | html_entity %>" />
</td>
</tr>
<tr>
<td>
<label for="password">Old password:</label>
</td>
<td>
<input type="password" name="password" id="password" />
</td>
</tr>
<tr>
<td>
<label for="npassword">New password:</label>
</td>
<td>
<input type="password" name="npassword" id="npassword" />
</td>
</tr>
<tr>
<td>
<label for="npassword2">New password (confirm):</label>
</td>
<td>
<input type="password" name="npassword2" id="npassword2" />
</td>
</tr>
<tr>
<td>
<label for="stylesheet">Stylesheet name:</label>
</td>
<td>
<select id="stylesheet" name="stylesheet">
<% FOREACH sheet IN vars.config.stylesheets.available %>
<option name="<% sheet | html_entity %>"
<% IF user.stylesheet == sheet %>
selected=selected
<% END %>
><% sheet | html_entity %></option>
<% END %>
</select>
</td>
</tr>
<tr>
<td>
<label for="email_pub">Show email address in WHOIS:</label>
</td>
<td>
<select id="email_pub" name="email_pub">
<option value="1"
<% IF user.email_pub == 1 %>
selected=selected
<% END %>
>Yes</option>
<option value="0"
<% IF user.email_pub == 0 %>
selected=selected
<% END %>
>No</option>
</select>
</td>
</tr>
2017-08-20 00:45:25 +02:00
</table>
<br />
[&nbsp;<button class="textButton" action="submit">update</button>&nbsp;]
</form>
2017-07-18 14:40:48 +02:00
</div>