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