summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2016-04-21 18:57:28 +0530
committeradityacp2016-04-26 19:22:05 +0530
commitfa11260fdbe76f377909483d9c482ecf72ab3364 (patch)
tree730db1ddc2867ecd543d70ab65bcee1971066c54 /yaksh/templates
parentc2e8c3ff4e07de717f74c0a6d9199c317452bf43 (diff)
downloadonline_test-fa11260fdbe76f377909483d9c482ecf72ab3364.tar.gz
online_test-fa11260fdbe76f377909483d9c482ecf72ab3364.tar.bz2
online_test-fa11260fdbe76f377909483d9c482ecf72ab3364.zip
changes in add teachers as per comments
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/addteacher.html40
1 files changed, 32 insertions, 8 deletions
diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html
index 2cb0625..b438262 100644
--- a/yaksh/templates/yaksh/addteacher.html
+++ b/yaksh/templates/yaksh/addteacher.html
@@ -35,11 +35,7 @@
<th>Position</th>
{% for teacher in teachers %}
<tr>
- <td>
- {% if teacher != user %}
- <input type="checkbox" name="check" value="{{ teacher.id }}">
- {% endif %}
- </td>
+ <td><input type="checkbox" name="check" value="{{ teacher.id }}"></td>
<td>{{ teacher.first_name }}</td>
<td>{{ teacher.last_name }}</td>
<td>{{ teacher.email }}</td>
@@ -53,7 +49,35 @@
{% endif %}
{% endif %}
</form>
-{% if status == True %}
-<center><h3>Added Teacher(s) to this course</h3></center>
+{% if status == True and teachers_added or teachers_rejected %}
+<center>
+<h4>Note: Teacher(s) without profile are rejected</h4>
+<div class="row">
+ <div class="span6 wrap">
+ <center><b><u>Teacher(s) Added</u></b></center><br>
+ {% for teacher in teachers_added %}
+ <div class="well">
+ <div class="row">
+ <div class="span3" style="padding-top:10px">
+ <h5>{{ teacher.get_full_name }}</h5>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+ <div class="span6 wrap">
+ <center><b><u>Teacher(s) Rejected</u></b></center><br>
+ {% for teacher in teachers_rejected %}
+ <div class="well">
+ <div class="row">
+ <div class="span4" style="padding-top:10px">
+ <h5>{{ teacher.get_full_name }}</h5>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+</div>
+</center>
{% endif %}
-{% endblock %} \ No newline at end of file
+{% endblock %}