File: consentform.twig

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (38 lines) | stat: -rw-r--r-- 1,444 bytes parent folder | download | duplicates (3)
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
{% set pagetitle = '{consent:consent:consent_header}'|trans %}
{% extends "base.twig" %}

{% block preload %}
<link rel="stylesheet" href="/{{ baseurlpath }}module.php/consent/assets/css/consent.css">
{% endblock %}

{% block content %}
<p>{{ consent_accept}}</p>

{% if consent_purpose is defined %}
    <p>{{ consent_purpose }}</p>
{% endif %}

<form id="consent_yes" action="{{ yesTarget }}">
    {% if usestorage is defined %}
    <input type="checkbox" name="saveconsent"{% if checked %} checked="checked"{% endif %} value="1" />
    {{ '{consent:consent:remember}'|trans }}
    {% endif %}

    <input type="hidden" name="StateId" value="{{ stateId }}" />
    <button type="submit" name="yes" class="btn" id="yesbutton"{%- if autofocus is defined and autofocus == 'yesbutton' %} autofocus{% endif -%}>{{ '{consent:consent:yes}'|trans }}</button>
</form>

<form id="consent_no" action="{{ noTarget }}">
    <input type="hidden" name="StateId" value="{{ stateId }}" />
    <button type="submit" class="btn" name="no" id="nobutton"{%- if autofocus is defined and autofocus == 'nobutton' %} autofocus{% endif -%}>{{ '{consent:consent:no}'|trans }}</button>
</form>

{% if sppp != false %}
<p>{{ '{consent:consent:consent_privacypolicy}'|trans }}
    <a target='_blank' href='{{ sppp|escape('html') }} '>{{ dstName }}</a>
</p>
{% endif %}

<h3 id="attributeheader">{{ consent_attributes_header }}</h3>
{{ attributes_html|raw }}
{% endblock %}