From 8e3f59ac647ea3f46624e60fad925303dca9e844 Mon Sep 17 00:00:00 2001
From: Akshen
Date: Fri, 4 Aug 2017 20:13:00 +0530
Subject: Sorted List of Scheduled Workshop
- Instructor views sorted list of scheduled workshops
- Activation template contain change
- text formatting in my_workshops template
---
.../templates/workshop_app/activation.html | 2 +-
.../templates/workshop_app/my_workshops.html | 36 +++++++++++-----------
.../workshop_app/scheduled_workshops.html | 11 ++++---
3 files changed, 25 insertions(+), 24 deletions(-)
(limited to 'workshop_app/templates')
diff --git a/workshop_app/templates/workshop_app/activation.html b/workshop_app/templates/workshop_app/activation.html
index 29dd6ac..f9fc805 100644
--- a/workshop_app/templates/workshop_app/activation.html
+++ b/workshop_app/templates/workshop_app/activation.html
@@ -63,7 +63,7 @@
Activation Awaiting
-
Please check your email to activate your account. The key expires in 24hours from the date of registeration. You will be logged out automatically.
+
The Activation Link has been sent to your email. The link expires in 24hours from the date of registration. You will be logged out automatically.
{% endif %}
diff --git a/workshop_app/templates/workshop_app/my_workshops.html b/workshop_app/templates/workshop_app/my_workshops.html
index 16eefec..c36485e 100644
--- a/workshop_app/templates/workshop_app/my_workshops.html
+++ b/workshop_app/templates/workshop_app/my_workshops.html
@@ -101,12 +101,12 @@
{% if workshop.status == 'Pending' and workshop.requested_workshop_instructor %}
{% if request.user.profile.position == 'instructor' %}
- {{ workshop.requested_workshop_coordinator }} |
+ {{ workshop.requested_workshop_coordinator.get_full_name }} |
{% else %}
- {{ workshop.requested_workshop_instructor }} |
+ {{ workshop.requested_workshop_instructor.get_full_name }} |
{% endif %}
{{ workshop.requested_workshop_title }} |
- {{ workshop.requested_workshop_date }} |
+ {{ workshop.requested_workshop_date | date }} |
{{ workshop.status }} |
{% endif %}
{% if request.user.profile.position == 'instructor' and workshop.status == 'Pending' and workshop.requested_workshop_instructor %}
@@ -142,22 +142,22 @@
{% if workshop.status == 'ACCEPTED' and workshop.requested_workshop_title %}
{% if request.user.profile.position == 'instructor' %}
- {{ workshop.requested_workshop_coordinator }} |
+ {{ workshop.requested_workshop_coordinator.get_full_name }} |
{% else %}
- {{ workshop.requested_workshop_instructor }} |
+ {{ workshop.requested_workshop_instructor.get_full_name }} |
{% endif %}
- {{ workshop.requested_workshop_title }} |
- {{ workshop.requested_workshop_date }} |
+ {{ workshop.requested_workshop_title |capfirst }} |
+ {{ workshop.requested_workshop_date | date }} |
{{ workshop.status }} |
{% endif %}
{% if workshop.status == 'ACCEPTED' and workshop.condition_one %}
{% if request.user.profile.position == 'instructor' %}
- {{ workshop.proposed_workshop_coordinator }} |
+ {{ workshop.proposed_workshop_coordinator.get_full_name }} |
{% else %}
- {{ workshop.proposed_workshop_instructor }} |
+ {{ workshop.proposed_workshop_instructor.get_full_name }} |
{% endif %}
- {{ workshop.proposed_workshop_title }} |
- {{ workshop.proposed_workshop_date }} |
+ {{ workshop.proposed_workshop_title }} |
+ {{ workshop.proposed_workshop_date | date }} |
{{ workshop.status }} |
{% endif %}
@@ -191,10 +191,10 @@
{% if workshop.status == 'Pending' and workshop.condition_one %}
{% if request.user.profile.position == 'instructor' %}
- {{ workshop.proposed_workshop_coordinator }} |
+ {{ workshop.proposed_workshop_coordinator.get_full_name }} |
{% endif %}
- {{ workshop.proposed_workshop_title }} |
- {{ workshop.proposed_workshop_date }} |
+ {{ workshop.proposed_workshop_title }} |
+ {{ workshop.proposed_workshop_date | date }} |
{{ workshop.status }} |
{% if request.user.profile.position == 'instructor' and workshop.status == 'Pending' %}
@@ -231,12 +231,12 @@
{% if workshop.status == 'DELETED' or workshop.status == 'REJECTED' %}
{% if request.user.profile.position == 'instructor' %}
- {{ workshop.requested_workshop_coordinator }} |
+ {{ workshop.requested_workshop_coordinator.get_full_name }} |
{% else %}
- {{ workshop.requested_workshop_instructor }} |
+ {{ workshop.requested_workshop_instructor.get_full_name }} |
{% endif %}
- {{ workshop.requested_workshop_title }} |
- {{ workshop.requested_workshop_date }} |
+ {{ workshop.requested_workshop_title | capfirst }} |
+ {{ workshop.requested_workshop_date | date }} |
{{ workshop.status }} |
{% endif %}
diff --git a/workshop_app/templates/workshop_app/scheduled_workshops.html b/workshop_app/templates/workshop_app/scheduled_workshops.html
index 7fcd2f7..8ebb2e6 100644
--- a/workshop_app/templates/workshop_app/scheduled_workshops.html
+++ b/workshop_app/templates/workshop_app/scheduled_workshops.html
@@ -31,6 +31,7 @@
Coordinator Name |
+ Institute Name |
Instructor Name |
Workshop Name |
Workshop Date |
@@ -41,10 +42,10 @@
{% if workshop.status == 'ACCEPTED' %}
-
- {{ workshop.proposed_workshop_coordinator }} |
- {{ workshop.proposed_workshop_instructor }} |
- {{ workshop.proposed_workshop_title }} |
+ {{ workshop.proposed_workshop_coordinator.get_full_name | capfirst }} |
+ {{ workshop.proposed_workshop_coordinator.profile.institute | capfirst }} |
+ {{ workshop.proposed_workshop_instructor.get_full_name }} |
+ {{ workshop.proposed_workshop_title.workshoptype_name }} |
{{ workshop.proposed_workshop_date | date}} |
@@ -57,7 +58,7 @@
{% endif %}
- }
+
{% endblock %}
\ No newline at end of file
--
cgit