Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
5ed283bf
Commit
5ed283bf
authored
Feb 27, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prestataire self eval quizz: make global comments required
parent
1ac5109e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
DistributorSelfEvalPrestaQuizType.php
src/Form/Type/DistributorSelfEvalPrestaQuizType.php
+3
-3
ProducerSelfEvalPrestaQuizType.php
src/Form/Type/ProducerSelfEvalPrestaQuizType.php
+1
-1
SelfEvalPrestaQuizType.php
src/Form/Type/SelfEvalPrestaQuizType.php
+8
-2
No files found.
src/Form/Type/DistributorSelfEvalPrestaQuizType.php
View file @
5ed283bf
...
...
@@ -51,7 +51,7 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this
->
opts
[
'label'
]
=
"Transparence et juste rémunération : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'transpar_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'transpar_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'transpar_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
/* PARTIE 4 : PRATIQUES AGRICOLES DURABLES */
$this
->
opts
[
'label'
]
=
"Détenez-vous des labels ou des certifications (AB, Bio, Nature et Progrès, système de garantie
...
...
@@ -75,7 +75,7 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this
->
opts
[
'label'
]
=
"Pratiques agricoles durables : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'disagdur_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'disagdur_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'disagdur_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
/* PARTIE 5 : LOCALITE DES PRODUITS */
$this
->
opts
[
'label'
]
=
"Quelle est la provenance de l'offre alimentaire globale en produits bruts ?"
;
...
...
@@ -97,7 +97,7 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this
->
opts
[
'label'
]
=
"Localité des produits : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'localite_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'localite_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'localite_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
//Review
if
(
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
)
{
...
...
src/Form/Type/ProducerSelfEvalPrestaQuizType.php
View file @
5ed283bf
...
...
@@ -56,7 +56,7 @@ class ProducerSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this
->
opts
[
'label'
]
=
"Pratiques agricoles durables : "
.
$this
->
labelEvalGlob
.
" (cochez vert si vous détenez un label ou une certification)"
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'proagdur_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'proagdur_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'proagdur_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
//Review
if
(
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
)
{
...
...
src/Form/Type/SelfEvalPrestaQuizType.php
View file @
5ed283bf
...
...
@@ -30,6 +30,7 @@ class SelfEvalPrestaQuizType extends AbstractType
protected
array
$opts
;
protected
array
$reviewOpts
;
protected
array
$cmtOpts
;
protected
array
$globalCmtOpts
;
protected
array
$reviewCmtOpts
;
protected
string
$labelEvalGlob
;
protected
string
$reviewLabel
;
...
...
@@ -80,10 +81,15 @@ class SelfEvalPrestaQuizType extends AbstractType
'required'
=>
false
,
'disabled'
=>
$options
[
'mode'
]
===
self
::
READONLY
];
$this
->
cmtOpts
=
$this
->
reviewCmtOpts
;
$this
->
cmtOpts
[
'disabled'
]
=
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
;
$this
->
cmtOpts
[
'attr'
][
'placeholder'
]
=
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
?
''
:
'Commentaires'
;
$this
->
globalCmtOpts
=
$this
->
cmtOpts
;
$this
->
globalCmtOpts
[
'required'
]
=
true
;
$this
->
globalCmtOpts
[
'attr'
][
'placeholder'
]
=
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
?
''
:
'Commentaires (obligatoire)'
;
/* PARTIE 1 : ACCESSIBILITE ET INCLUSIVITE */
$this
->
opts
[
'label'
]
=
"Géographique et physique : le lieu est-il accessible par différents modes de transport ?"
;
$this
->
opts
[
'choices'
]
=
[
...
...
@@ -117,7 +123,7 @@ class SelfEvalPrestaQuizType extends AbstractType
$this
->
opts
[
'label'
]
=
"Accessibilité et inclusivité : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'accessib_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'accessib_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'accessib_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
/* PARTIE 2 : BIEN-ETRE AU TRAVAIL */
$this
->
opts
[
'label'
]
=
"Le lieu met-il en place des actions pour faciliter l'accueil, l'intégration et la formation des personnes qui y travaillent ?"
;
...
...
@@ -139,7 +145,7 @@ class SelfEvalPrestaQuizType extends AbstractType
$this
->
opts
[
'label'
]
=
"Bien-être au travail : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdGlobalChoices
;
$builder
->
add
(
'bienetre_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'bienetre_global_comment'
,
TextareaType
::
class
,
$this
->
c
mtOpts
);
$builder
->
add
(
'bienetre_global_comment'
,
TextareaType
::
class
,
$this
->
globalC
mtOpts
);
//Review
if
(
$options
[
'mode'
]
!==
self
::
PRESTA_EDIT
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment