parent
8c848bc67d
commit
82b2b047c5
@ -1,22 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
global $twig;
|
global $twig;
|
||||||
|
|
||||||
|
|
||||||
echo $twig->render('head.html.twig', [
|
echo $twig->render('head.html.twig', [
|
||||||
'title' => "Quiz",
|
'title' => "Quiz",
|
||||||
'style' => "../public/styles/styleQuiz.css",
|
'style' => "../public/styles/styleQuiz.css",
|
||||||
'scripts' => array("../public/script/theme-toggle-double-param.js")
|
'scripts' => array("../public/script/theme-toggle-double-param.js")
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
// Rendu du bandeau
|
// Rendu du bandeau
|
||||||
echo $twig->render('bandeau.html.twig');
|
echo $twig->render('bandeau.html.twig');
|
||||||
|
|
||||||
echo $twig->render('quiz.html.twig', [
|
echo $twig->render('quiz.html.twig', [
|
||||||
'idQuiz'=>$id ,
|
'quizList' => $quizs
|
||||||
'question' => $question,
|
]);
|
||||||
'id'=>$idquestion,
|
|
||||||
'nb' => $num + 1,
|
|
||||||
'nbFinal' => $nbQuestion]);
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
<h2>Liste des Quiz</h2>
|
<h2>Liste des Quiz</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for quiz in quizzes %}
|
{% for quiz in quizList %}
|
||||||
<li>
|
<li>
|
||||||
<div class="quizCard">
|
<div class="quizCard">
|
||||||
{#
|
<a href="{{ racine }}/quote/{{ quizIds.id_quiz }}">
|
||||||
<a href="{{ path('quiz_show', {'id': quiz.id}) }}">
|
<img src="{{ quizIds.image }}" alt="Image du quiz {{ quiz.title }}">
|
||||||
<img src="{{ quiz.image }}" alt="Image du quiz {{ quiz.title }}">
|
<h3>{{ quizIds.title }}</h3>
|
||||||
<h3>{{ quiz.title }}</h3>
|
|
||||||
</a>
|
</a>
|
||||||
#}
|
</div>
|
||||||
<p>ID du quiz: {{ quiz.id }}</p> </div>
|
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>Aucun quiz disponible pour le moment.</li>
|
<li>Aucun quiz disponible pour le moment.</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in new issue