Show links for adding or removing friends.
[Sone.git] / src / main / resources / templates / login.html
1 <div id="sone">
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                 <div>
21                         <label for="request-uri"><%= Page.Login.LoadSone.Label.RequestURI|l10n|html></label>
22                         <input type="text" name="request-uri" />
23                 </div>
24                 <div>
25                         <label for="insert-uri"><%= Page.Login.LoadSone.Label.InsertURI|l10n|html></label>
26                         <input type="text" name="insert-uri" />
27                 </div>
28                 <div>
29                         <button type="submit"><%= Page.Login.LoadSone.Button.LoadSone|l10n|html></button>
30                 </div>
31         </form>
32         <h1><%= Page.Login.CreateSone.Title|l10n|html></h1>
33         <div><%= Page.Login.CreateSone.Description|l10n|html></div>
34         <form action="createSone.html" method="post">
35                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
36                 <div>
37                         <label for="name"><%= Page.Login.CreateSone.Label.Name|l10n|html></label>
38                         <input type="text" name="name" />
39                 </div>
40                 <div>
41                         <label for="insert-uri"><%= Page.Login.CreateSone.Label.RequestURI|l10n|html></label>
42                         <input type="text" name="insert-uri" value="" />
43                 </div>
44                 <div>
45                         <label for="insert-uri"><%= Page.Login.CreateSone.Label.InsertURI|l10n|html></label>
46                         <input type="text" name="insert-uri" value="" />
47                 </div>
48                 <div>
49                         <button type="submit" name="create-from-uri" value="1"><%= Page.Login.CreateSone.Button.CreateFromURI|l10n|html></button>
50                 </div>
51                 <div>
52                         <button type="submit" name="create-random" value="1"><%= Page.Login.CreateSone.Button.CreateRandom|l10n|html></button>
53                 </div>
54         </form>
55 </div>