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
99f4d436
Commit
99f4d436
authored
Feb 22, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put all prestaquiz tempaltes in new dir and shorten names
parent
62ce2ea5
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
17 additions
and
15 deletions
+17
-15
PrestataireAdmin.php
src/Admin/PrestataireAdmin.php
+1
-1
IndexController.php
src/Controller/IndexController.php
+4
-4
PrestataireAdminController.php
src/Controller/PrestataireAdminController.php
+2
-2
show.html.twig
templates/themes/kohinos/presta/show.html.twig
+2
-2
base.html.twig
templates/themes/kohinos/tav/prestaquiz/base.html.twig
+0
-0
distributor.html.twig
...lates/themes/kohinos/tav/prestaquiz/distributor.html.twig
+2
-1
distributor_core.html.twig
.../themes/kohinos/tav/prestaquiz/distributor_core.html.twig
+2
-2
form_theme.html.twig
templates/themes/kohinos/tav/prestaquiz/form_theme.html.twig
+0
-0
infos.html.twig
templates/themes/kohinos/tav/prestaquiz/infos.html.twig
+0
-0
producer.html.twig
templates/themes/kohinos/tav/prestaquiz/producer.html.twig
+2
-1
producer_core.html.twig
...tes/themes/kohinos/tav/prestaquiz/producer_core.html.twig
+2
-2
review.html.twig
templates/themes/kohinos/tav/prestaquiz/review.html.twig
+0
-0
sent.html.twig
templates/themes/kohinos/tav/prestaquiz/sent.html.twig
+0
-0
No files found.
src/Admin/PrestataireAdmin.php
View file @
99f4d436
...
...
@@ -672,7 +672,7 @@ class PrestataireAdmin extends AbstractAdmin
];
if
((
$this
->
security
->
isGranted
(
'ROLE_GESTION_GROUPE'
)
||
$this
->
security
->
isGranted
(
'ROLE_SUPER_ADMIN'
))
&&
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'presta_self_init_and_eval'
))
{
$actions
[
'reviewPrestaQuiz'
]
=
[
'template'
=>
'@kohinos/tav/
reviewprestaquiz
.html.twig'
'template'
=>
'@kohinos/tav/
prestaquiz/review
.html.twig'
];
}
if
(
null
!=
$this
->
security
->
getUser
()
&&
(
$this
->
security
->
isGranted
(
'ROLE_SUPER_ADMIN'
)
||
$this
->
security
->
isGranted
(
'ROLE_ADMIN_PRESTATAIRE_COTISATIONS_ALL'
)
||
$this
->
security
->
isGranted
(
'ROLE_ADMIN_PRESTATAIRE_COTISATIONS_CREATE'
)))
{
...
...
src/Controller/IndexController.php
View file @
99f4d436
...
...
@@ -214,7 +214,7 @@ class IndexController extends AbstractController
return
$this
->
redirectToRoute
(
$redirRoute
);
}
return
$this
->
render
(
'@kohinos/tav/prestaquiz
_
sent.html.twig'
);
return
$this
->
render
(
'@kohinos/tav/prestaquiz
/
sent.html.twig'
);
}
/**
...
...
@@ -262,7 +262,7 @@ class IndexController extends AbstractController
}
}
return
$this
->
render
(
'@kohinos/tav/
infos_prestaquiz
.html.twig'
,
[
return
$this
->
render
(
'@kohinos/tav/
prestaquiz/infos
.html.twig'
,
[
'form'
=>
$form
->
createView
(),
]);
}
...
...
@@ -302,8 +302,8 @@ class IndexController extends AbstractController
}
$tmpl
=
Prestataire
::
DISTRIBUTOR
===
$presta
->
getMarketChannelFunction
()
?
'@kohinos/tav/
distributor_selfeval_prestaquiz
.html.twig'
:
'@kohinos/tav/pr
oducer_selfeval_prestaquiz
.html.twig'
;
'@kohinos/tav/
prestaquiz/distributor
.html.twig'
:
'@kohinos/tav/pr
estaquiz/producer
.html.twig'
;
return
$this
->
render
(
$tmpl
,
[
'form'
=>
$form
->
createView
(),
...
...
src/Controller/PrestataireAdminController.php
View file @
99f4d436
...
...
@@ -151,8 +151,8 @@ class PrestataireAdminController extends CRUDController
}
$tmpl
=
Prestataire
::
DISTRIBUTOR
===
$prestataire
->
getMarketChannelFunction
()
?
'@kohinos/tav/
distributor_selfeval_prestaquiz
.html.twig'
:
'@kohinos/tav/pr
oducer_selfeval_prestaquiz
.html.twig'
;
'@kohinos/tav/
prestaquiz/distributor
.html.twig'
:
'@kohinos/tav/pr
estaquiz/producer
.html.twig'
;
return
$this
->
render
(
$tmpl
,
[
'form'
=>
$form
->
createView
(),
...
...
templates/themes/kohinos/presta/show.html.twig
View file @
99f4d436
...
...
@@ -82,9 +82,9 @@
<div
class=
"card-header"
><h2>
Questionnaire
</h2></div>
<div
class=
"card-body"
>
{%
if
presta.marketChannelFunction
==
'distributor'
%}
{%
include
'@kohinos/tav/
distributor_selfeval_prestaquiz
_core.html.twig'
%}
{%
include
'@kohinos/tav/
prestaquiz/distributor
_core.html.twig'
%}
{%
else
%}
{%
include
'@kohinos/tav/pr
oducer_selfeval_prestaquiz
_core.html.twig'
%}
{%
include
'@kohinos/tav/pr
estaquiz/producer
_core.html.twig'
%}
{%
endif
%}
</div>
{%
endif
%}
...
...
templates/themes/kohinos/tav/
selfeval_prestaquiz
.html.twig
→
templates/themes/kohinos/tav/
prestaquiz/base
.html.twig
View file @
99f4d436
File moved
templates/themes/kohinos/tav/
distributor_selfeval_prestaquiz
.html.twig
→
templates/themes/kohinos/tav/
prestaquiz/distributor
.html.twig
View file @
99f4d436
...
...
@@ -9,5 +9,5 @@
{%
endif
%}
<br/>
<br/>
{%
include
'@kohinos/tav/
distributor_selfeval_prestaquiz
_core.html.twig'
%}
{%
include
'@kohinos/tav/
prestaquiz/distributor
_core.html.twig'
%}
{%
endblock
%}
\ No newline at end of file
templates/themes/kohinos/tav/
distributor_selfeval_prestaquiz
_core.html.twig
→
templates/themes/kohinos/tav/
prestaquiz/distributor
_core.html.twig
View file @
99f4d436
{# Form theme use is mandatory to insert non-text stuff (such as html, icons...) in the choice type choices label. #}
{%
form_theme
form
'@kohinos/tav/prestaquiz
_
form_theme.html.twig'
%}
{%
form_theme
form
'@kohinos/tav/prestaquiz
/
form_theme.html.twig'
%}
{{
form_start
(
form
)
}}
{# includes twig common to distributors and producers #}
{%
include
'@kohinos/tav/
selfeval_prestaquiz
.html.twig'
%}
{%
include
'@kohinos/tav/
prestaquiz/base
.html.twig'
%}
<br/>
...
...
templates/themes/kohinos/tav/prestaquiz
_
form_theme.html.twig
→
templates/themes/kohinos/tav/prestaquiz
/
form_theme.html.twig
View file @
99f4d436
File moved
templates/themes/kohinos/tav/
infos_prestaquiz
.html.twig
→
templates/themes/kohinos/tav/
prestaquiz/infos
.html.twig
View file @
99f4d436
File moved
templates/themes/kohinos/tav/pr
oducer_selfeval_prestaquiz
.html.twig
→
templates/themes/kohinos/tav/pr
estaquiz/producer
.html.twig
View file @
99f4d436
...
...
@@ -9,5 +9,5 @@
{%
endif
%}
<br/>
<br/>
{%
include
'@kohinos/tav/pr
oducer_selfeval_prestaquiz
_core.html.twig'
%}
{%
include
'@kohinos/tav/pr
estaquiz/producer
_core.html.twig'
%}
{%
endblock
%}
\ No newline at end of file
templates/themes/kohinos/tav/pr
oducer_selfeval_prestaquiz
_core.html.twig
→
templates/themes/kohinos/tav/pr
estaquiz/producer
_core.html.twig
View file @
99f4d436
{# Form theme use is mandatory to insert non-text stuff (such as html, icons...) in the choice type choices label. #}
{%
form_theme
form
'@kohinos/tav/prestaquiz
_
form_theme.html.twig'
%}
{%
form_theme
form
'@kohinos/tav/prestaquiz
/
form_theme.html.twig'
%}
{{
form_start
(
form
)
}}
{# includes twig common to distributors and producers #}
{%
include
'@kohinos/tav/
selfeval_prestaquiz
.html.twig'
%}
{%
include
'@kohinos/tav/
prestaquiz/base
.html.twig'
%}
<br/>
<br/>
...
...
templates/themes/kohinos/tav/
reviewprestaquiz
.html.twig
→
templates/themes/kohinos/tav/
prestaquiz/review
.html.twig
View file @
99f4d436
File moved
templates/themes/kohinos/tav/prestaquiz
_
sent.html.twig
→
templates/themes/kohinos/tav/prestaquiz
/
sent.html.twig
View file @
99f4d436
File moved
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