Streamline adding Sones, remove “add Sone” from menu.
[Sone.git] / src / main / resources / templates / knownSones.html
index 2ff7b82..f26e15a 100644 (file)
@@ -1,13 +1,24 @@
-<div id="sone">
+<%include include/head.html>
+
+       <h1><%= Page.Index.AddSone.Title|l10n|html></h1>
+
+       <div><%= Page.Index.AddSone.Description|l10n|html></div>
+
+       <form action="addSone.html" method="post">
+               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+               <input type="hidden" name="returnPage" value="<% request.url|html>" />
+               <input id="addsone" type="text" name="request-uri" />
+               <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
+       </form>
 
        <h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
 
        <div id="known-sones">
                <%foreach knownSones sone>
-                       <div><a href="viewSone.html?sone=<% sone.id>"><% sone.niceName|html></a> (<% sone.requestUri|html>)</div>
+                       <%include include/viewSone.html>
                <%foreachelse>
                        <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
                <%/foreach>
        </div>
 
-</div>
+<%include include/tail.html>