val oldStatus = #status req;
val newStatus = Domain.statusFromInt (Web.stoi ($"status"));
Domain.modify {req with data = $"dom", msg = $"msg", status = newStatus};
- if oldStatus <> newStatus then
- if not (Domain.notifyMod (oldStatus, newStatus, Init.getUserName(), id)) then
- %><h3>Error sending e-mail notification</h3><%
- end
+ if not (Domain.notifyMod (oldStatus, newStatus, Init.getUserName(), id)) then
+ %><h3>Error sending e-mail notification</h3><%
end
%><h3>Request modified</h3>
Back to: <a href="domain?cmd=open">open requests</a>, <a href="domain?cmd=list">all requests</a>
<form action="domain" method="post">
<table class="blanks">
-<tr> <td>Domain:</td> <td><input name="req"></td> </tr>
+<tr> <td>Domain:</td> <td><input name="req" required="required"></td> </tr>
<tr> <td>Reason:</td> <td><textarea name="msg" rows="5" cols="80" wrap="soft"></textarea></td> </tr>
<tr> <td><input type="submit" value="Request"></td> </tr>
</table>
</form>
+<h3>Your current domains</h3>
+
+<p>To remove any domain you control, you can run <tt>domtool-admin
+rmdom $DOMAIN</tt>.</p>
+
+<ul>
+<% foreach dom in ChooseDomain.domains (Init.getUserName ()) do %>
+ <li><tt><% dom %></tt></li>
+<% end %>
+</ul>
+
<% end %>
<% @footer[] %>
\ No newline at end of file