Hardcode document name for Sone SSKs to “Sone”.
[Sone.git] / src / main / resources / templates / include / createSone.html
index 9666b27..d812b1a 100644 (file)
@@ -1,9 +1,8 @@
 <script language="javascript">
        $(document).ready(function() {
-               registerInputTextareaSwap("#sone #create-sone input[name=name]", "The name of your Sone", "name");
-               registerInputTextareaSwap("#sone #create-sone input[name=document-name]", "The document name of your Sone", "document-name");
-               registerInputTextareaSwap("#sone #create-sone input[name=insert-uri]", "The insert URI of your Sone", "insert-uri");
-               registerInputTextareaSwap("#sone #create-sone input[name=request-uri]", "The request URI of your Sone", "request-uri");
+               registerInputTextareaSwap("#sone #create-sone input[name=name]", "WebInterface.DefaultText.CreateSoneName", "name", false);
+               registerInputTextareaSwap("#sone #create-sone input[name=insert-uri]", "WebInterface.DefaultText.CreateSoneInsertURI", "insert-uri", true);
+               registerInputTextareaSwap("#sone #create-sone input[name=request-uri]", "WebInterface.DefaultText.CreateSoneRequestURI", "request-uri", true);
 
                /* hide all the labels. */
                $("#sone #create-sone label").hide();
                <input type="text" name="name" value="<% name|html>"/>
        </div>
        <div>
-               <label for="document-name"><%= Page.Login.CreateSone.Label.DocumentName|l10n|html></label>
-               <input type="text" name="document-name" value="<% documentName|html>" />
-       </div>
-       <div>
                <button type="submit" name="create-random" value="1"><%= Page.Login.CreateSone.Button.CreateRandom|l10n|html></button>
        </div>
        <div class="advanced">