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

View File

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

View File

@ -93,8 +93,6 @@ This view should receive those arguments:
{%- endif -%}
{%- if chill_person.fields.country_of_birth == 'visible' -%}
<div class="confidential">
<div class="confidential-content blur">
<dt>{{ 'Country of birth'|trans }}&nbsp;:</dt>
<dd>{% apply spaceless %}
{% 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>
{% endif %}
{% endapply %}</dd>
</div>
</div>
{%- endif -%}
</dl>
</figure>
@ -202,14 +198,10 @@ This view should receive those arguments:
{%- endif -%}
{%- if chill_person.fields.phonenumber == 'visible' -%}
<div class="confidential">
<div class="confidential-content blur">
<dl>
<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>
</dl>
</div>
</div>
{% endif %}
{%- if chill_person.fields.mobilenumber == 'visible' -%}
@ -269,10 +261,4 @@ This view should receive those arguments:
{% endif %}
</div>
{% endblock %}
{% block js %}
{{ encore_entry_script_tags('mod_blur') }}
{% endblock js %}
{% endblock %}