diff options
Diffstat (limited to 'templates/openid/consent_form.html')
-rw-r--r-- | templates/openid/consent_form.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/openid/consent_form.html b/templates/openid/consent_form.html new file mode 100644 index 0000000..8c3813e --- /dev/null +++ b/templates/openid/consent_form.html @@ -0,0 +1,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 %} |