Implement Sone loading.
[Sone.git] / src / main / resources / templates / login.html
1 <%include include/head.html>
2         <%if !sones.empty>
3                 <h1><%= Page.Login.Page.Title|l10n|html></h1>
4                 <form method="post">
5                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
6                         <label for="sone-id"><%= Page.Login.Label.SelectSone|l10n|html></label>
7                         <select name="sone-id">
8                                 <option disabled="disabled"><%= Page.Login.Option.NoSone|l10n|html></option>
9                                 <%foreach sones sone>
10                                         <option value="<% sone.id|html>"><% sone.name|html> (<% sone.id|html>)</option>
11                                 <%/foreach>
12                         </select>
13                         <button type="submit">Select</button>
14                 </form>
15         <%/if>
16         <h1><%= Page.Login.LoadSone.Title|l10n|html></h1>
17         <div><%= Page.Login.LoadSone.Description|l10n|html></div>
18         <form action="loadSone.html" method="post">
19                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
20                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
21                 <div>
22                         <label for="request-uri"><%= Page.Login.LoadSone.Label.RequestURI|l10n|html></label>
23                         <input type="text" name="request-uri" />
24                 </div>
25                 <div>
26                         <label for="insert-uri"><%= Page.Login.LoadSone.Label.InsertURI|l10n|html></label>
27                         <input type="text" name="insert-uri" />
28                 </div>
29                 <div>
30                         <button type="submit"><%= Page.Login.LoadSone.Button.LoadSone|l10n|html></button>
31                 </div>
32         </form>
33         <h1><%= Page.Login.CreateSone.Title|l10n|html></h1>
34         <div><%= Page.Login.CreateSone.Description|l10n|html></div>
35         <form action="createSone.html" method="post">
36                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
37                 <div>
38                         <label for="name"><%= Page.Login.CreateSone.Label.Name|l10n|html></label>
39                         <input type="text" name="name" />
40                 </div>
41                 <div>
42                         <label for="document-name"><%= Page.Login.CreateSone.Label.DocumentName|l10n|html></label>
43                         <input type="text" name="document-name" value="<% documentName|html>" />
44                 </div>
45                 <div>
46                         <label for="insert-uri"><%= Page.Login.CreateSone.Label.RequestURI|l10n|html></label>
47                         <input type="text" name="insert-uri" value="" />
48                 </div>
49                 <div>
50                         <label for="insert-uri"><%= Page.Login.CreateSone.Label.InsertURI|l10n|html></label>
51                         <input type="text" name="insert-uri" value="" />
52                 </div>
53                 <div>
54                         <button type="submit" name="create-from-uri" value="1"><%= Page.Login.CreateSone.Button.CreateFromURI|l10n|html></button>
55                 </div>
56                 <div>
57                         <button type="submit" name="create-random" value="1"><%= Page.Login.CreateSone.Button.CreateRandom|l10n|html></button>
58                 </div>
59         </form>
60 <%include include/tail.html>