You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.1 KiB
57 lines
2.1 KiB
<table>
|
|
<tr>
|
|
<td>ID</td>
|
|
<td>Name</td>
|
|
<td>Image</td>
|
|
<td>Author</td>
|
|
</tr>
|
|
|
|
{% if vocabularies is defined %}
|
|
{% for row in vocabularies %}
|
|
<tr>
|
|
<td>{{ row.id }}</td>
|
|
<td>{{ row.name }}</td>
|
|
<td>{{ row.image }}</td>
|
|
<td>{{ row.author }}</td>
|
|
|
|
{% if actions is defined %}
|
|
<td>
|
|
{% if actions == 'affAllVocab' %}
|
|
<a href="{{base}}/teacher/{{ userId }}/affAllVocab">
|
|
|
|
</a>
|
|
{% elseif actions == 'getByName' %}
|
|
<a href="{{base}}/teacher/{{userId}}/getByName?listName={{selectedName}}">
|
|
</a>
|
|
{% elseif actions == 'delById' %}
|
|
<a id="delButton" href="{{base}}/teacher/{{userId}}/delById?vocabID={{ row.id }}">
|
|
<input class="btn-black" type="button" value="delete from vocabulary" />
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
<br>
|
|
|
|
{% if actions == 'addVocabList' %}
|
|
<form action="{{ base }}/teacher/{{ userId }}/addVocabList" method="GET">
|
|
<label for="listName">Name:</label>
|
|
<input type="text" id="listName" name="listName"><br><br>
|
|
|
|
<label for="frenchWord">French Word:</label>
|
|
<input type="text" id="frenchWord" name="frenchWord"><br><br>
|
|
|
|
<label for="englishWord">English Word:</label>
|
|
<input type="text" id="englishWord" name="englishWord"><br><br>
|
|
|
|
<input type="submit" value="Add Vocabulary">
|
|
</form>
|
|
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
</table> |