From 0fd8703ca8e0b4caf02df30d6e63320fe6f98338 Mon Sep 17 00:00:00 2001 From: pnshiralkar Date: Tue, 5 May 2020 12:11:12 +0530 Subject: My workshops view for coordinator done --- .../templates/workshop_app/my_workshops.html | 190 ++--------------- .../templates/workshop_app/workshop_status.html | 234 +++++++++++++++++++++ 2 files changed, 253 insertions(+), 171 deletions(-) create mode 100644 workshop_app/templates/workshop_app/workshop_status.html (limited to 'workshop_app/templates') diff --git a/workshop_app/templates/workshop_app/my_workshops.html b/workshop_app/templates/workshop_app/my_workshops.html index b6e3731..b5b4add 100644 --- a/workshop_app/templates/workshop_app/my_workshops.html +++ b/workshop_app/templates/workshop_app/my_workshops.html @@ -1,203 +1,65 @@ {% extends "workshop_app/base.html" %} {% block title %} - Workshop Status + My Workshops {% endblock %} -{% block extra-dependencies %} - - - -{% endblock %} -{% block extra-custom-scripts %} - -{% endblock %} - - {% block content %} {% if workshops %} -
Coordinator Name | -Institute | - {% else %} -Instructor Name | - {% endif %} +Instructor Name | 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.instructor.get_full_name }} | {{ workshop.workshop_type |capfirst }} | - {% if workshop.date > today %} -{{ workshop.date | date }} - | - {% else %} - - -{{ workshop.date | date }} | - {% endif %} +{{ workshop.date | date }} | {{ workshop.get_status }} | {% endif %}
Coordinator Name | -Institute | - {% else %} - - {% endif %}Workshop Name | Workshop Day | Status | - {% if request.user.profile.position == 'instructor' %} -Action | - {% endif %}
---|---|---|---|---|---|
- - {{ workshop.coordinator.get_full_name }} | -{{ workshop.coordinator.profile.institute }} | - {% endif %} + {% if not workshop.status and workshop.tnc_accepted %}{{ 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 .
-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 .
Coordinator Name | +Institute | + {% else %} +Instructor Name | + {% endif %} +Workshop Name | +Workshop Day | +Status | +|
---|---|---|---|---|---|---|
+ + {{ workshop.coordinator.get_full_name }} | +{{ workshop.coordinator.profile.institute }} | + {% else %} +{{ workshop.instructor.get_full_name }} | + {% endif %} +{{ workshop.workshop_type |capfirst }} | + {% if workshop.date > today %} +{{ workshop.date | date }} + | + {% else %} + + +{{ workshop.date | date }} | + {% endif %} +{{ workshop.get_status }} | + {% endif %} +
Coordinator Name | +Institute | + {% else %} + + {% endif %} +Workshop Name | +Workshop Day | +Status | + {% if request.user.profile.position == 'instructor' %} +Action | + {% endif %} +
---|---|---|---|---|---|
+ + {{ workshop.coordinator.get_full_name }} | +{{ workshop.coordinator.profile.institute }} | + {% endif %} +{{ 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 .
+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.