summaryrefslogtreecommitdiffstats
path: root/templates/openid/consent_form.html
blob: 8c3813e8583b72794b2e275c1af63ee71f1c3159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "master.html" %}
{% block main %}

<div class="col-sm-12">
  <p>The OpenID realying party <b>{{ trustroot }}</b> is asking
     to authorize access for <b>{{ username }}</b>.</p>
  <p>Please review the authorization details</p>
</div>

<div class="col-sm-7 col-md-6 col-lg-5 login">
  <form class="form-horizontal" role="form" id="consent_form" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="ipsilon_transaction_id" id="ipsilon_transaction_id" value="{{ ipsilon_transaction_id }}">
    <div class="alert alert-danger">
{%- for items in authz_details %}
  {%- for item in items|dictsort %}
        <div class="form-group">
            <div class="col-sm-10 col-md-10">{{ item[0] }}:</div>
            <div class="col-sm-10 col-md-10">{{ item[1] }}</div>
        </div>
    {%- endfor %}
{%- endfor %}
    </div>
    <div class="form-group">
      <label for="remember_for_days" class="col-sm-10 col-md-10">
        Remember authorization for
      </label>
      <div class="col-sm-10 col-md-10">
        <select name="remember_for_days">
          <option value="0">never</option>
          <option value="3">3 days</option>
          <option value="7">7 days</option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-md-offset-2 col-xs-12 col-sm-10 col-md-10 submit">
        <button type="submit" name="decided_deny" value="Reject" class="btn btn-primary btn-lg" tabindex="3">Reject</button>
        <button type="submit" name="decided_allow" value="Allow" class="btn btn-primary btn-lg" tabindex="3">Allow</button>
      </div>
    </div>
  </form>
</div>

{% endblock %}