some adjustments to the application of blur effect...incomplete

This commit is contained in:
Julie Lenaerts 2021-10-22 12:35:27 +02:00
parent 5869236af1
commit d009d09215
5 changed files with 66 additions and 65 deletions

View File

@ -37,12 +37,14 @@ export default {
<style lang='scss'> <style lang='scss'>
.confidential{ .confidential{
display: flex;
align-items: center; align-items: center;
} }
.toggle{ .toggle{
margin-left: 10px; margin-top: 28px;
cursor: pointer; cursor: pointer;
display: block;
float: right;
margin-right: 20px;
} }
.blur { .blur {
-webkit-filter: blur(5px); -webkit-filter: blur(5px);

View File

@ -9,7 +9,7 @@
addAltNames: true, addAltNames: true,
addAge : true, addAge : true,
hLevel : 3, hLevel : 3,
isConfidential : true, isConfidential : false,
}" }"
:person="participation.person" :person="participation.person"
:returnPath="getAccompanyingCourseReturnPath"> :returnPath="getAccompanyingCourseReturnPath">

View File

@ -9,8 +9,9 @@
<input type="checkbox" v-model="isAnonymous" class="me-2" /> <input type="checkbox" v-model="isAnonymous" class="me-2" />
{{ $t('requestor.is_anonymous') }} {{ $t('requestor.is_anonymous') }}
</label> </label>
<confidential v-if="accompanyingCourse.requestor.type === 'thirdparty'">
<third-party-render-box v-if="accompanyingCourse.requestor.type === 'thirdparty'" <template v-slot:confidential-content>
<third-party-render-box
:thirdparty="accompanyingCourse.requestor" :thirdparty="accompanyingCourse.requestor"
:options="{ :options="{
addLink: false, addLink: false,
@ -18,7 +19,8 @@
addEntity: true, addEntity: true,
addInfo: false, addInfo: false,
hLevel: 3, hLevel: 3,
isMultiline: true isMultiline: true,
isConfidential: true
}" }"
> >
<template v-slot:record-actions> <template v-slot:record-actions>
@ -28,8 +30,12 @@
</ul> </ul>
</template> </template>
</third-party-render-box> </third-party-render-box>
</template>
</confidential>
<person-render-box render="bloc" v-else-if="accompanyingCourse.requestor.type === 'person'" <confidential v-else-if="accompanyingCourse.requestor.type === 'person'">
<template v-slot:confidential-content>
<person-render-box render="bloc"
:person="accompanyingCourse.requestor" :person="accompanyingCourse.requestor"
:options="{ :options="{
addLink: false, addLink: false,
@ -38,7 +44,8 @@
addEntity: true, addEntity: true,
addInfo: true, addInfo: true,
hLevel: 3, hLevel: 3,
isMultiline: true isMultiline: true,
isConfidential: false
}" }"
> >
<template v-slot:record-actions> <template v-slot:record-actions>
@ -48,6 +55,8 @@
</ul> </ul>
</template> </template>
</person-render-box> </person-render-box>
</template>
</confidential>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
@ -82,6 +91,7 @@ import AddPersons from 'ChillPersonAssets/vuejs/_components/AddPersons.vue';
import OnTheFly from 'ChillMainAssets/vuejs/OnTheFly/components/OnTheFly.vue'; import OnTheFly from 'ChillMainAssets/vuejs/OnTheFly/components/OnTheFly.vue';
import PersonRenderBox from '../../_components/Entity/PersonRenderBox.vue'; import PersonRenderBox from '../../_components/Entity/PersonRenderBox.vue';
import ThirdPartyRenderBox from 'ChillThirdPartyAssets/vuejs/_components/Entity/ThirdPartyRenderBox.vue'; import ThirdPartyRenderBox from 'ChillThirdPartyAssets/vuejs/_components/Entity/ThirdPartyRenderBox.vue';
import Confidential from 'ChillMainAssets/vuejs/_components/Confidential.vue';
export default { export default {
name: 'Requestor', name: 'Requestor',
@ -90,6 +100,7 @@ export default {
OnTheFly, OnTheFly,
PersonRenderBox, PersonRenderBox,
ThirdPartyRenderBox, ThirdPartyRenderBox,
Confidential
}, },
data() { data() {
return { return {

View File

@ -57,15 +57,7 @@
<li v-if="person.current_household_id"> <li v-if="person.current_household_id">
<i class="fa fa-li fa-map-marker"></i> <i class="fa fa-li fa-map-marker"></i>
<confidential v-if="options.isConfidential"> <address-render-box v-if="person.current_household_address"
<template v-slot:confidential-content>
<address-render-box
:address="person.current_household_address"
:isMultiline="isMultiline">
</address-render-box>
</template>
</confidential>
<address-render-box v-else-if="person.current_household_address"
:address="person.current_household_address" :address="person.current_household_address"
:isMultiline="isMultiline"> :isMultiline="isMultiline">
</address-render-box> </address-render-box>

View File

@ -63,8 +63,6 @@
<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 %}
@ -73,8 +71,6 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div>
</div>
{% endif %} {% endif %}
{% if accompanying_period.participations.count > 0 %} {% if accompanying_period.participations.count > 0 %}