Make the user specify both insert and request URI when loading or creating Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 11:20:52 +0000 (13:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 11:20:52 +0000 (13:20 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/login.html

index 826f277..55100d4 100644 (file)
@@ -9,12 +9,14 @@ Page.Login.Label.SelectSone=Select Sone:
 Page.Login.Option.NoSone=Select Sone…
 
 Page.Login.LoadSone.Title=Load Sone
-Page.Login.LoadSone.Description=This function can be used to load an existing Sone. You need to specify the {mark}insert key{/mark} of the Sone to load it!
+Page.Login.LoadSone.Description=This function can be used to load an existing Sone. You need to specify both keys of the Sone to load it!
+Page.Login.LoadSone.Label.RequestURI=Sone Request URI:
 Page.Login.LoadSone.Label.InsertURI=Sone Insert URI:
 Page.Login.LoadSone.Button.LoadSone=Load Sone
 
 Page.Login.CreateSone.Title=Create Sone
 Page.Login.CreateSone.Description=Use this function if you want to create a completely new Sone, either at a location of your choosing or a new, random location.
+Page.Login.CreateSone.Label.RequestURI=Sone Request URI:
 Page.Login.CreateSone.Label.InsertURI=Sone Insert URI:
 Page.Login.CreateSone.Label.Name=Sone name:
 Page.Login.CreateSone.Button.CreateFromURI=Create at given URI
index aad1525..a939bb2 100644 (file)
                </form>
        <%/if>
        <h1><%= Page.Login.LoadSone.Title|l10n|html></h1>
-       <div><%= Page.Login.LoadSone.Description|l10n|html|replace needle="{mark}" replacement="<i>"|replace needle="{/mark}" replacement="</i>"></div>
+       <div><%= Page.Login.LoadSone.Description|l10n|html></div>
        <form action="loadSone.html" method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                <div>
+                       <label for="request-uri"><%= Page.Login.LoadSone.Label.RequestURI|l10n|html></label>
+                       <input type="text" name="request-uri" />
+               </div>
+               <div>
                        <label for="insert-uri"><%= Page.Login.LoadSone.Label.InsertURI|l10n|html></label>
                        <input type="text" name="insert-uri" />
+               </div>
+               <div>
                        <button type="submit"><%= Page.Login.LoadSone.Button.LoadSone|l10n|html></button>
                </div>
        </form>
                        <input type="text" name="name" />
                </div>
                <div>
+                       <label for="insert-uri"><%= Page.Login.CreateSone.Label.RequestURI|l10n|html></label>
+                       <input type="text" name="insert-uri" value="" />
+               </div>
+               <div>
                        <label for="insert-uri"><%= Page.Login.CreateSone.Label.InsertURI|l10n|html></label>
                        <input type="text" name="insert-uri" value="" />
+               </div>
+               <div>
                        <button type="submit" name="create-from-uri" value="1"><%= Page.Login.CreateSone.Button.CreateFromURI|l10n|html></button>
                </div>
                <div>