-<form id="create-sone" action="createSone.html" method="post">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <div<%if errorName> class="error"<%/if>>
- <label for="name"><%= Page.Login.CreateSone.Label.Name|l10n|html></label>
- <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">
- <div<%if errorUri> class="error"<%/if>>
- <label for="insert-uri"><%= Page.Login.CreateSone.Label.RequestURI|l10n|html></label>
- <input type="text" name="insert-uri" value="<% insertUri|html>" />
- </div>
- <div<%if errorUri> class="error"<%/if>>
- <label for="insert-uri"><%= Page.Login.CreateSone.Label.InsertURI|l10n|html></label>
- <input type="text" name="insert-uri" value="<% requestUri|html>" />
- </div>
- <div>
- <button type="submit" name="create-from-uri" value="1"><%= Page.Login.CreateSone.Button.CreateFromURI|l10n|html></button>
- </div>
- </div>
-</form>
+ <%foreach identitiesWithoutSone identity>
+ <%first>
+ <select name="identity">
+ <option disabled="disabled"><%= View.CreateSone.Select.Default|l10n|html></option>
+ <%/first>
+ <option value="<% identity.id|html>"><% identity.uniqueNickname|html></option>
+ <%last>
+ </select>
+ <button type="submit"><%= View.CreateSone.Button.Create|l10n|html></button>
+ <%/last>
+ <%/foreach>
+
+ </form>
+<%else>
+ <%if !sones.empty>
+ <p><%= View.CreateSone.Text.NoNonSoneIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WebOfTrust/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
+ <%else>
+ <p><%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WebOfTrust/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
+ <%/if>
+<%/if>