summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorprathamesh2017-11-14 17:27:05 +0530
committerprathamesh2017-11-14 17:27:05 +0530
commit8bbcd2163c20bc3bd7b501d108ede59614deced5 (patch)
tree5d762bbd6ecdc400b71af1f805fafe5628d29fe7 /yaksh/templates
parent1b456a3d0ee1edd1a05d7d0fa08c074f26454d04 (diff)
downloadonline_test-8bbcd2163c20bc3bd7b501d108ede59614deced5.tar.gz
online_test-8bbcd2163c20bc3bd7b501d108ede59614deced5.tar.bz2
online_test-8bbcd2163c20bc3bd7b501d108ede59614deced5.zip
Added sample csv for user to download and upload.
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_detail.html35
1 files changed, 22 insertions, 13 deletions
diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html
index 4b88ecb..93a7048 100644
--- a/yaksh/templates/yaksh/course_detail.html
+++ b/yaksh/templates/yaksh/course_detail.html
@@ -41,23 +41,31 @@
<a href="{{URL_ROOT}}/exam/manage/send_mail/{{ course.id }}/">
Send Mail</a>
</li>
- <li>
- <form id="upload_users" action="{{ URL_ROOT }}/exam/manage/upload_users/{{course.id}}/"
- method="POST" enctype="multipart/form-data">
- {% csrf_token %}
- <input type="file" name="csv_file" />
- <button class="btn btn-primary" type=submit> Upload Users <span class="glyphicon glyphicon-open"/></button>
- </form>
- <div class="alert alert-info" role="alert">
- - The uploaded csv should have headers exactly same as mentioned below:<br>
- <b>firstname, lastname, email</b><br></br>
- - <b>Users created will have username and password same as their email</b>
- </div>
- </li>
</ul>
</div>
</div>
<div class="col-md-9 col-md-offset-2 main">
+ <form id="upload_users" action="{{ URL_ROOT }}/exam/manage/upload_users/{{course.id}}/"
+ method="POST" enctype="multipart/form-data">
+ {% csrf_token %}
+ <input type="file" name="csv_file" />
+ <button class="btn btn-primary" type=submit> Upload Users <span class="glyphicon glyphicon-open"/></button>
+ </form>
+ <div class="alert alert-info" role="alert">
+ <p>
+ - The uploaded csv should have headers exactly same as mentioned below:<br />
+ <b>firstname, lastname, email, username, password, institute, roll_no, department,
+ remove</b><br />
+ - Mandatory fields are <b> firstname, lastname and email. </b><br />
+ - Other fields are optional. <br />
+ - If username and password are not provided then
+ <b>Users created will have username and password same as their email</b>
+ </p>
+ <p>
+ <b> Click <a class="btn btn-success" href="{{ URL_ROOT }}/exam/manage/download_sample_csv/
+">here</a> to download a sample CSV, edit and upload it</b>
+ </p>
+ </div>
<div class="row">
{% if message %}
<div class="alert alert-warning" role="alert">
@@ -73,6 +81,7 @@
{% endfor %}
</div>
{% endif %}
+ <hr>
{% if state == 'mail' %}
<div id="enrolled-students">
<center><b><u>Send Mails to Students</u></b></center><br>