Add a couple of CSS classes for easier identification of elements.
[Sone.git] / src / main / resources / templates / include / createSone.html
1 <%if !identitiesWithoutSone.empty>
2         <h1><%= Page.Login.CreateSone.Title|l10n|html></h1>
3
4         <p><%= View.CreateSone.Text.WotIdentityRequired|l10n|html|replace needle="{link}" replacement='<a href="/WoT/">'|replace needle="{/link}" replacement='</a>'></p>
5
6         <form id="create-sone" action="createSone.html" method="post">
7                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
8
9                 <%if errorNoIdentity><p><%= View.CreateSone.Text.Error.NoIdentity|l10n|html></p><%/if>
10
11                 <%foreach identitiesWithoutSone identity>
12                         <%first>
13                                 <select name="identity">
14                                         <option disabled="disabled"><%= View.CreateSone.Select.Default|l10n|html></option>
15                         <%/first>
16                                 <option value="<% identity.id|html>"><% identity.uniqueNickname|html></option>
17                         <%last>
18                                 </select>
19                                 <button type="submit"><%= View.CreateSone.Button.Create|l10n|html></button>
20                         <%/last>
21                 <%/foreach>
22
23         </form>
24 <%else>
25         <%if !sones.empty>
26                 <p><%= View.CreateSone.Text.NoNonSoneIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WoT/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
27         <%else>
28                 <p><%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WoT/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
29         <%/if>
30 <%/if>