From 1c4a9a7e1c0c08de08e6e95ea4fd403eab78a913 Mon Sep 17 00:00:00 2001 From: pnshiralkar Date: Tue, 5 May 2020 12:38:00 +0530 Subject: Workshop status view for instructor done --- .../templates/workshop_app/workshop_status.html | 150 ++++++++------------- 1 file changed, 56 insertions(+), 94 deletions(-) (limited to 'workshop_app/templates') diff --git a/workshop_app/templates/workshop_app/workshop_status.html b/workshop_app/templates/workshop_app/workshop_status.html index b6e3731..28d95b7 100644 --- a/workshop_app/templates/workshop_app/workshop_status.html +++ b/workshop_app/templates/workshop_app/workshop_status.html @@ -29,16 +29,16 @@ // Change date modal function changeDate(date) { - var previous_date = new Date(date); - var dateToday = new Date(); - var upto = new Date(); + let previous_date = new Date(date); + let dateToday = new Date(); + let upto = new Date(); previous_date.setDate(previous_date.getDate() + 1); upto.setFullYear(dateToday.getFullYear() + 1); - if (date[0] == 'P') { - var counter = date.split(" "); - var id = counter.slice(-1).pop(); + let counter = date.split(" "); + const id = counter.slice(-1).pop(); + if (date[0] === 'P') { counter = '.pDate' + id $(counter).datepicker({ changeMonth: true, @@ -51,8 +51,6 @@ $('.myDialogP' + id).dialog(); } else { - var counter = date.split(" "); - var id = counter.slice(-1).pop(); counter = '.rDate' + id; $(counter).datepicker({ changeMonth: true, @@ -73,7 +71,7 @@ {% block content %} {% if workshops %} -
Coordinator Name | -Institute | - {% else %} -Instructor Name | - {% endif %} +Coordinator Name | +Institute | Workshop Name | Workshop Day | Status | |
---|---|---|---|---|---|---|---|---|
- - {{ workshop.coordinator.get_full_name }} | -{{ workshop.coordinator.profile.institute }} | - {% else %} -{{ workshop.instructor.get_full_name }} | - {% endif %} + {% if workshop.status %} ++ + {{ workshop.coordinator.get_full_name }} + | +{{ workshop.coordinator.profile.institute }} | {{ workshop.workshop_type |capfirst }} | - {% if workshop.date > today %} -{{ workshop.date | date }} - | - {% else %} -{{ workshop.date | date }} | - {% endif %} + {% endif %} +{{ workshop.get_status }} | {% endif %}
Coordinator Name | -Institute | - {% else %} - - {% endif %} +Coordinator Name | +Institute | Workshop Name | Workshop Day | Status | - {% if request.user.profile.position == 'instructor' %} -Action | - {% endif %} +Action |
---|---|---|---|---|---|---|---|---|
- - {{ workshop.coordinator.get_full_name }} | -{{ workshop.coordinator.profile.institute }} | - {% endif %} + {% if not workshop.status and workshop.tnc_accepted %} ++ + {{ workshop.coordinator.get_full_name }} + | +{{ workshop.coordinator.profile.institute }} | {{ workshop.workshop_type }} | {{ workshop.date | date }} | -{{ workshop.get_status }} | - {% if request.user.profile.position == 'instructor' and workshop.status == 0 %} -- - | - {% endif %} ++ + | {% endif %}
Your workshop related information will be shown here, Please navigate to Workshop list and - depending upon - your expertise and availability create a workshop by going to - Create Workshop.
-Information Related to your workshops will be shown here, you can also - propose a Workshop as per your available date in Workshops > Propose a Workshop - tab .
-Your workshop related information will be shown here, Please navigate to Workshop list and + depending upon + your expertise and availability create a workshop by going to + Create Workshop.