From dd85cad77e8ea22f76c0eb349ecda6e6b70e8917 Mon Sep 17 00:00:00 2001 From: emile Date: Wed, 14 May 2025 15:44:24 +0300 Subject: [PATCH] new --- .../templates/projects-dashboard.html | 189 +++++++++++------- 1 file changed, 112 insertions(+), 77 deletions(-) diff --git a/osinaweb/osinacore/templates/projects-dashboard.html b/osinaweb/osinacore/templates/projects-dashboard.html index eb913f6d..cca540fe 100644 --- a/osinaweb/osinacore/templates/projects-dashboard.html +++ b/osinaweb/osinacore/templates/projects-dashboard.html @@ -5,32 +5,64 @@ -
-
+ + +
+

Projects Dashboard

-
-
-
-
-

From:

- -
-
-

To:

- + +
+
+
+ +
+ + +
-
-
-
-

Projects

- {% for project in projects %}
-
-

Staff

- {% for staff in staffs %}
- -
-
- - - - - - - - - - - - - - {% for point in points %} - - - - - - - - - - {% empty %} - - - - {% endfor %} - -
ProjectTaskPointStatusAssigned ToTime SpentLast Activity
{{ point.task.project.name }}{{ point.task.name }}{{ point.text }} - - {{ point.status }} - - {{ point.task.assigned_to.name }} - {% with point.total_activity_time as time %} - {{ time.0 }}h {{ time.1 }}m {{ time.2 }}s - {% endwith %} - - {% with point.pointactivity_set.last as last_activity %} - {% if last_activity %} - {{ last_activity.end_time|date:"Y-m-d H:i" }} - {% else %} - No activity - {% endif %} - {% endwith %} -
No points found with the current filters
+
+
+ + + + + + + + + + + + + + {% for point in points %} + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
ProjectTaskPointStatusAssigned ToTime SpentLast Activity
{{ point.task.project.name }}{{ point.task.name }}{{ point.text|truncatechars:30 }} + + {{ point.status }} + + {{ point.task.assigned_to.name }} + {% with point.total_activity_time as time %} + {{ time.0 }}h {{ time.1 }}m + {% endwith %} + + {% with point.pointactivity_set.last as last_activity %} + {% if last_activity %} + {{ last_activity.end_time|date:"m/d H:i" }} + {% else %} + - + {% endif %} + {% endwith %} +
No points found with the current filters
+
@@ -119,6 +152,7 @@ document.addEventListener('DOMContentLoaded', function() { new TomSelect('#projects', { create: false, sortField: 'text', + plugins: ['remove_button'], onChange: function() { document.getElementById('filter-form').submit(); } @@ -128,6 +162,7 @@ document.addEventListener('DOMContentLoaded', function() { new TomSelect('#staff', { create: false, sortField: 'text', + plugins: ['remove_button'], onChange: function() { document.getElementById('filter-form').submit(); }