mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
otf: thirdparty corrections
This commit is contained in:
parent
74b649fb2c
commit
d8c34c3089
@ -290,7 +290,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise])
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
else if (payload.type === 'thirdparty') {
|
else if (payload.type === 'thirdparty') {
|
||||||
body.name = payload.data.name;
|
body.name = payload.data.text;
|
||||||
body.email = payload.data.email;
|
body.email = payload.data.email;
|
||||||
body.phonenumber = payload.data.phonenumber;
|
body.phonenumber = payload.data.phonenumber;
|
||||||
body.address = { address_id: payload.data.address.address_id };
|
body.address = { address_id: payload.data.address.address_id };
|
||||||
|
@ -19,14 +19,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p v-if="this.options.addInfo === true" class="moreinfo">
|
<p v-if="this.options.addInfo === true" class="moreinfo">
|
||||||
<i v-if="thirdparty.birthdate" :class="'fa fa-fw ' + getGenderIcon" title="{{ getGender }}"></i>
|
|
||||||
<time v-if="thirdparty.birthdate" datetime="{{ thirdparty.birthdate.datetime }}" title="{{ birthdate }}">
|
|
||||||
{{ $t(getGender) + ' ' + $d(birthdate, 'short') }}
|
|
||||||
</time>
|
|
||||||
<time v-else-if="thirdparty.deathdate" datetime="{{ thirdparty.deathdate.datetime }}" title="{{ thirdparty.deathdate }}">
|
|
||||||
{{ birthdate }} - {{ deathdate }}
|
|
||||||
</time>
|
|
||||||
<span v-if="options.addAge === true" class="age">{{ thirdparty.age }}</span>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,9 +34,9 @@
|
|||||||
<i class="fa fa-li fa-map-marker"></i>
|
<i class="fa fa-li fa-map-marker"></i>
|
||||||
<address-render-box :address="thirdparty.address" :isMultiline="isMultiline"></address-render-box>
|
<address-render-box :address="thirdparty.address" :isMultiline="isMultiline"></address-render-box>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="thirdparty.telephone">
|
<li v-if="thirdparty.phonenumber">
|
||||||
<i class="fa fa-li fa-mobile"></i>
|
<i class="fa fa-li fa-mobile"></i>
|
||||||
<a :href="'tel: ' + thirdparty.telephone">{{ thirdparty.telephone }}</a>
|
<a :href="'tel: ' + thirdparty.phonenumber">{{ thirdparty.phonenumber }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="thirdparty.email">
|
<li v-if="thirdparty.email">
|
||||||
<i class="fa fa-li fa-envelope-o"></i>
|
<i class="fa fa-li fa-envelope-o"></i>
|
||||||
@ -78,21 +70,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
getGender: function() {
|
|
||||||
return this.thirdparty.gender === 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man';
|
|
||||||
},
|
|
||||||
getGenderIcon: function() {
|
|
||||||
return this.thirdparty.gender === 'woman' ? 'fa-venus' : this.thirdparty.gender === 'man' ? 'fa-mars' : 'fa-neuter';
|
|
||||||
},
|
|
||||||
birthdate: function(){
|
|
||||||
var date = new Date(this.thirdparty.birthdate.datetime);
|
|
||||||
return dateToISO(date);
|
|
||||||
},
|
|
||||||
deathdate: function(){
|
|
||||||
var date = new Date(this.thirdparty.deathdate.datetime);
|
|
||||||
return dateToISO(date);
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user