summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/templates/yaksh/addteacher.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html
index bc156a6..2cb0625 100644
--- a/yaksh/templates/yaksh/addteacher.html
+++ b/yaksh/templates/yaksh/addteacher.html
@@ -35,7 +35,11 @@
<th>Position</th>
{% for teacher in teachers %}
<tr>
- <td><input type="checkbox" name="check" value="{{ teacher.id }}"></td>
+ <td>
+ {% if teacher != user %}
+ <input type="checkbox" name="check" value="{{ teacher.id }}">
+ {% endif %}
+ </td>
<td>{{ teacher.first_name }}</td>
<td>{{ teacher.last_name }}</td>
<td>{{ teacher.email }}</td>