displaying fields labels

This commit is contained in:
2023-04-17 14:00:45 +02:00
parent 592f358cab
commit a940012b6e
7 changed files with 97 additions and 18 deletions

View File

@@ -12,7 +12,8 @@ export default {
// }
// },
computed: {
...mapState(ConcernementsStore,['opened'])
...mapState(ConcernementsStore,['opened']),
...mapState(ConcernementsStore,['ct_concernement'])
},
created () {
// console.log("Concernement view created, id", this.opened.id);
@@ -29,9 +30,18 @@ export default {
<template>
<section class="concernement">
<h2>{{ opened.title }}</h2>
<div v-html="opened.description"/>
<div v-html="opened.caillou "/>
<header>
<label>{{ this.ct_concernement.title.description }}</label>
<h2>{{ opened.title }}</h2>
</header>
<section class="description">
<label>{{ this.ct_concernement.field_description.description }}</label>
<div v-html="opened.description"/>
</section>
<section class="caillou">
<label>{{ this.ct_concernement.field_caillou.description }}</label>
<div v-html="opened.caillou "/>
</section>
</section>
</template>