|
|
@ -17,23 +17,24 @@
|
|
|
|
<link href="{{base}}/css/styles.css" rel="stylesheet" />
|
|
|
|
<link href="{{base}}/css/styles.css" rel="stylesheet" />
|
|
|
|
<link rel="icon" type="image/x-icon" href="{{base}}/assets/favicon.ico"/>
|
|
|
|
<link rel="icon" type="image/x-icon" href="{{base}}/assets/favicon.ico"/>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
{% include 'navBar.twig' %}
|
|
|
|
{% include 'navBar.twig' %}
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<section class="VocabularyList">
|
|
|
|
<div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
|
|
|
|
<h2>My lists</h2>
|
|
|
|
<h2>My lists</h2>
|
|
|
|
{% include 'vocabularyContainer.twig' with {'actions' : ['affAllVocab', 'delById', 'getContent' ], 'vocabularies' : vocabularies, 'vocabID' : vocabID, 'content' : content } %}
|
|
|
|
{% include 'vocabularyContainer.twig' with {'actions' : ['affAllVocab', 'delById', 'getContent' ], 'vocabularies' : vocabularies, 'vocabID' : vocabID, 'content' : content } %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<section>
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
|
|
|
|
<a href="{{base}}/teacher/{{userID}}/showVocabListForm" class="btn btn-primary">Add a new list</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
|
|
|
|
<h2>Content</h2>
|
|
|
|
<h2>Content</h2>
|
|
|
|
{% if content is defined %}
|
|
|
|
{% if content is defined %}
|
|
|
|
<table>
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<tr>
|
|
|
|
<thead>
|
|
|
|
<td>French word</td>
|
|
|
|
<th>French word</th>
|
|
|
|
<td>English word</td>
|
|
|
|
<th>English word</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for trad in content %}
|
|
|
|
{% for trad in content %}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>{{trad.word1}}</td>
|
|
|
|
<td>{{trad.word1}}</td>
|
|
|
@ -42,24 +43,20 @@
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<section>
|
|
|
|
<div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
|
|
|
|
<h2>Groups with vocab</h2>
|
|
|
|
<h2>Groups with vocab</h2>
|
|
|
|
{% if vocabID is defined %}
|
|
|
|
{% if vocabID is defined %}
|
|
|
|
{% include 'groupContainer.twig' with {'actions' : 'removeVocabFromGroup', groups : groupsVocab } %}
|
|
|
|
{% include 'groupContainer.twig' with {'actions' : 'removeVocabFromGroup', groups : groupsVocab } %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
|
|
|
|
<h2>Groups without vocab</h2>
|
|
|
|
<h2>Groups without vocab</h2>
|
|
|
|
{% if groupsNoVocab is defined and vocabID is defined %}
|
|
|
|
{% if groupsNoVocab is defined and vocabID is defined %}
|
|
|
|
{% include 'groupContainer.twig' with {'actions' : 'addVocabToGroup', groups : groupsNoVocab } %}
|
|
|
|
{% include 'groupContainer.twig' with {'actions' : 'addVocabToGroup', groups : groupsNoVocab } %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<a href="{{base}}/teacher/{{userID}}/showVocabListForm">
|
|
|
|
|
|
|
|
<input class="btn-black" type="button" value="add a list" />
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|