|
| 1 | +{% set pagetitle = 'Consent about releasing personal information'|trans %} |
| 2 | +{% extends "base.twig" %} |
| 3 | + |
| 4 | +{% block preload %} |
| 5 | + <link rel="stylesheet" href="{{ asset('css/consent.css', 'consent') }}"> |
| 6 | +{% endblock %} |
| 7 | + |
| 8 | +{% block content %} |
| 9 | + <p>{{ '%SPNAME% requires that the information below is transferred.'|trans({'%SPNAME%': destination|entityDisplayName() }) }}</p> |
| 10 | + |
| 11 | + {% if descr_purpose is defined and descr_purpose != "" %} |
| 12 | + <p>{{ 'The purpose of %SPNAME% is %SPDESC%'|trans({'%SPNAME%': destination|entityDisplayName(), '%SPDESC%': descr_purpose|translateFromArray }) }}</p> |
| 13 | + {% endif %} |
| 14 | + |
| 15 | + <form id="consent-yes" action="{{ moduleURL('consent/getconsent') }}" method="GET"> |
| 16 | + {% if usestorage == true %} |
| 17 | + <label for="saveconsent" class="pure-checkbox"> |
| 18 | + <input type="checkbox" id="saveconsent" name="saveconsent"{% if checked %} checked="checked"{% endif %} value="1"> |
| 19 | + {{ 'Remember'|trans }}</label> |
| 20 | + {% endif %} |
| 21 | + |
| 22 | + <input type="hidden" name="StateId" value="{{ stateId }}"> |
| 23 | + <button type="submit" name="yes" class="btn rciam-pure-button" id="yesbutton" |
| 24 | + {%- if autofocus is defined and autofocus == 'yesbutton' %} autofocus{% endif -%} |
| 25 | + >{{ 'Yes, continue'|trans }}</button> |
| 26 | + </form> |
| 27 | + |
| 28 | + <form id="consent-no" action="{{ moduleURL('consent/noconsent') }}" method="GET"> |
| 29 | + <input type="hidden" name="StateId" value="{{ stateId }}"> |
| 30 | + <button type="submit" name="no" class="btn rciam-pure-button" id="nobutton" |
| 31 | + {%- if autofocus is defined and autofocus == 'nobutton' %} autofocus{% endif -%} |
| 32 | + >{{ 'No, cancel'|trans }}</button> |
| 33 | + </form> |
| 34 | + |
| 35 | + {% if sppp != false %} |
| 36 | + <p><a target="_blank" href='{{ sppp }}'>{{ 'Privacy policy for the service'|trans }} |
| 37 | + {{ destination|entityDisplayName() }}</a> |
| 38 | + </p> |
| 39 | + {% endif %} |
| 40 | + |
| 41 | + <h3 id="attributeheader">{{ 'Information that will be sent to %SPNAME%'|trans({'%SPNAME%': destination|entityDisplayName() }) }}</h3> |
| 42 | + |
| 43 | + {% set items = attributes %} |
| 44 | + |
| 45 | + {% embed '_table.twig' -%} |
| 46 | + |
| 47 | + {% block namecol -%} |
| 48 | + {% set translated = name|trans %} |
| 49 | + <td class="attrname">{% if translated != name %} {{ translated }} <br>{% endif %} <samp>{{ name }}</samp></td> |
| 50 | + {% endblock %} |
| 51 | + |
| 52 | + |
| 53 | + {% block value -%} |
| 54 | + {% if name =='jpegPhoto'-%} |
| 55 | + <img src="data:image/jpeg;base64,{{ value }}" alt="{{ 'Content of jpegPhoto attribute'|trans }}"> |
| 56 | + {% else %}{{ value }}{% endif -%} |
| 57 | + {% endblock %} |
| 58 | + |
| 59 | + {%- endembed %} |
| 60 | + |
| 61 | +{% endblock %} |
0 commit comments