cercle po: decision ok
This commit is contained in:
		@@ -137,7 +137,7 @@ fragment ConcernementFields on Concernement {
 | 
			
		||||
      start
 | 
			
		||||
    }
 | 
			
		||||
    entites_decisionnaires
 | 
			
		||||
    decision_formule
 | 
			
		||||
    decision_formulee
 | 
			
		||||
    mise_en_oeuvre_decision {
 | 
			
		||||
      id
 | 
			
		||||
      revision_id
 | 
			
		||||
 
 | 
			
		||||
@@ -1304,7 +1304,8 @@ div.add-ressource-btn{
 | 
			
		||||
div.add-cerclepo-btn,
 | 
			
		||||
div.add-groupinteret-btn,
 | 
			
		||||
div.add-adressedoleance-btn,
 | 
			
		||||
div.add-receptiontraitement-btn{
 | 
			
		||||
div.add-receptiontraitement-btn,
 | 
			
		||||
div.add-decision-btn{
 | 
			
		||||
  @include add-btn();
 | 
			
		||||
  margin: 0 0 1em;
 | 
			
		||||
  height: 60px;
 | 
			
		||||
 
 | 
			
		||||
@@ -196,6 +196,10 @@ export default {
 | 
			
		||||
    addAdresseDoleance(e){
 | 
			
		||||
      this.setOpenedDoleanceField(this.cid, this.doleance.id, "adresse_de_la_doleance");
 | 
			
		||||
    },
 | 
			
		||||
    // decision
 | 
			
		||||
    addDecision(e){
 | 
			
		||||
      this.setOpenedDoleanceField(this.cid, this.doleance.id, "decision");
 | 
			
		||||
    },
 | 
			
		||||
    // groupe interet
 | 
			
		||||
    addgroupInteret(e){
 | 
			
		||||
      this.createCerclepoParagGeneric('groupes_interets', 'field_groupes', 'groupesinterets');
 | 
			
		||||
@@ -532,7 +536,7 @@ export default {
 | 
			
		||||
                entitytype: 'node',
 | 
			
		||||
                bundle: 'cercle_politique',
 | 
			
		||||
                id: doleance.id,
 | 
			
		||||
                field: {field_name: 'field_date_adresse'}
 | 
			
		||||
                field: {field_name: 'field_date_adresse_doleance'}
 | 
			
		||||
              }"
 | 
			
		||||
              v-on:updated="reloadConcernementCerclePol(cid)"/>
 | 
			
		||||
            
 | 
			
		||||
@@ -692,13 +696,52 @@ export default {
 | 
			
		||||
          <section
 | 
			
		||||
            v-if="opened_dol.field === 'decision'"
 | 
			
		||||
            class="decision">
 | 
			
		||||
            <span class="date">{{ doleance.date_decision.start }}</span>
 | 
			
		||||
            
 | 
			
		||||
            <h5>Décision</h5>
 | 
			
		||||
            <!-- <span class="date">{{ doleance.date_decision.start }}</span> -->
 | 
			
		||||
            <DateEditable
 | 
			
		||||
              :value="doleance.date_decision.start"
 | 
			
		||||
              class="decision-date" 
 | 
			
		||||
              :contenteditable="opened_concernement.can_update"
 | 
			
		||||
              :data="{
 | 
			
		||||
                entitytype: 'node',
 | 
			
		||||
                bundle: 'cercle_politique',
 | 
			
		||||
                id: doleance.id,
 | 
			
		||||
                field: {field_name: 'field_date_decision'}
 | 
			
		||||
              }"
 | 
			
		||||
              v-on:updated="reloadConcernementCerclePol(cid)"/>
 | 
			
		||||
 | 
			
		||||
            <label for="entites_decisionnaires">{{ ct_cercle_politique.field_entites_decisionnaires.label }}</label>
 | 
			
		||||
            <p name="entites_decisionnaires" v-html="doleance.entites_decisionnaires" />
 | 
			
		||||
            <label for="decision_formule">{{ ct_cercle_politique.field_decision_formulee.label }}</label>
 | 
			
		||||
            <p name="decision_formule" v-html="doleance.decision_formule" />
 | 
			
		||||
            <!-- <p name="entites_decisionnaires" v-html="doleance.entites_decisionnaires" /> -->
 | 
			
		||||
            <ContentEditable 
 | 
			
		||||
              tag="p"
 | 
			
		||||
              name="entites_decisionnaires"
 | 
			
		||||
              :value="doleance.entites_decisionnaires"
 | 
			
		||||
              :html="true" 
 | 
			
		||||
              :class="{ ellipsed: headerreduced }" 
 | 
			
		||||
              :contenteditable="opened_concernement.can_update"
 | 
			
		||||
              :data="{
 | 
			
		||||
                entitytype: 'node',
 | 
			
		||||
                bundle: 'cercle_politique',
 | 
			
		||||
                id: doleance.id,
 | 
			
		||||
                field: {field_name: 'field_entites_decisionnaires', value:'value'}
 | 
			
		||||
              }"
 | 
			
		||||
              v-on:updated="reloadConcernementCerclePol(cid)"/>
 | 
			
		||||
            <label for="decision_formulee">{{ ct_cercle_politique.field_decision_formulee.label }}</label>
 | 
			
		||||
            <!-- <p name="decision_formulee" v-html="doleance.decision_formulee" /> -->
 | 
			
		||||
            <ContentEditable 
 | 
			
		||||
              tag="p"
 | 
			
		||||
              name="decision_formulee"
 | 
			
		||||
              :value="doleance.decision_formulee"
 | 
			
		||||
              :html="true" 
 | 
			
		||||
              :class="{ ellipsed: headerreduced }" 
 | 
			
		||||
              :contenteditable="opened_concernement.can_update"
 | 
			
		||||
              :data="{
 | 
			
		||||
                entitytype: 'node',
 | 
			
		||||
                bundle: 'cercle_politique',
 | 
			
		||||
                id: doleance.id,
 | 
			
		||||
                field: {field_name: 'field_decision_formulee', value:'value'}
 | 
			
		||||
              }"
 | 
			
		||||
              v-on:updated="reloadConcernementCerclePol(cid)"/>
 | 
			
		||||
          </section>
 | 
			
		||||
 | 
			
		||||
          <section
 | 
			
		||||
@@ -836,6 +879,19 @@ export default {
 | 
			
		||||
          </div>
 | 
			
		||||
        </template>
 | 
			
		||||
 | 
			
		||||
        <template v-if="opened_concernement.opened_doleance.field === 'reception_traitement'">
 | 
			
		||||
          <div 
 | 
			
		||||
            v-if="!reloading_concernements" 
 | 
			
		||||
            @click="addDecision" 
 | 
			
		||||
            class="add-decision-btn btn">
 | 
			
		||||
              <span>Décision</span>
 | 
			
		||||
              <svg-icon type="mdi" :path="mdiStickerPlusOutline_path"/>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div v-else class="add-decision-btn btn">
 | 
			
		||||
            <div class="loading">Chargement</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </template>
 | 
			
		||||
 | 
			
		||||
        <template v-if="opened_concernement.opened_doleance.field === 'leprobleme' || opened_concernement.opened_doleance.field === 'lenquete'">
 | 
			
		||||
          <div v-if="!reloading_concernements" 
 | 
			
		||||
            @click="addCerclePo" 
 | 
			
		||||
 
 | 
			
		||||
@@ -601,7 +601,7 @@ export const ConcernementsStore = defineStore({
 | 
			
		||||
                start
 | 
			
		||||
              }
 | 
			
		||||
              entites_decisionnaires
 | 
			
		||||
              decision_formule
 | 
			
		||||
              decision_formulee
 | 
			
		||||
              mise_en_oeuvre_decision {
 | 
			
		||||
                id
 | 
			
		||||
                revision_id
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user