Change links to HTML forms.
[Sone.git] / src / main / resources / templates / knownSones.html
index aaf452b..a0b270a 100644 (file)
@@ -8,9 +8,17 @@
                                <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>"><% sone.niceName|html></a></div>
                                <div>(<% sone.requestUri|html>)</div>
                                <%if sone.isBlocked>
-                                       <div class="unblock-link"><a href="unblockSone.html?sone=<% sone.id>">unblock</a></div>
+                                       <form class="unblock" action="unblockSone.html" method="post">
+                                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                                               <input type="hidden" name="sone" value="<% sone.id>" />
+                                               <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
+                                       </form>
                                <%else>
-                                       <div class="block-link"><a href="blockSone.html?sone=<% sone.id>">block</a></div>
+                                       <form class="block" action="blockSone.html" method="post">
+                                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                                               <input type="hidden" name="sone" value="<% sone.id>" />
+                                               <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
+                                       </form>
                                <%/if>
                        </div>
                <%foreachelse>