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/templates/yaksh/course_detail.html | 55 +++++++++++++++++--------------- yaksh/templates/yaksh/editprofile.html | 4 +-- yaksh/templates/yaksh/view_profile.html | 22 +++++++------ 3 files changed, 44 insertions(+), 37 deletions(-) (limited to 'yaksh/templates') 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 %}
Requests

-
- {% csrf_token %} - Enroll all + {% if course.get_requests %} +  Select all
+ + {% csrf_token %} {% for request in course.get_requests %}
{% endfor %} +
+ {% endif %} +
Rejected

+ {% if course.get_rejected %} +  Select all +
{% for rejected in course.get_rejected %} +
+ {% csrf_token %}
- {{ rejected.username }} +  {{ rejected.username }}
Enroll
{% endfor %} + +
+ {% endif %} +

- -
Enrolled

+ {% if course.get_enrolled %} +  Select all +
{% for enrolled in course.get_enrolled %} +
+ {% csrf_token %}
- {{ enrolled.username }} +  {{ enrolled.username }}
Reject
{% endfor %} + +
+ {% endif %} +
diff --git a/yaksh/templates/yaksh/editprofile.html b/yaksh/templates/yaksh/editprofile.html index b4cf037..f04f8fb 100644 --- a/yaksh/templates/yaksh/editprofile.html +++ b/yaksh/templates/yaksh/editprofile.html @@ -14,8 +14,8 @@ {{ form.as_table }} -
-
+
+
{% endblock content %} diff --git a/yaksh/templates/yaksh/view_profile.html b/yaksh/templates/yaksh/view_profile.html index 27bc5da..a419d92 100644 --- a/yaksh/templates/yaksh/view_profile.html +++ b/yaksh/templates/yaksh/view_profile.html @@ -5,44 +5,46 @@ {% block pagetitle %} Online Test {% endblock %} {% block css %} + {% endblock %} {% block content %} - +
- + - + - + - + - + - + - +

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 }}

+
{% endblock %} -- cgit