commit
8967d45f7c
@ -1,6 +1,6 @@
|
||||
<form action="{{ base }}/admin/{{ userID }}/addGroup" method="POST">
|
||||
<input name="num" type="text" placeholder="number" required>
|
||||
<input name="year" type="text" placeholder="year" required>
|
||||
<input name="sector" type="text" placeholder="sector" required>
|
||||
<input type="submit" value="Add">
|
||||
<input class="input-group-text d-inline" name="num" type="text" placeholder="number" required>
|
||||
<input class="input-group-text d-inline" name="year" type="text" placeholder="year" required>
|
||||
<input class="input-group-text d-inline" name="sector" type="text" placeholder="sector" required>
|
||||
<input class="btn btn-success" type="submit" value="Add">
|
||||
</form>
|
@ -1,58 +1,41 @@
|
||||
<table>
|
||||
{% if groups is defined %}
|
||||
{% for row in groups %}
|
||||
{% if selectedGroup is defined and selectedGroup == row.id %}
|
||||
<tr style="background-color:red;">
|
||||
{% else %}
|
||||
<div class="container mt-5">
|
||||
<table class="table table-bordered thead-dark">
|
||||
<thead>
|
||||
<tr>
|
||||
{% endif %}
|
||||
<td>ID</td>
|
||||
<td>Num</td>
|
||||
<td>Year</td>
|
||||
<td>Sector</td>
|
||||
<th>ID</th>
|
||||
<th>Num</th>
|
||||
<th>Year</th>
|
||||
<th>Sector</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if groups is defined %}
|
||||
{% for row in groups %}
|
||||
<tr {% if selectedGroup is defined and selectedGroup == row.id %}class="table-danger"{% endif %}>
|
||||
<td>{{ row.id }}</td>
|
||||
<td>{{ row.num }}</td>
|
||||
<td>{{ row.year }}</td>
|
||||
<td>{{ row.sector }}</td>
|
||||
|
||||
<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>
|
||||
<a href="{{ base }}/admin/{{ userID }}/showGroupDetails?selectedGroup={{ row.id }}" class="btn btn-primary fs-6">Show</a>
|
||||
{% 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>
|
||||
<a href="{{ base }}/admin/{{ userID }}/removeGroup?selectedGroup={{ row.id }}" class="btn btn-danger fs-6">Remove</a>
|
||||
{% 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>
|
||||
<a href="{{ base }}/teacher/{{ userID }}/removeVocabFromGroup?vocabID={{ vocabID }}&selectedGroup={{ row.id }}" class="btn btn-warning fs-6">Remove from group</a>
|
||||
{% 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>
|
||||
<a href="{{ base }}/teacher/{{ userID }}/addVocabToGroup?vocabID={{ vocabID }}&selectedGroup={{ row.id }}" class="btn btn-success">Add to group</a>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
Loading…
Reference in new issue