Commit 99f4d436 by Yvon

put all prestaquiz tempaltes in new dir and shorten names

parent 62ce2ea5
......@@ -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'))) {
......
......@@ -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/producer_selfeval_prestaquiz.html.twig';
'@kohinos/tav/prestaquiz/distributor.html.twig'
: '@kohinos/tav/prestaquiz/producer.html.twig';
return $this->render($tmpl, [
'form' => $form->createView(),
......
......@@ -151,8 +151,8 @@ class PrestataireAdminController extends CRUDController
}
$tmpl = Prestataire::DISTRIBUTOR === $prestataire->getMarketChannelFunction() ?
'@kohinos/tav/distributor_selfeval_prestaquiz.html.twig'
: '@kohinos/tav/producer_selfeval_prestaquiz.html.twig';
'@kohinos/tav/prestaquiz/distributor.html.twig'
: '@kohinos/tav/prestaquiz/producer.html.twig';
return $this->render($tmpl, [
'form' => $form->createView(),
......
......@@ -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/producer_selfeval_prestaquiz_core.html.twig' %}
{% include '@kohinos/tav/prestaquiz/producer_core.html.twig' %}
{% endif %}
</div>
{% endif %}
......
......@@ -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
{# 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/>
......
......@@ -9,5 +9,5 @@
{% endif %}
<br/>
<br/>
{% include '@kohinos/tav/producer_selfeval_prestaquiz_core.html.twig' %}
{% include '@kohinos/tav/prestaquiz/producer_core.html.twig' %}
{% 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 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/>
......
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