Commit 99f4d436 by Yvon

put all prestaquiz tempaltes in new dir and shorten names

parent 62ce2ea5
...@@ -672,7 +672,7 @@ class PrestataireAdmin extends AbstractAdmin ...@@ -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')) { if (($this->security->isGranted('ROLE_GESTION_GROUPE') || $this->security->isGranted('ROLE_SUPER_ADMIN')) && $this->getConfigurationPool()->getContainer()->getParameter('presta_self_init_and_eval')) {
$actions['reviewPrestaQuiz'] = [ $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'))) { 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'))) {
......
...@@ -214,7 +214,7 @@ class IndexController extends AbstractController ...@@ -214,7 +214,7 @@ class IndexController extends AbstractController
return $this->redirectToRoute($redirRoute); 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 ...@@ -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(), 'form' => $form->createView(),
]); ]);
} }
...@@ -302,8 +302,8 @@ class IndexController extends AbstractController ...@@ -302,8 +302,8 @@ class IndexController extends AbstractController
} }
$tmpl = Prestataire::DISTRIBUTOR === $presta->getMarketChannelFunction() ? $tmpl = Prestataire::DISTRIBUTOR === $presta->getMarketChannelFunction() ?
'@kohinos/tav/distributor_selfeval_prestaquiz.html.twig' '@kohinos/tav/prestaquiz/distributor.html.twig'
: '@kohinos/tav/producer_selfeval_prestaquiz.html.twig'; : '@kohinos/tav/prestaquiz/producer.html.twig';
return $this->render($tmpl, [ return $this->render($tmpl, [
'form' => $form->createView(), 'form' => $form->createView(),
......
...@@ -151,8 +151,8 @@ class PrestataireAdminController extends CRUDController ...@@ -151,8 +151,8 @@ class PrestataireAdminController extends CRUDController
} }
$tmpl = Prestataire::DISTRIBUTOR === $prestataire->getMarketChannelFunction() ? $tmpl = Prestataire::DISTRIBUTOR === $prestataire->getMarketChannelFunction() ?
'@kohinos/tav/distributor_selfeval_prestaquiz.html.twig' '@kohinos/tav/prestaquiz/distributor.html.twig'
: '@kohinos/tav/producer_selfeval_prestaquiz.html.twig'; : '@kohinos/tav/prestaquiz/producer.html.twig';
return $this->render($tmpl, [ return $this->render($tmpl, [
'form' => $form->createView(), 'form' => $form->createView(),
......
...@@ -82,9 +82,9 @@ ...@@ -82,9 +82,9 @@
<div class="card-header"><h2>Questionnaire</h2></div> <div class="card-header"><h2>Questionnaire</h2></div>
<div class="card-body"> <div class="card-body">
{% if presta.marketChannelFunction == 'distributor' %} {% if presta.marketChannelFunction == 'distributor' %}
{% include '@kohinos/tav/distributor_selfeval_prestaquiz_core.html.twig' %} {% include '@kohinos/tav/prestaquiz/distributor_core.html.twig' %}
{% else %} {% else %}
{% include '@kohinos/tav/producer_selfeval_prestaquiz_core.html.twig' %} {% include '@kohinos/tav/prestaquiz/producer_core.html.twig' %}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
......
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
{% endif %} {% endif %}
<br/> <br/>
<br/> <br/>
{% include '@kohinos/tav/distributor_selfeval_prestaquiz_core.html.twig' %} {% include '@kohinos/tav/prestaquiz/distributor_core.html.twig' %}
{% endblock %} {% endblock %}
\ No newline at end of file
{# Form theme use is mandatory to insert non-text stuff (such as html, icons...) in the choice type choices label. #} {# 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) }} {{ form_start(form) }}
{# includes twig common to distributors and producers #} {# includes twig common to distributors and producers #}
{% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %} {% include '@kohinos/tav/prestaquiz/base.html.twig' %}
<br/> <br/>
......
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
{% endif %} {% endif %}
<br/> <br/>
<br/> <br/>
{% include '@kohinos/tav/producer_selfeval_prestaquiz_core.html.twig' %} {% include '@kohinos/tav/prestaquiz/producer_core.html.twig' %}
{% endblock %} {% endblock %}
\ No newline at end of file
{# Form theme use is mandatory to insert non-text stuff (such as html, icons...) in the choice type choices label. #} {# 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) }} {{ form_start(form) }}
{# includes twig common to distributors and producers #} {# includes twig common to distributors and producers #}
{% include '@kohinos/tav/selfeval_prestaquiz.html.twig' %} {% include '@kohinos/tav/prestaquiz/base.html.twig' %}
<br/> <br/>
<br/> <br/>
......
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