titres entretiens
This commit is contained in:
parent
ca00aa0822
commit
d8785d830c
|
@ -164,6 +164,7 @@ export const useContentStore = defineStore('content', {
|
|||
break;
|
||||
case 'entretien':
|
||||
partieContent.entretien = {};
|
||||
partieContent.entretien.titre = partie.attributes.field_titre;
|
||||
const personnesFetch = await this.fetchFromRelationships('field_personne_s', partie.relationships);
|
||||
const questionsReponsesFetch = await this.fetchFromRelationships('field_questions_reponses', partie.relationships);
|
||||
if (personnesFetch && questionsReponsesFetch) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div v-if="content.intro" class="intro">
|
||||
<p v-html="content.intro"></p>
|
||||
</div>
|
||||
<div v-for="equipe in content.gouvernances" class="equipe-item">
|
||||
<div v-for="equipe in [...content.gouvernances].sort((a, b) => a.weight - b.weight)" class="equipe-item">
|
||||
<div class="partie-title">
|
||||
<h3>
|
||||
<p
|
||||
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
<div v-for="personne in equipe.personnes" class="personne">
|
||||
<figure>
|
||||
<img :src="personne.photo_url" :alt="personne.photo_alt">
|
||||
<img v-if="personne.photo_url" :src="personne.photo_url" :alt="personne.photo_alt">
|
||||
</figure>
|
||||
<div class="name"><p v-html="personne.prenom + ' ' + personne.nom"></p></div>
|
||||
<div class="description"><p v-html="personne.description" style="white-space: pre-wrap;"></p></div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div v-if="content.intro" class="intro">
|
||||
<p v-html="content.intro"></p>
|
||||
</div>
|
||||
<div v-for="partenaire in content.partenaires" class="partenaire">
|
||||
<div v-for="partenaire in [...content.partenaires].sort((a, b) => a.weight - b.weight)" class="partenaire">
|
||||
<figure>
|
||||
<a :href="partenaire.link_url" target="_blank">
|
||||
<img :src="partenaire.logo_url" :alt="partenaire.logo_alt">
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<div class="entretien">
|
||||
<h3>
|
||||
<p
|
||||
:style="{ background: `linear-gradient(transparent 70%, ${couleur} 70%)` }"
|
||||
>Entretien</p>
|
||||
<p :style="{ background: `linear-gradient(transparent 70%, ${couleur} 70%)` }">
|
||||
{{ partie.entretien.titre || "Entretien" }}
|
||||
</p>
|
||||
</h3>
|
||||
<div class="personnes">
|
||||
<div v-for="personne in partie.entretien.personnes" class="personne">
|
||||
|
|
Loading…
Reference in New Issue