portal/cert: clarify intermediate cert requests
[hcoop/portal.git] / link.mlt
index adfd266..37200e8 100644 (file)
--- a/link.mlt
+++ b/link.mlt
@@ -22,9 +22,9 @@ if $"cmd" = "add" then
 <form action="link" method="post">
 <input type="hidden" name="save" value="<% id %>">
 <table class="blanks">
-<tr> <td>Title:</td> <td><input name="title" value="<% Web.html (#title link) %>"></td> </tr>
-<tr> <td>URL:</td> <td><input name="url" value="<% Web.html (#url link) %>"></td> </tr>
-<tr> <td>Description:</td> <td><input name="descr" value="<% Web.html (#descr link) %>"></td> </tr>
+<tr> <td>Title:</td> <td><input name="title" value="<% Web.html (#title link) %>" required="required"></td> </tr>
+<tr> <td>URL:</td> <td><input name="url" value="<% Web.html (#url link) %>" type="url" required="required"></td> </tr>
+<tr> <td>Description:</td> <td><input name="descr" value="<% Web.html (#descr link) %>" required="required"></td> </tr>
 <tr> <td><input type="submit" value="Save"></td> </t>
 </table>
 </form>
@@ -64,6 +64,18 @@ end;
 
 if showNormal then %>
 
+<h3>Add a link to a site you host with Hcoop</h3>
+
+<form action="link" method="post">
+<input type="hidden" name="cmd" value="add">
+<table class="blanks">
+<tr> <td>Title:</td> <td><input name="title" required="required"></td> </tr>
+<tr> <td>URL:</td> <td><input name="url" value="http://" type="url" required="required"></td> </tr>
+<tr> <td>Description:</td> <td><input name="descr" required="required"></td> </tr>
+<tr> <td><input type="submit" value="Add"></td> </t>
+</table>
+</form>
+
 <table>
 <% foreach (name, link) in Link.listLinks () do %>
        <tr> <td><a href="<% Web.html (#url link) %>"><% Web.html (#title link) %></a></td>
@@ -76,18 +88,6 @@ if showNormal then %>
 <% end %>
 </table>
 
-<h3>Add a link to a site you host with Hcoop</h3>
-
-<form action="link" method="post">
-<input type="hidden" name="cmd" value="add">
-<table class="blanks">
-<tr> <td>Title:</td> <td><input name="title"></td> </tr>
-<tr> <td>URL:</td> <td><input name="url" value="http://"></td> </tr>
-<tr> <td>Description:</td> <td><input name="descr"></td> </tr>
-<tr> <td><input type="submit" value="Add"></td> </t>
-</table>
-</form>
-
 <% end %>
 
 <% @footer[] %>
\ No newline at end of file