8c3813e8583b72794b2e275c1af63ee71f1c3159
[cascardo/ipsilon.git] / templates / openid / consent_form.html
1 {% extends "master.html" %}
2 {% block main %}
3
4 <div class="col-sm-12">
5   <p>The OpenID realying party <b>{{ trustroot }}</b> is asking
6      to authorize access for <b>{{ username }}</b>.</p>
7   <p>Please review the authorization details</p>
8 </div>
9
10 <div class="col-sm-7 col-md-6 col-lg-5 login">
11   <form class="form-horizontal" role="form" id="consent_form" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
12     <input type="hidden" name="ipsilon_transaction_id" id="ipsilon_transaction_id" value="{{ ipsilon_transaction_id }}">
13     <div class="alert alert-danger">
14 {%- for items in authz_details %}
15   {%- for item in items|dictsort %}
16         <div class="form-group">
17             <div class="col-sm-10 col-md-10">{{ item[0] }}:</div>
18             <div class="col-sm-10 col-md-10">{{ item[1] }}</div>
19         </div>
20     {%- endfor %}
21 {%- endfor %}
22     </div>
23     <div class="form-group">
24       <label for="remember_for_days" class="col-sm-10 col-md-10">
25         Remember authorization for
26       </label>
27       <div class="col-sm-10 col-md-10">
28         <select name="remember_for_days">
29           <option value="0">never</option>
30           <option value="3">3 days</option>
31           <option value="7">7 days</option>
32         </select>
33       </div>
34     </div>
35     <div class="form-group">
36       <div class="col-sm-offset-2 col-md-offset-2 col-xs-12 col-sm-10 col-md-10 submit">
37         <button type="submit" name="decided_deny" value="Reject" class="btn btn-primary btn-lg" tabindex="3">Reject</button>
38         <button type="submit" name="decided_allow" value="Allow" class="btn btn-primary btn-lg" tabindex="3">Allow</button>
39       </div>
40     </div>
41   </form>
42 </div>
43
44 {% endblock %}