Commit abc6f365 by Yvon

styling

parent ddb22789
...@@ -330,6 +330,11 @@ form[name="formEncaissement"] label { ...@@ -330,6 +330,11 @@ form[name="formEncaissement"] label {
border-color: transparent transparent black transparent; border-color: transparent transparent black transparent;
} }
.global-evaluation-container {
background-color:palevioletred;
border-radius:10px;
border: 5px solid palevioletred;
}
/** /**
* END Success check animation. * END Success check animation.
*/ */
\ No newline at end of file
...@@ -47,8 +47,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType ...@@ -47,8 +47,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
]; ];
$builder->add('transpar_relpro', ChoiceType::class, $this->opts); $builder->add('transpar_relpro', ChoiceType::class, $this->opts);
$builder->add('transpar_relpro_comment', TextareaType::class, $this->cmtOpts); $builder->add('transpar_relpro_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob; $this->opts['label'] = "Transparence et juste rémunération : " . $this->labelEvalGlob;
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('transpar_global', ChoiceType::class, $this->opts); $builder->add('transpar_global', ChoiceType::class, $this->opts);
$builder->add('transpar_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('transpar_global_comment', TextareaType::class, $this->cmtOpts);
...@@ -71,8 +71,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType ...@@ -71,8 +71,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
]; ];
$builder->add('disagdur_condur', ChoiceType::class, $this->opts); $builder->add('disagdur_condur', ChoiceType::class, $this->opts);
$builder->add('disagdur_condur_comment', TextareaType::class, $this->cmtOpts); $builder->add('disagdur_condur_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob; $this->opts['label'] = "Pratiques agricoles durables : " . $this->labelEvalGlob;
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('disagdur_global', ChoiceType::class, $this->opts); $builder->add('disagdur_global', ChoiceType::class, $this->opts);
$builder->add('disagdur_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('disagdur_global_comment', TextareaType::class, $this->cmtOpts);
...@@ -93,8 +93,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType ...@@ -93,8 +93,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
]; ];
$builder->add('localite_protra', ChoiceType::class, $this->opts); $builder->add('localite_protra', ChoiceType::class, $this->opts);
$builder->add('localite_protra_comment', TextareaType::class, $this->cmtOpts); $builder->add('localite_protra_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob; $this->opts['label'] = "Localité des produits : " . $this->labelEvalGlob;
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('localite_global', ChoiceType::class, $this->opts); $builder->add('localite_global', ChoiceType::class, $this->opts);
$builder->add('localite_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('localite_global_comment', TextareaType::class, $this->cmtOpts);
} }
......
...@@ -52,8 +52,8 @@ class ProducerSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType ...@@ -52,8 +52,8 @@ class ProducerSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this->opts['label'] = "Les pratiques agricoles permettent-elles la protection des sols ?"; $this->opts['label'] = "Les pratiques agricoles permettent-elles la protection des sols ?";
$builder->add('proagdur_prosol', ChoiceType::class, $this->opts); $builder->add('proagdur_prosol', ChoiceType::class, $this->opts);
$builder->add('proagdur_prosol_comment', TextareaType::class, $this->cmtOpts); $builder->add('proagdur_prosol_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob . " (vous pouvez cocher en vert si vous détenez un label ou certification)"; $this->opts['label'] = "Pratiques agricoles durables : " . $this->labelEvalGlob . " (cochez vert si vous détenez un label ou une certification)";
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('proagdur_global', ChoiceType::class, $this->opts); $builder->add('proagdur_global', ChoiceType::class, $this->opts);
$builder->add('proagdur_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('proagdur_global_comment', TextareaType::class, $this->cmtOpts);
} }
......
...@@ -34,6 +34,11 @@ class SelfEvalPrestaQuizType extends AbstractType ...@@ -34,6 +34,11 @@ class SelfEvalPrestaQuizType extends AbstractType
'moyennement' => 1, 'moyennement' => 1,
'oui' => 2, 'oui' => 2,
]; ];
$this->stdGlobalChoices = [
' ' => 0,
' ' => 1,
' ' => 2,
];
$this->opts = [ $this->opts = [
'label' => '', 'label' => '',
'choices' => $this->stdChoices, 'choices' => $this->stdChoices,
...@@ -46,7 +51,7 @@ class SelfEvalPrestaQuizType extends AbstractType ...@@ -46,7 +51,7 @@ class SelfEvalPrestaQuizType extends AbstractType
'label' => false, 'label' => false,
'required' => false, 'required' => false,
]; ];
$this->labelEvalGlob = "Evaluation globale"; $this->labelEvalGlob = "évaluation globale";
} }
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options)
...@@ -88,8 +93,8 @@ class SelfEvalPrestaQuizType extends AbstractType ...@@ -88,8 +93,8 @@ class SelfEvalPrestaQuizType extends AbstractType
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdChoices;
$builder->add('accessib_vulner', ChoiceType::class, $this->opts); $builder->add('accessib_vulner', ChoiceType::class, $this->opts);
$builder->add('accessib_vulner_comment', TextareaType::class, $this->cmtOpts); $builder->add('accessib_vulner_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob; $this->opts['label'] = "Accessibilité et inclusivité : " . $this->labelEvalGlob;
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('accessib_global', ChoiceType::class, $this->opts); $builder->add('accessib_global', ChoiceType::class, $this->opts);
$builder->add('accessib_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('accessib_global_comment', TextareaType::class, $this->cmtOpts);
...@@ -110,12 +115,11 @@ class SelfEvalPrestaQuizType extends AbstractType ...@@ -110,12 +115,11 @@ class SelfEvalPrestaQuizType extends AbstractType
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdChoices;
$builder->add('bienetre_recben', ChoiceType::class, $this->opts); $builder->add('bienetre_recben', ChoiceType::class, $this->opts);
$builder->add('bienetre_recben_comment', TextareaType::class, $this->cmtOpts); $builder->add('bienetre_recben_comment', TextareaType::class, $this->cmtOpts);
$this->opts['label'] = $this->labelEvalGlob; $this->opts['label'] = "Bien-être au travail : " . $this->labelEvalGlob;
$this->opts['choices'] = $this->stdChoices; $this->opts['choices'] = $this->stdGlobalChoices;
$builder->add('bienetre_global', ChoiceType::class, $this->opts); $builder->add('bienetre_global', ChoiceType::class, $this->opts);
$builder->add('bienetre_global_comment', TextareaType::class, $this->cmtOpts); $builder->add('bienetre_global_comment', TextareaType::class, $this->cmtOpts);
$builder->add('save', SubmitType::class, ['label' => 'Envoyer']) $builder->add('save', SubmitType::class, ['label' => 'Envoyer'])
; ;
} }
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
{% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %} {% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %}
<h2>Transparence et juste rémunération</h2> <br/>
<h2><i class="fas fa-coins"></i> Transparence et juste rémunération</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
<div class="col">{{ form_row(form.transpar_relpro_comment) }}</div> <div class="col">{{ form_row(form.transpar_relpro_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.accessib_global) }} {{ form_label(form.accessib_global) }}
<div class="col">{{ form_widget(form.transpar_global) }}</div> <div class="col">{{ form_widget(form.transpar_global) }}</div>
...@@ -42,7 +43,8 @@ ...@@ -42,7 +43,8 @@
</div> </div>
</div> </div>
<h2>Pratiques agricoles durables</h2> <br/>
<h2><i class="fas fa-seedling"></i> Pratiques agricoles durables</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -58,7 +60,7 @@ ...@@ -58,7 +60,7 @@
<div class="col">{{ form_row(form.disagdur_condur_comment) }}</div> <div class="col">{{ form_row(form.disagdur_condur_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.disagdur_global) }} {{ form_label(form.disagdur_global) }}
<div class="col">{{ form_widget(form.disagdur_global) }}</div> <div class="col">{{ form_widget(form.disagdur_global) }}</div>
...@@ -66,7 +68,8 @@ ...@@ -66,7 +68,8 @@
</div> </div>
</div> </div>
<h2>Localité des produits</h2> <br/>
<h2><i class="fas fa-map-marker-alt"></i> Localité des produits</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -82,14 +85,14 @@ ...@@ -82,14 +85,14 @@
<div class="col">{{ form_row(form.localite_protra_comment) }}</div> <div class="col">{{ form_row(form.localite_protra_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.localite_global) }} {{ form_label(form.localite_global) }}
<div class="col">{{ form_widget(form.localite_global) }}</div> <div class="col">{{ form_widget(form.localite_global) }}</div>
<div class="col">{{ form_row(form.localite_global_comment) }}</div> <div class="col">{{ form_row(form.localite_global_comment) }}</div>
</div> </div>
</div> </div>
<br/>
{{ form_end(form) }} {{ form_end(form) }}
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
{% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %} {% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %}
<br/>
<h2>Pratiques agricoles durables</h2> <h2><i class="fas fa-seedling"></i> Pratiques agricoles durables</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -62,13 +62,14 @@ ...@@ -62,13 +62,14 @@
<div class="col">{{ form_row(form.proagdur_prosol_comment) }}</div> <div class="col">{{ form_row(form.proagdur_prosol_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.proagdur_global) }} {{ form_label(form.proagdur_global) }}
<div class="col">{{ form_widget(form.proagdur_global) }}</div> <div class="col">{{ form_widget(form.proagdur_global) }}</div>
<div class="col">{{ form_row(form.proagdur_global_comment) }}</div> <div class="col">{{ form_row(form.proagdur_global_comment) }}</div>
</div> </div>
</div> </div>
<br/>
{{ form_end(form) }} {{ form_end(form) }}
......
<h2>Accessibilité et Inclusivité</h2> <br/>
<h2><i class="fas fa-universal-access"></i> Accessibilité et Inclusivité</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -35,7 +36,7 @@ ...@@ -35,7 +36,7 @@
<div class="col">{{ form_row(form.accessib_vulner_comment) }}</div> <div class="col">{{ form_row(form.accessib_vulner_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.accessib_global) }} {{ form_label(form.accessib_global) }}
<div class="col">{{ form_widget(form.accessib_global) }}</div> <div class="col">{{ form_widget(form.accessib_global) }}</div>
...@@ -43,7 +44,8 @@ ...@@ -43,7 +44,8 @@
</div> </div>
</div> </div>
<h2>Bien-être au travail</h2> <br/>
<h2><i class="fas fa-heart"></i> Bien-être au travail</h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -73,7 +75,7 @@ ...@@ -73,7 +75,7 @@
<div class="col">{{ form_row(form.bienetre_recben_comment) }}</div> <div class="col">{{ form_row(form.bienetre_recben_comment) }}</div>
</div> </div>
</div> </div>
<div class="container" style="background-color:blueviolet"> <div class="container global-evaluation-container">
<div class="row"> <div class="row">
{{ form_label(form.bienetre_global) }} {{ form_label(form.bienetre_global) }}
<div class="col">{{ form_widget(form.bienetre_global) }}</div> <div class="col">{{ form_widget(form.bienetre_global) }}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment