Pārlūkot izejas kodu

display doleance dates on front #2246

bach 1 gadu atpakaļ
vecāks
revīzija
7983d40942
2 mainītis faili ar 29 papildinājumiem un 4 dzēšanām
  1. 3 2
      src/assets/main.scss
  2. 26 2
      src/components/contents/Doleancer.vue

+ 3 - 2
src/assets/main.scss

@@ -361,7 +361,7 @@ body{
           >main{
             padding: 1em 0;
             h5{
-              margin: 0 0 1em 0;
+              margin: 0 0 0.5em 0;
             }
           }
           label{
@@ -482,7 +482,8 @@ body{
         font-weight: 300;
         line-height: 1.40;
       }
-      label{
+      label,
+      span.date{
         display: block;
         font-weight: 100;
         font-size: 0.882em;

+ 26 - 2
src/components/contents/Doleancer.vue

@@ -85,6 +85,7 @@ export default {
           <main v-if="opened_concernement.opened_doleance.id === doleance.id">
             <section
               v-if="opened_concernement.opened_doleance.field === 'leprobleme' ||  !opened_concernement.opened_doleance.field">
+              <span class="date">{{ doleance.date_leprobleme.start }}</span>
               <h5>{{ ct_cercle_politique.field_le_probleme.label }}</h5>
               <h4 name="leprobleme">{{ doleance.leprobleme }}</h4>
             </section>
@@ -100,6 +101,11 @@ export default {
             <section 
               v-if="opened_concernement.opened_doleance.field === 'groupesinterets'"
               class="groupesinterets">
+              <span class="date">
+                {{ doleance.groupesinterets[opened_concernement.opened_doleance.field_index].date.start }}
+                &#x2192;
+                {{ doleance.groupesinterets[opened_concernement.opened_doleance.field_index].date.end }}
+              </span>
               <h5>Construction de groupes d'intérets avec qui composer la doléance</h5>
               <section>
                 <label for="groupe">{{ p_groupes_interets.field_groupe_interets.label }}</label>
@@ -122,7 +128,8 @@ export default {
             <section
               v-if="opened_concernement.opened_doleance.field === 'adresse_de_la_doleance'"
               class="adresse">
-
+              <span class="date">{{ doleance.date_adresse.start }}</span>
+              
               <h5>Adresse de la doléance</h5>
 
               <label for="entite_addresse_doleance">{{ ct_cercle_politique.field_entite_adresse_doleance.label }}</label>
@@ -144,6 +151,11 @@ export default {
             <section
               v-if="opened_concernement.opened_doleance.field === 'reception_traitement'"
               class="reception_traitement">
+              <span class="date">
+                {{ doleance.reception_traitement[opened_concernement.opened_doleance.field_index].date.start }}
+                &#x2192;
+                {{ doleance.reception_traitement[opened_concernement.opened_doleance.field_index].date.end }}
+              </span>
               <h5>Reception et traitement de la doléance</h5>
               <label for="entite_adressee">{{ p_reception_et_traitement.field_entite_adressee.label }}</label>
               <p 
@@ -166,6 +178,8 @@ export default {
             <section
               v-if="opened_concernement.opened_doleance.field === 'decision'"
               class="decision">
+              <span class="date">{{ doleance.date_decision.start }}</span>
+              
               <h5>Décision</h5>
               <label for="entites_decisionnaires">{{ ct_cercle_politique.field_entites_decisionnaires.label }}</label>
               <p name="entites_decisionnaires" v-html="doleance.entites_decisionnaires" />
@@ -176,6 +190,11 @@ export default {
             <section
               v-if="opened_concernement.opened_doleance.field === 'mise_en_oeuvre_decision'"
               class="mise_en_oeuvre_decision">
+              <span class="date">
+                {{ doleance.mise_en_oeuvre_decision[opened_concernement.opened_doleance.field_index].date.start }}
+                &#x2192;
+                {{ doleance.mise_en_oeuvre_decision[opened_concernement.opened_doleance.field_index].date.end }}
+              </span>
               <h5>{{ ct_cercle_politique.field_mise_en_oeuvre_decision.label }}</h5>
               <label for="entite_adresse_decision">{{ p_mise_en_oeuvre_decision.field_entite_adresse_decision.label }}</label>
               <p 
@@ -195,6 +214,7 @@ export default {
             <section 
               v-if="opened_concernement.opened_doleance.field === 'adresse_de_la_decision'"
               class="adresse_de_la_decision">
+              <span class="date">{{ doleance.date_adresse.start }}</span>
               <h5>Adresse de la decision à appliquer</h5>
             
               <label for="entite_adresse_application">{{ ct_cercle_politique.field_entite_adresse_application.label }}</label>
@@ -208,7 +228,11 @@ export default {
             <section
               v-if="opened_concernement.opened_doleance.field === 'receptions_et_applications'"
               class="receptions_et_applications">
-            
+              <span class="date">
+                {{ doleance.receptions_et_applications[opened_concernement.opened_doleance.field_index].date.start }}
+                &#x2192;
+                {{ doleance.receptions_et_applications[opened_concernement.opened_doleance.field_index].date.end }}
+              </span>
               <h5>{{ ct_cercle_politique.field_receptions_et_applications.label }}</h5>
             
               <label for="applique_decision">{{ p_reception_application_decision.field_applique_decision.label }}</label>