blur added to requestor in twig template

This commit is contained in:
Julie Lenaerts 2021-10-08 23:44:06 +02:00
parent f09329daee
commit a754bc0abe
3 changed files with 14 additions and 23 deletions

View File

@ -16,10 +16,10 @@
<style> <style>
.confidential{ .confidential{
display: flex; display: flex;
align-items: center;
} }
.toggle{ .toggle{
margin-left: auto; margin-left: 10px;
margin-right: 100px;
} }
.blur { .blur {
-webkit-filter: blur(5px); -webkit-filter: blur(5px);
@ -103,6 +103,7 @@
{{ encore_entry_script_tags('mod_bootstrap') }} {{ encore_entry_script_tags('mod_bootstrap') }}
{{ encore_entry_script_tags('mod_forkawesome') }} {{ encore_entry_script_tags('mod_forkawesome') }}
{{ encore_entry_script_tags('mod_ckeditor5') }} {{ encore_entry_script_tags('mod_ckeditor5') }}
{{ encore_entry_script_tags('mod_blur') }}
{{ encore_entry_script_tags('chill') }} {{ encore_entry_script_tags('chill') }}
<script type="text/javascript"> <script type="text/javascript">

View File

@ -63,6 +63,8 @@
<div class="wl-row"> <div class="wl-row">
<div class="wl-col title"><h3>{{ 'Requestor'|trans({'gender': null }) }}</h3></div> <div class="wl-col title"><h3>{{ 'Requestor'|trans({'gender': null }) }}</h3></div>
<div class="wl-col list"> <div class="wl-col list">
<div class="confidential">
<div class="confidential-content blur">
{% if accompanying_period.requestorPerson is not null %} {% if accompanying_period.requestorPerson is not null %}
<span class="wl-item badge-person">{{ accompanying_period.requestorPerson|chill_entity_render_string }}</span> <span class="wl-item badge-person">{{ accompanying_period.requestorPerson|chill_entity_render_string }}</span>
{% endif %} {% endif %}
@ -71,6 +73,8 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div>
</div>
{% endif %} {% endif %}
{% if accompanying_period.participations.count > 0 %} {% if accompanying_period.participations.count > 0 %}

View File

@ -93,8 +93,6 @@ This view should receive those arguments:
{%- endif -%} {%- endif -%}
{%- if chill_person.fields.country_of_birth == 'visible' -%} {%- if chill_person.fields.country_of_birth == 'visible' -%}
<div class="confidential">
<div class="confidential-content blur">
<dt>{{ 'Country of birth'|trans }}&nbsp;:</dt> <dt>{{ 'Country of birth'|trans }}&nbsp;:</dt>
<dd>{% apply spaceless %} <dd>{% apply spaceless %}
{% if person.countryOfBirth is not null %} {% if person.countryOfBirth is not null %}
@ -103,8 +101,6 @@ This view should receive those arguments:
<span class="chill-no-data-statement">{{ 'Unknown country of birth'|trans }}</span> <span class="chill-no-data-statement">{{ 'Unknown country of birth'|trans }}</span>
{% endif %} {% endif %}
{% endapply %}</dd> {% endapply %}</dd>
</div>
</div>
{%- endif -%} {%- endif -%}
</dl> </dl>
</figure> </figure>
@ -202,14 +198,10 @@ This view should receive those arguments:
{%- endif -%} {%- endif -%}
{%- if chill_person.fields.phonenumber == 'visible' -%} {%- if chill_person.fields.phonenumber == 'visible' -%}
<div class="confidential">
<div class="confidential-content blur">
<dl> <dl>
<dt>{{ 'Phonenumber'|trans }}&nbsp;:</dt> <dt>{{ 'Phonenumber'|trans }}&nbsp;:</dt>
<dd>{% if person.phonenumber is not empty %}<a href="tel:{{ person.phonenumber }}"><pre>{{ person.phonenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd> <dd>{% if person.phonenumber is not empty %}<a href="tel:{{ person.phonenumber }}"><pre>{{ person.phonenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
</dl> </dl>
</div>
</div>
{% endif %} {% endif %}
{%- if chill_person.fields.mobilenumber == 'visible' -%} {%- if chill_person.fields.mobilenumber == 'visible' -%}
@ -270,9 +262,3 @@ This view should receive those arguments:
</div> </div>
{% endblock %} {% endblock %}
{% block js %}
{{ encore_entry_script_tags('mod_blur') }}
{% endblock js %}