diff options
-rw-r--r-- | yaksh/templates/yaksh/addteacher.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 39535bc..bc156a6 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -21,7 +21,7 @@ <form action="{{ URL_ROOT }}/exam/manage/addteacher/{{ course.id }}/" method="post"> {% csrf_token %} {% if success == True %} - {% if teachers|length == 1 or teachers|length == 0 %} + {% if teachers|length == 0 %} <center><h3>No results found</h3></center> {% else %} <center><b><u>Search Results</u></b></center><br> @@ -34,7 +34,6 @@ <th>Department</th> <th>Position</th> {% for teacher in teachers %} - {% if teacher != user %} <tr> <td><input type="checkbox" name="check" value="{{ teacher.id }}"></td> <td>{{ teacher.first_name }}</td> @@ -44,7 +43,6 @@ <td>{{ teacher.profile.department }}</td> <td>{{ teacher.profile.position }}</td> </tr> - {% endif %} {% endfor %} </table> <button class="btn" type="submit">Add</button> |