baf44e765e9cfc9659371b589a99d757ab2293f1
[anoweco.git] / data / templates / auth-choose.htm
1 <html xmlns="http://www.w3.org/1999/xhtml">
2  <head>
3   <meta charset="utf-8"/>
4   <title>Select your identity</title>
5  </head>
6  <body>
7   <h1>Select your identity</h1>
8   <p>
9    You may log in to {{client_id}} with any identity you like.
10   </p>
11
12   <form method="post" action="{{formaction}}">
13    {% for key, value in auth %}
14    <input type="hidden" name="auth[{{key}}]" value="{{value}}"/>
15    {% endfor %}
16
17    <ul>
18     <li>
19      <label>
20       <input type="radio" name="id[mode]" value="anonymous"
21              {%if id.mode=="anonymous"%}checked="checked"{%endif%}/>
22       Anonymous
23      </label>
24     </li>
25     <li>
26      <label>
27       <input type="radio" name="id[mode]" value="data"
28              {%if id.mode=="data"%}checked="checked"{%endif%}/>
29       With a name
30      </label>
31      <ul>
32       <li>
33        <label for="id-name">Name:</label>
34        <input type="text" name="id[name]" id="id-name" value="{{id.name}}"/>
35       </li>
36       <li>
37        {% if id.imageurl %}
38        <img src="{{id.imageurl}}" width="32" height="32" alt="Avatar image"/>
39        {% endif %}
40        <label for="id-imageurl">Avatar image URL:</label>
41        <input type="url" name="id[imageurl]" id="id-imageurl"
42               value="{{id.imageurl}}" size="60"/>
43        <br/>
44        alternatively, provide an email so we can autodetect its avatar:
45        <input type="email" name="id[email]" id="id-email"/>
46        (will not be stored.)
47       </li>      
48      </ul>
49      <p>
50       All values are optional.
51      </p>
52     </li>
53    </ul>
54    <button type="submit">Login</button>
55   </form>
56  </body>
57 </html>