diff options
author | adityacp | 2016-04-12 12:11:37 +0530 |
---|---|---|
committer | adityacp | 2016-04-26 19:06:31 +0530 |
commit | fcf57e94ad9e91588c4994ec2594d66275b25e17 (patch) | |
tree | 48e2791ad19ef4f1f82c00e2b431d9b82cee2181 /yaksh | |
parent | 42a2b07a88ece67fe4705ac5a114540fd8366aea (diff) | |
download | online_test-fcf57e94ad9e91588c4994ec2594d66275b25e17.tar.gz online_test-fcf57e94ad9e91588c4994ec2594d66275b25e17.tar.bz2 online_test-fcf57e94ad9e91588c4994ec2594d66275b25e17.zip |
small template change
Diffstat (limited to 'yaksh')
-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> |