mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
AccompanyingCourse: fix errors with renderbox into Resources
This commit is contained in:
@@ -1,38 +1,24 @@
|
||||
<template>
|
||||
|
||||
<div class="item-bloc col">
|
||||
<div class="item-bloc col">
|
||||
<section class="chill-entity entity-thirdparty">
|
||||
<!-- ENTIRE RENDER_BOX -->
|
||||
<div class="item-row entity-bloc">
|
||||
|
||||
<!-- LABEL -->
|
||||
<div class="item-col">
|
||||
<div class="entity-label">
|
||||
|
||||
<!-- NAME TAG -->
|
||||
<!-- todo: make h class dynamic -->
|
||||
<div class="denomination h3">
|
||||
|
||||
<span v-if="options.addEntity == true && thirdparty.type == 'thirdparty'" class="badge rounded-pill bg-secondary">{{ $t('renderbox.type.thirdparty') }}</span>
|
||||
<span v-if="options.addEntity == true && thirdparty.type == 'person'" class="badge rounded-pill bg-secondary">{{ $t('renderbox.type.person') }}</span>
|
||||
<!-- NAME IF ADD LINK AND PERMISSION GRANTED -->
|
||||
<!-- todo: change href -->
|
||||
|
||||
<a v-if="this.options.addLink == true" href="#">
|
||||
<span class="name">{{ thirdparty.text }}</span>
|
||||
</a>
|
||||
<!-- WITHOUT LINK JUST NAME -->
|
||||
<span class="name">{{ thirdparty.text }}</span>
|
||||
|
||||
<!-- IF ADD ENTITY OPTION -->
|
||||
|
||||
|
||||
<span v-if="options.addId == true" class="id-number" :title="'n° ' + thirdparty.id">{{ thirdparty.id }}</span>
|
||||
<span v-if="options.addEntity == true && thirdparty.type == 'thirdparty'" class="badge rounded-pill bg-secondary">{{ $t('renderbox.type.thirdparty') }}</span>
|
||||
|
||||
</div>
|
||||
<!-- END NAME TAG -->
|
||||
|
||||
<!-- EXTRA INFO -->
|
||||
<p v-if="this.options.addInfo == true" class="moreinfo">
|
||||
<!-- todo: change icon if person is deceased? -->
|
||||
<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') }}
|
||||
@@ -44,40 +30,29 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END LABEL -->
|
||||
|
||||
<!-- CONTACT INFO AND ACTIONS-->
|
||||
<div class="item-col">
|
||||
<div class="item-col separator">
|
||||
<ul class="list-content fa-ul">
|
||||
<!-- ADDRESS -->
|
||||
<li v-if="thirdparty.address">
|
||||
<i class="fa fa-li fa-map-marker"></i>
|
||||
<show-address :address="thirdparty.address" :multiline="false"></show-address>
|
||||
<show-address :address="thirdparty.address" :isMultiline="false"></show-address>
|
||||
</li>
|
||||
<!-- PHONENUMBER -->
|
||||
<!-- todo: change href for phonenumbers -->
|
||||
<li>
|
||||
<li v-if="thirdparty.telephone">
|
||||
<i class="fa fa-li fa-mobile"></i>
|
||||
<a v-if="thirdparty.telephone" :href="'tel: ' + thirdparty.telephone">{{ thirdparty.telephone }}</a>
|
||||
<span v-else class="chill-no-data-statement">{{ $t('renderbox.no_information') }}</span>
|
||||
<a :href="'tel: ' + thirdparty.telephone">{{ thirdparty.telephone }}</a>
|
||||
</li>
|
||||
<li v-if="thirdparty.type == 'thirdparty'">
|
||||
<li v-if="thirdparty.email">
|
||||
<i class="fa fa-li fa-envelope-o"></i>
|
||||
<a v-if="thirdparty.email" :href="'mailto: ' + thirdparty.email">{{ thirdparty.email }}</a>
|
||||
<span v-else class="chill-no-data-statement">{{ $t('renderbox.no_information') }}</span>
|
||||
<a :href="'mailto: ' + thirdparty.email">{{ thirdparty.email }}</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<!-- END ADDRESS AND PHONE NUMBER -->
|
||||
|
||||
<!-- ACTION BUTTONS -->
|
||||
</ul>
|
||||
|
||||
<slot name="record-actions"></slot>
|
||||
<!-- END ACTIONS -->
|
||||
</div>
|
||||
<!-- END CONTACT INFO AND ACTIONS -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
@@ -111,18 +86,11 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.lastname{
|
||||
&:before{
|
||||
content: " "
|
||||
}
|
||||
}
|
||||
.name{
|
||||
&:before{
|
||||
content: " "
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user