{% 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 item in authz_details|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 %}
    </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 %}
