From 61b58b5671e6566dbcd9757694face99310dfe65 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Mon, 15 Jan 2018 10:59:24 +0100 Subject: [PATCH] Create consentform.twig --- modules/consent/templates/consentform.twig | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/consent/templates/consentform.twig diff --git a/modules/consent/templates/consentform.twig b/modules/consent/templates/consentform.twig new file mode 100644 index 000000000..e33dcf8a6 --- /dev/null +++ b/modules/consent/templates/consentform.twig @@ -0,0 +1,38 @@ +{% set pagetitle = '{consent:consent:consent_header}'|trans %} +{% extends "base.twig" %} + +{% block preload %} +<link rel="stylesheet" type="text/css" href="{{ baseurlpath }}consent/style.css" /> +{% endblock %} + +{% block content %} +<p>{{ consent_accept}}</p> + +{% if consent_purpose is defined %} + <p>{{ consent_purpose }}</p> +{% endif %} + +<form id="consent_yes" action="{{ yesTarget|escape('url') }}"> + {% 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|escape('url') }}" /> + <button type="submit" name="yes" class="btn" id="yesbutton">{{ '{consent:consent:yes}'|trans }}</button> +</form> + +<form id="consent_no" action="{{ noTarget|escape('url') }}"> + <input type="hidden" name="StateId" value="{{ stateId|escape('url') }}" /> + <button type="submit" class="btn" name="no" id="nobutton">{{ '{consent:consent:no}'|trans }}</button> +</form> + +{% if sppp != false %} +<p>{{ '{consent:consent:consent_privacypolicy}'|trans }} + <a target='_blank' href='{{ sppp|escape('url') }} '>{{ dstName }}</a> +</p> +{% endif %} + +<h3 id="attributeheader">{{ consent_attributes_header }}</h3> +{{ attributes_html|raw }} +{% endblock %} -- GitLab