Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 4.3 MiB After Width: | Height: | Size: 4.3 MiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
Before Width: | Height: | Size: 294 KiB After Width: | Height: | Size: 294 KiB |
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 181 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 882 KiB After Width: | Height: | Size: 882 KiB |
Before Width: | Height: | Size: 6.6 MiB After Width: | Height: | Size: 6.6 MiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
@ -0,0 +1,33 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="secondNav">
|
||||
<div class="container px-4 px-lg-5">
|
||||
<a class="navbar-brand" href="index.html">Logo</a>
|
||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
|
||||
aria-label="Toggle navigation">
|
||||
Menu
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
{% if userRole == 'admin' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/admin/{{ userID }}/showAllGroups}}">Groups</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/admin/{{ userID }}/showAllUsers}}">Users</a></li>
|
||||
{% elseif userRole == 'student' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/user/memory}}">Learn a lesson</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/user/game}}">Play</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/student/{{ userID }}/createFC}}">Create flashcards</a></li>
|
||||
{% elseif userRole == 'teacher' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/memory}}">Learn a lesson</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/game}}">Play</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/createFC}}">Create flashcards</a></li>
|
||||
{% else %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('login') }}">Login</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,29 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="secondNav">
|
||||
<div class="container px-4 px-lg-5">
|
||||
<a class="navbar-brand" href="index.html">Logo</a>
|
||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
|
||||
aria-label="Toggle navigation">
|
||||
Menu
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
{% if userRole == 'admin' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/admin/{{ userID }}/showAllGroups}}">Groups</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/admin/{{ userID }}/showAllUsers}}">Users</a></li>
|
||||
{% elseif userRole == 'student' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/user/memory}}">Learn a lesson</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/user/game}}">Play</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/student/{{ userID }}/createFC}}">Create flashcards</a></li>
|
||||
{% elseif userRole == 'teacher' %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/memory}}">Learn a lesson</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/game}}">Play</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ { base }/teacher/createFC}}">Create flashcards</a></li>
|
||||
{% else %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('login') }}">Login</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
@ -1,61 +0,0 @@
|
||||
<table>
|
||||
|
||||
|
||||
{% if translations is defined %}
|
||||
{% for row in translations %}
|
||||
<tr>
|
||||
<td>{{ row.id }}</td>
|
||||
<td>{{ row.word1 }}</td>
|
||||
<td>{{ row.word2 }}</td>
|
||||
<td>{{ row.listVocab }}</td>
|
||||
</tr>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Manage groups</title>
|
||||
<!-- Vos liens de styles et de scripts -->
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<h1>Quiz</h1>
|
||||
<form action="quiz" method="post">
|
||||
{% if translations is defined %}
|
||||
{% for translation in translations %}
|
||||
<h2>{{ translation.word1 }}</h2>
|
||||
{% set answers = [translation.word2] %}
|
||||
{% for i in 0..3 %}
|
||||
<input type="radio" name="answer{{ i }}" value="{{ valid[i] }}"> {{ answers[i] }}<br>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
|
||||
<h1>Translator</h1>
|
||||
<form action="quiz" method="POST">
|
||||
{% if translations is defined %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td>Word 1</td>
|
||||
<td>Word 2</td>
|
||||
<td>List Vocabulary</td>
|
||||
</tr>
|
||||
{% for translation in translations %}
|
||||
<tr>
|
||||
<td>{{ translation.id }}</td>
|
||||
<td>{{ translation.word1 }}</td>
|
||||
<td>{{ translation.word2 }}</td>
|
||||
<td>{{ translation.listVocab }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
</form>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
</table>
|