From 0dfe3a2e7321ee10bb956ffd16ed960c7a81b19f Mon Sep 17 00:00:00 2001 From: Akshen Date: Fri, 16 Feb 2018 13:46:23 +0530 Subject: Add Profile Statistics - Instructor can view stats of Coordinator and Instructors - Upcoming Workshop limit increased to 30 days --- .../templates/statistics_app/profile_stats.html | 123 +++++++++++++++++++++ .../statistics_app/workshop_public_stats.html | 2 +- .../templates/statistics_app/workshop_stats.html | 1 + statistics_app/urls.py | 1 + statistics_app/views.py | 57 ++++++++++ .../templates/workshop_app/create_workshop.html | 1 + .../templates/workshop_app/edit_profile.html | 1 + workshop_app/templates/workshop_app/manage.html | 1 + .../templates/workshop_app/my_workshops.html | 1 + .../templates/workshop_app/profile_updated.html | 1 + .../templates/workshop_app/view_profile.html | 1 + .../workshop_app/view_workshoptype_list.html | 1 + .../templates/workshop_app/workshop_stats.html | 1 + workshop_app/views.py | 2 +- 14 files changed, 192 insertions(+), 2 deletions(-) create mode 100644 statistics_app/templates/statistics_app/profile_stats.html diff --git a/statistics_app/templates/statistics_app/profile_stats.html b/statistics_app/templates/statistics_app/profile_stats.html new file mode 100644 index 0000000..a5f4685 --- /dev/null +++ b/statistics_app/templates/statistics_app/profile_stats.html @@ -0,0 +1,123 @@ +{% extends 'workshop_app/base.html' %} + +{% block title %} + Profile Statistics +{% endblock %} + +{% block header %} + +{% endblock %} + +{% block extra %} + + + + + + + + + +{% endblock %} + + +{% block content %} +
+
+
+
+ + + + +
+
+
+
+ + + + + + + + + + {% csrf_token %} + {% for profile_data in instructor_data %} + + + + + + + + {% endfor %} + + + + + + + + + + + + + {% csrf_token %} + {% for profile_data in coordinator_data %} + + + + + + + + + {% endfor %} + +
+
+ +{% endblock %} \ No newline at end of file diff --git a/statistics_app/templates/statistics_app/workshop_public_stats.html b/statistics_app/templates/statistics_app/workshop_public_stats.html index 78e08f8..237bcbc 100644 --- a/statistics_app/templates/statistics_app/workshop_public_stats.html +++ b/statistics_app/templates/statistics_app/workshop_public_stats.html @@ -303,7 +303,7 @@ $( "#visualization" ).dialog({ resizable: false, draggable: true, - title: 'State wise Completed Workshops(Map of India)', + title: 'State wise Completed Workshops(Map of India)', closeOnEscape: true, stack: true, zIndex: 10000, diff --git a/statistics_app/templates/statistics_app/workshop_stats.html b/statistics_app/templates/statistics_app/workshop_stats.html index 03a3fb1..7775eba 100644 --- a/statistics_app/templates/statistics_app/workshop_stats.html +++ b/statistics_app/templates/statistics_app/workshop_stats.html @@ -14,6 +14,7 @@
  • Workshop List
  • My Workshops
  • Workshop Stats
  • +
  • Profile Stats
  • {% else %}