Update the status of the Sone (more or less) immediately and on-the-fly.
[Sone.git] / src / main / resources / templates / include / loadSone.html
1 <script language="javascript">
2         $(document).ready(function() {
3                 registerInputTextareaSwap("#sone #load-sone input[name=request-uri]", "WebInterface.DefaultText.LoadSoneRequestURI", "request-uri", false);
4                 registerInputTextareaSwap("#sone #load-sone input[name=insert-uri]", "WebInterface.DefaultText.LoadSoneInsertURI", "insert-uri", false);
5
6                 /* hide all the labels. */
7                 $("#sone #load-sone label").hide();
8         });
9 </script>
10
11 <form id="load-sone" action="loadSone.html" method="post">
12         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
13         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
14         <div>
15                 <label for="request-uri"><%= Page.Login.LoadSone.Label.RequestURI|l10n|html></label>
16                 <input type="text" name="request-uri" />
17         </div>
18         <div>
19                 <label for="insert-uri"><%= Page.Login.LoadSone.Label.InsertURI|l10n|html></label>
20                 <input type="text" name="insert-uri" />
21         </div>
22         <div>
23                 <button type="submit"><%= Page.Login.LoadSone.Button.LoadSone|l10n|html></button>
24         </div>
25 </form>