Flesh out Sone deletion HTML.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:14:25 +0000 (16:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:14:25 +0000 (16:14 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/deleteSone.html

index 2756f48..d578084 100644 (file)
@@ -34,6 +34,11 @@ Page.CreateSone.Title=Create Sone - Sone
 
 Page.DeleteSone.Title=Delete Sone - Sone
 Page.DeleteSone.Page.Title=Delete Sone “{zone}”?
+Page.DeleteSone.Page.Description=This will not delete the Sone from Freenet (because that is impossible), it will merely remove all references to this Sone from this plugin instance. You can write down the insert and request keys and reload your Sone from a different plugin instance or computer.
+Page.DeleteSone.Label.RequestURI=Request URI:
+Page.DeleteSone.Label.InsertURI=Insert URI:
+Page.DeleteSone.Button.Yes=Yes, delete.
+Page.DeleteSone.Button.No=No, do not delete.
 
 Page.Index.Title=Your Sone - Sone
 
index 4e10f67..f370233 100644 (file)
@@ -2,4 +2,24 @@
 
        <h1><%= Page.DeleteSone.Page.Title|l10n|replace needle="{zone}" replacementKey=currentSone.name|html></h1>
 
+       <div><%= Page.DeleteSone.Page.Description|l10n|html></div>
+
+       <form method="post">
+               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+               <div>
+                       <label><%= Page.DeleteSone.Label.RequestURI|l10n|html></label>
+                       <input type="text" readonly="readonly" value="<% currentSone.requestUri|html>" />
+               </div>
+               <div>
+                       <label><%= Page.DeleteSone.Label.InsertURI|l10n|html></label>
+                       <input type="text" readonly="readonly" value="<% currentSone.insertUri|html>" />
+               </div>
+               <div>
+                       <button type="submit" name="deleteSone" value="1"><%= Page.DeleteSone.Button.Yes|l10n|html></button>
+               </div>
+               <div>
+                       <button type="submit"><%= Page.DeleteSone.Button.No|l10n|html></button>
+               </div>
+       </form>
+
 </div>