From c140d65ab1a3c4faa97789e08223d563cf283d25 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 31 Mar 2016 19:42:44 +0530 Subject: changes in edit profile, enrollment, change password --- yaksh/static/yaksh/js/course.js | 38 ++++++++++++++++++++++ yaksh/templates/yaksh/course_detail.html | 55 +++++++++++++++++--------------- yaksh/templates/yaksh/editprofile.html | 4 +-- yaksh/templates/yaksh/view_profile.html | 22 +++++++------ yaksh/urls.py | 9 +++--- yaksh/views.py | 19 ++++++++--- 6 files changed, 101 insertions(+), 46 deletions(-) create mode 100644 yaksh/static/yaksh/js/course.js diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js new file mode 100644 index 0000000..3a21f0d --- /dev/null +++ b/yaksh/static/yaksh/js/course.js @@ -0,0 +1,38 @@ +$(document).ready(function(){ +$(".checkall").click( function(){ + if($(this).attr("checked")) { + $("#enroll-all input:checkbox").each(function(index, element) { + $(this).attr('checked', true); + }); + } + else { + $("#enroll-all input:checkbox").each(function(index, element) { + $(this).attr('checked', false); + }); + } + }); +$(".enroll").click( function(){ + if($(this).attr("checked")) { + $("#enroll input:checkbox").each(function(index, element) { + $(this).attr('checked', true); + }); + } + else { + $("#enroll input:checkbox").each(function(index, element) { + $(this).attr('checked', false); + }); + } + }); +$(".reject").click( function(){ + if($(this).attr("checked")) { + $("#reject input:checkbox").each(function(index, element) { + $(this).attr('checked', true); + }); + } + else { + $("#reject input:checkbox").each(function(index, element) { + $(this).attr('checked', false); + }); + } + }); +}); diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index 2e17035..dbb7b73 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -9,73 +9,78 @@ {% endblock %} {% block script %} - + {% endblock %} {% block manage %}
Your Profile Information |
||
Firstname: |
+ Firstname: |
{{ user.first_name }} |
Lastname: |
+ Lastname: |
{{ user.last_name }} |
Email: |
+ Email: |
{{ user.email }} |
Institute: |
+ Institute: |
{{ user.profile.institute }} |
Department: |
+ Department: |
{{ user.profile.department }} |
Roll Number: |
+ Roll Number: |
{{ user.profile.roll_number }} |
Position: |
+ Position: |
{{ user.profile.position }} |