mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-25 16:14:59 +00:00
first conditionalities added analog to twig template
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
<!-- NAME TAG -->
|
||||
<div class="denomination **h_level**">
|
||||
|
||||
|
||||
<!-- NAME IF ADD LINK AND PERMISSION GRANTED -->
|
||||
<a href="#">
|
||||
<a v-if="this.options.addLink == true" href="#">
|
||||
<span class="firstname">{{ participation.person.firstName }}</span>
|
||||
<span class="lastname">{{ participation.person.lastName }}</span>
|
||||
<!-- IF ALT NAMES -->
|
||||
<span class="altnames">
|
||||
<span v-if="this.options.addAltNames == true" class="altnames">
|
||||
<!-- LOOP THROUGH ALT NAMES -->
|
||||
<span class="altname altname-**key**">**label**</span>
|
||||
<!-- END LOOP -->
|
||||
@@ -25,21 +25,21 @@
|
||||
<span class="firstname">{{ participation.person.firstName }}</span>
|
||||
<span class="lastname">{{ participation.person.lastName }}</span>
|
||||
<!-- IF ALT NAMES -->
|
||||
<span class="altnames">
|
||||
<span v-if="this.options.addAltNames == true" class="altnames">
|
||||
<!-- LOOP THROUGH ALT NAMES -->
|
||||
<span class="altname altname-**key**">**label**</span>
|
||||
<!-- END LOOP -->
|
||||
</span>
|
||||
|
||||
<!-- IF ADD ENTITY OPTION -->
|
||||
<span class="badge rounded-pill bg-secondary">**Person object?**</span>
|
||||
<span class="id-number" title="n° participation.person.id">{{ participation.person.id }}</span>
|
||||
<span v-if="this.options.addEntity == true" class="badge rounded-pill bg-secondary">Person</span>
|
||||
<span v-if="this.options.addId == true" class="id-number" title="n° participation.person.id">{{ participation.person.id }}</span>
|
||||
|
||||
</div>
|
||||
<!-- END NAME TAG -->
|
||||
|
||||
<!-- BIRTHDATE / DEATHDATE AND AGE -->
|
||||
<p class="moreinfo">
|
||||
<p v-if="this.options.addInfo == true" class="moreinfo">
|
||||
<i class="fa fa-fw **gender**" title="**gender title**"></i>
|
||||
<time datetime="13/05/1867" title="**birthdate**">
|
||||
{{ participation.person.birthdate }}
|
||||
@@ -86,18 +86,16 @@
|
||||
<script>
|
||||
export default {
|
||||
name: "PersonRenderBox",
|
||||
props: [
|
||||
'options',
|
||||
'participation'
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
props: ['participation', 'options'],
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
.item-row{
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user