admin front: puiisance dagir: updating besoin reponse is updating mapItem display
This commit is contained in:
@@ -336,24 +336,86 @@ export default {
|
||||
:path="hover_elmt && hover_elmt.type === 'reponse' && hover_elmt.id === reponse.id ? rhombus_path : rhombusoutline_path"
|
||||
/>
|
||||
Ressource</label>
|
||||
<section v-if="reponse.qui">
|
||||
<section v-if="reponse.qui || reponse.can_update">
|
||||
<label for="reponse-qui">Qui</label>
|
||||
<p name="reponse-qui" v-html="reponse.qui" />
|
||||
<!-- <p name="reponse-qui" v-html="reponse.qui" /> -->
|
||||
<ContentEditable
|
||||
tag="p"
|
||||
:value="reponse.qui"
|
||||
:html="true"
|
||||
:contenteditable="reponse.can_update"
|
||||
placeholder="Ajouter un élement de réponse."
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'reponse',
|
||||
id: reponse.id,
|
||||
field: {field_name: 'field_qui', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadBesoins" />
|
||||
</section>
|
||||
<section v-if="reponse.quoi">
|
||||
<section v-if="reponse.quoi || reponse.can_update">
|
||||
<label for="reponse-quoi">Quoi</label>
|
||||
<p name="reponse-quoi" v-html="reponse.quoi" />
|
||||
<!-- <p name="reponse-quoi" v-html="reponse.quoi" /> -->
|
||||
<ContentEditable
|
||||
tag="p"
|
||||
:value="reponse.quoi"
|
||||
:html="true"
|
||||
:contenteditable="reponse.can_update"
|
||||
placeholder="Ajouter un élement de réponse."
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'reponse',
|
||||
id: reponse.id,
|
||||
field: {field_name: 'field_quoi', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadBesoins" />
|
||||
</section>
|
||||
<section v-if="reponse.ou">
|
||||
<section v-if="reponse.ou || reponse.can_update">
|
||||
<label for="reponse-ou">Où</label>
|
||||
<p name="reponse-ou" v-html="reponse.ou" />
|
||||
<!-- <p name="reponse-ou" v-html="reponse.ou" /> -->
|
||||
<ContentEditable
|
||||
tag="p"
|
||||
:value="reponse.ou"
|
||||
:html="true"
|
||||
:contenteditable="reponse.can_update"
|
||||
placeholder="Ajouter un élement de réponse."
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'reponse',
|
||||
id: reponse.id,
|
||||
field: {field_name: 'field_ou', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadBesoins" />
|
||||
</section>
|
||||
<section v-if="reponse.avec">
|
||||
<section v-if="reponse.avec || reponse.can_update">
|
||||
<label for="reponse-avec">Avec</label>
|
||||
<p name="reponse-avec" v-html="reponse.avec" />
|
||||
<!-- <p name="reponse-avec" v-html="reponse.avec" /> -->
|
||||
<ContentEditable
|
||||
tag="p"
|
||||
:value="reponse.avec"
|
||||
:html="true"
|
||||
:contenteditable="reponse.can_update"
|
||||
placeholder="Ajouter un élement de réponse."
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'reponse',
|
||||
id: reponse.id,
|
||||
field: {field_name: 'field_avec', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadBesoins" />
|
||||
</section>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<template v-if="isloggedin && !opened_concernement.can_update">
|
||||
<div v-if="!reloading_concernements" @click="addRessource(besoin.id)" class="add-ressource-btn">
|
||||
<span>Proposer une ressource</span>
|
||||
<svg-icon type="mdi" :path="mdiStickerPlusOutline_path"/>
|
||||
</div>
|
||||
<div v-else class="add-ressource-btn">
|
||||
<div class="loading">Chargement</div>
|
||||
</div>
|
||||
</template>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- <a
|
||||
v-if="isloggedin && !opened_concernement.can_update"
|
||||
@@ -363,15 +425,7 @@ export default {
|
||||
class="contribute-link mdi mdi-pencil-plus">
|
||||
<svg-icon type="mdi" :path="pencilplusoutline_path" /> contribuer à ce besoin
|
||||
</a> -->
|
||||
<template v-if="isloggedin && !opened_concernement.can_update">
|
||||
<div v-if="!reloading_concernements" @click="addRessource(besoin.id)" class="add-ressource-btn">
|
||||
<span>Proposer une ressource</span>
|
||||
<svg-icon type="mdi" :path="mdiStickerPlusOutline_path"/>
|
||||
</div>
|
||||
<div v-else class="add-ressource-btn">
|
||||
<div class="loading">Chargement</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user