blob: 1a32e5100c6c5ca8b12545647122152ed26f6c1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<center><h3>Teacher(s)/TA(s)</h3></center>
<br>
{% if teachers %}
<form action="{% url 'yaksh:remove_teacher' course.id %}" method="post">
{% csrf_token %}
<div class="container">
<div class="card">
{% if teachers|length > 10 %}
<div class="table-responsive" style="height: 700px">
{% else %}
<div class="table-responsive">
{% endif %}
<table class="table table-responsive-sm table-dark course-detail">
<thead class="thead-dark">
<tr>
<th>Select</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody class="list">
{% for teacher in teachers %}
<tr>
<td><input type="checkbox" name="remove" value="{{ teacher.id }}"></td>
<td>{{ teacher.get_full_name }}</td>
<td>{{ teacher.email }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<br>
<button class="btn btn-danger" type="submit" data-toggle="tooltip" title="Remove Selected Teachers from this course">
<i class="fa fa-minus-square"></i>
Remove Teachers
</button>
</form>
{% else %}
<center><b class="badge badge-warning">No Teacher(s) added</b></center>
{% endif %}
|