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.
58 lines
2.2 KiB
58 lines
2.2 KiB
<table>
|
|
{% if groups is defined %}
|
|
{% for row in groups %}
|
|
{% if selectedGroup is defined and selectedGroup == row.id %}
|
|
<tr style="background-color:red;">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
<td>ID</td>
|
|
<td>Num</td>
|
|
<td>Year</td>
|
|
<td>Sector</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ row.id }}</td>
|
|
<td>{{ row.num }}</td>
|
|
<td>{{ row.year }}</td>
|
|
<td>{{ row.sector }}</td>
|
|
|
|
{% if actions is defined %}
|
|
|
|
{% if 'showGroupDetails' in actions %}
|
|
<td>
|
|
<a href="{{base}}/admin/{{userID}}/showGroupDetails?selectedGroup={{ row.id }}">
|
|
<input class="btn-black" type="button" value="Show"/>
|
|
</a>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% if 'removeGroup' in actions %}
|
|
<td>
|
|
<a href="{{base}}/admin/{{userID}}/removeGroup?selectedGroup={{ row.id }}">
|
|
<input class="btn-black" type="button" value="Remove"/>
|
|
</a>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% if 'removeVocabFromGroup' in actions %}
|
|
<td>
|
|
<a href="{{base}}/teacher/{{userID}}/removeVocabFromGroup?vocabID={{ vocabID }}&selectedGroup={{ row.id }}">
|
|
<input class="btn-black" type="button" value="Remove from group"/>
|
|
</a>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% if 'addVocabToGroup' in actions %}
|
|
<td>
|
|
<a href="{{base}}/teacher/{{userID}}/addVocabToGroup?vocabID={{ vocabID }}&selectedGroup={{ row.id }}">
|
|
<input class="btn-black" type="button" value="Add to group"/>
|
|
</a>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</table> |