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
abc6f365
Commit
abc6f365
authored
Feb 14, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling
parent
ddb22789
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
28 deletions
+44
-28
app.css
assets/css/app.css
+6
-0
DistributorSelfEvalPrestaQuizType.php
src/Form/Type/DistributorSelfEvalPrestaQuizType.php
+6
-6
ProducerSelfEvalPrestaQuizType.php
src/Form/Type/ProducerSelfEvalPrestaQuizType.php
+2
-2
SelfEvalPrestaQuizType.php
src/Form/Type/SelfEvalPrestaQuizType.php
+10
-6
distributor_selfeval_prestaquiz.html.twig
...mes/kohinos/tav/distributor_selfeval_prestaquiz.html.twig
+10
-7
producer_selfeval_prestaquiz.html.twig
...themes/kohinos/tav/producer_selfeval_prestaquiz.html.twig
+4
-3
selfeval_prestaquiz.html.twig
templates/themes/kohinos/tav/selfeval_prestaquiz.html.twig
+6
-4
No files found.
assets/css/app.css
View file @
abc6f365
...
...
@@ -330,6 +330,11 @@ form[name="formEncaissement"] label {
border-color
:
transparent
transparent
black
transparent
;
}
.global-evaluation-container
{
background-color
:
palevioletred
;
border-radius
:
10px
;
border
:
5px
solid
palevioletred
;
}
/**
* END Success check animation.
*/
\ No newline at end of file
src/Form/Type/DistributorSelfEvalPrestaQuizType.php
View file @
abc6f365
...
...
@@ -47,8 +47,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
];
$builder
->
add
(
'transpar_relpro'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'transpar_relpro_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$this
->
opts
[
'label'
]
=
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Transparence et juste rémunération : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'transpar_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'transpar_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
...
...
@@ -71,8 +71,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
];
$builder
->
add
(
'disagdur_condur'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'disagdur_condur_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$this
->
opts
[
'label'
]
=
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Pratiques agricoles durables : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'disagdur_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'disagdur_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
...
...
@@ -93,8 +93,8 @@ class DistributorSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
];
$builder
->
add
(
'localite_protra'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'localite_protra_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$this
->
opts
[
'label'
]
=
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Localité des produits : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'localite_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'localite_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
}
...
...
src/Form/Type/ProducerSelfEvalPrestaQuizType.php
View file @
abc6f365
...
...
@@ -52,8 +52,8 @@ class ProducerSelfEvalPrestaQuizType extends SelfEvalPrestaQuizType
$this
->
opts
[
'label'
]
=
"Les pratiques agricoles permettent-elles la protection des sols ?"
;
$builder
->
add
(
'proagdur_prosol'
,
ChoiceType
::
class
,
$this
->
opts
);
$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
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Pratiques agricoles durables : "
.
$this
->
labelEvalGlob
.
" (cochez vert si vous détenez un label ou une
certification)"
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'proagdur_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'proagdur_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
}
...
...
src/Form/Type/SelfEvalPrestaQuizType.php
View file @
abc6f365
...
...
@@ -34,6 +34,11 @@ class SelfEvalPrestaQuizType extends AbstractType
'moyennement'
=>
1
,
'oui'
=>
2
,
];
$this
->
stdGlobalChoices
=
[
' '
=>
0
,
' '
=>
1
,
' '
=>
2
,
];
$this
->
opts
=
[
'label'
=>
''
,
'choices'
=>
$this
->
stdChoices
,
...
...
@@ -46,7 +51,7 @@ class SelfEvalPrestaQuizType extends AbstractType
'label'
=>
false
,
'required'
=>
false
,
];
$this
->
labelEvalGlob
=
"
E
valuation globale"
;
$this
->
labelEvalGlob
=
"
é
valuation globale"
;
}
public
function
buildForm
(
FormBuilderInterface
$builder
,
array
$options
)
...
...
@@ -88,8 +93,8 @@ class SelfEvalPrestaQuizType extends AbstractType
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$builder
->
add
(
'accessib_vulner'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'accessib_vulner_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$this
->
opts
[
'label'
]
=
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Accessibilité et inclusivité : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'accessib_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'accessib_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
...
...
@@ -110,12 +115,11 @@ class SelfEvalPrestaQuizType extends AbstractType
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$builder
->
add
(
'bienetre_recben'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'bienetre_recben_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$this
->
opts
[
'label'
]
=
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
stdChoices
;
$this
->
opts
[
'label'
]
=
"Bien-être au travail : "
.
$this
->
labelEvalGlob
;
$this
->
opts
[
'choices'
]
=
$this
->
std
Global
Choices
;
$builder
->
add
(
'bienetre_global'
,
ChoiceType
::
class
,
$this
->
opts
);
$builder
->
add
(
'bienetre_global_comment'
,
TextareaType
::
class
,
$this
->
cmtOpts
);
$builder
->
add
(
'save'
,
SubmitType
::
class
,
[
'label'
=>
'Envoyer'
])
;
}
...
...
templates/themes/kohinos/tav/distributor_selfeval_prestaquiz.html.twig
View file @
abc6f365
...
...
@@ -11,7 +11,8 @@
{%
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=
"row"
>
...
...
@@ -34,7 +35,7 @@
<div
class=
"col"
>
{{
form_row
(
form.transpar_relpro_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.accessib_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.transpar_global
)
}}
</div>
...
...
@@ -42,7 +43,8 @@
</div>
</div>
<h2>
Pratiques agricoles durables
</h2>
<br/>
<h2><i
class=
"fas fa-seedling"
></i>
Pratiques agricoles durables
</h2>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -58,7 +60,7 @@
<div
class=
"col"
>
{{
form_row
(
form.disagdur_condur_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.disagdur_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.disagdur_global
)
}}
</div>
...
...
@@ -66,7 +68,8 @@
</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=
"row"
>
...
...
@@ -82,14 +85,14 @@
<div
class=
"col"
>
{{
form_row
(
form.localite_protra_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.localite_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.localite_global
)
}}
</div>
<div
class=
"col"
>
{{
form_row
(
form.localite_global_comment
)
}}
</div>
</div>
</div>
<br/>
{{
form_end
(
form
)
}}
...
...
templates/themes/kohinos/tav/producer_selfeval_prestaquiz.html.twig
View file @
abc6f365
...
...
@@ -10,8 +10,8 @@
{%
include
'@kohinos/tav/selfeval_prestaquiz.html.twig'
%}
<h2>
Pratiques agricoles durables
</h2>
<br/>
<h2>
<i
class=
"fas fa-seedling"
></i>
Pratiques agricoles durables
</h2>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -62,13 +62,14 @@
<div
class=
"col"
>
{{
form_row
(
form.proagdur_prosol_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.proagdur_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.proagdur_global
)
}}
</div>
<div
class=
"col"
>
{{
form_row
(
form.proagdur_global_comment
)
}}
</div>
</div>
</div>
<br/>
{{
form_end
(
form
)
}}
...
...
templates/themes/kohinos/tav/selfeval_prestaquiz.html.twig
View file @
abc6f365
<h2>
Accessibilité et Inclusivité
</h2>
<br/>
<h2><i
class=
"fas fa-universal-access"
></i>
Accessibilité et Inclusivité
</h2>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -35,7 +36,7 @@
<div
class=
"col"
>
{{
form_row
(
form.accessib_vulner_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.accessib_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.accessib_global
)
}}
</div>
...
...
@@ -43,7 +44,8 @@
</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=
"row"
>
...
...
@@ -73,7 +75,7 @@
<div
class=
"col"
>
{{
form_row
(
form.bienetre_recben_comment
)
}}
</div>
</div>
</div>
<div
class=
"container
"
style=
"background-color:blueviolet
"
>
<div
class=
"container
global-evaluation-container
"
>
<div
class=
"row"
>
{{
form_label
(
form.bienetre_global
)
}}
<div
class=
"col"
>
{{
form_widget
(
form.bienetre_global
)
}}
</div>
...
...
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