diff --git a/static/css/dashboard.css b/static/css/dashboard.css index 59b0af7..5e345d8 100644 --- a/static/css/dashboard.css +++ b/static/css/dashboard.css @@ -126,6 +126,10 @@ gap: 2rem; } +.dashboard-content-section { + margin-bottom: var(--spacing-8); +} + /* Responsive Design for Header */ @media (max-width: 1024px) { .dashboard-header { diff --git a/templates/dashboard.html b/templates/dashboard.html index 47035ab..73cb97d 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1109,42 +1109,42 @@ Management{% endblock %} {% block extra_head %} {% endif %} -
-
-
-
- - -
- -
- - -
- -
- -
+
+ +
+
+ +
- -
+ +
+ + +
+ +
+ +
+
+
@@ -1153,12 +1153,11 @@ Management{% endblock %} {% block extra_head %}
- Showing filtered results - {% if search_name %} - {{ search_status|title }} only{% endif %} - {% if search_status %} - {{ search_status|title }} only{% endif %} - ({{ qr_codes|length }} QR code{{ 's' if qr_codes|length != 1 else '' }} found) + Showing {{ qr_codes|length }} results + {% if search_name %}matching "{{ search_name }}"{% endif %} + {% if search_status %}with status: {{ search_status }}{% endif %} - + Clear Filters @@ -1308,189 +1307,190 @@ Management{% endblock %} {% block extra_head %}
{% endif %} {% else %} - - {% if projects %} -
- {% for project in projects %} {% set project_qr_codes = - qr_codes|selectattr('project_id', 'equalto', project.id)|list %} + +
+ {% if projects %} +
+ {% for project in projects %} {% set project_qr_codes = + qr_codes|selectattr('project_id', 'equalto', project.id)|list %} -
- -
-
-
- -
-
-

{{ project.name }}

- {% if project.description %} -

{{ project.description }}

- {% endif %} -
-
- -
-
-
- - {{ project_qr_codes|length }} QR Code{{ 's' if - project_qr_codes|length != 1 else '' }} -
- + +
+
+
- {{ 'Active' if project.active_status else 'Inactive' }} - -
- - -
-
- - -
- {% if project_qr_codes %} -
- {% for qr in project_qr_codes[:12] %} -
-
-
- QR Code for {{ qr.name }} -
- -
-

{{ qr.name }}

-
- - {{ qr.location }} -
- - {% if qr.location_address %} -
- - {{ qr.location_address }} -
- {% endif %} - -
- - {{ get_qr_code_checkin_count(qr.id) }} check-ins -
- - - - {{ 'Active' if qr.active_status else 'Inactive' }} - -
+
- -
- - - - - - - - - - - {% if session.role == 'admin' %} - +
+

{{ project.name }}

+ {% if project.description %} +

{{ project.description }}

{% endif %}
- {% endfor %} - - {% if project_qr_codes|length > 12 %} - - - View All Project's QR Codes - - {% endif %} -
- {% else %} -
-
- -
-

No QR Codes in this Project

-

Create your first QR code for this project

- - - Create QR Code - -
- {% endif %} -
-
- {% endfor %} -
- {% endif %} +
+
+
+ + {{ project_qr_codes|length }} QR Code{{ 's' if + project_qr_codes|length != 1 else '' }} +
+ + {{ 'Active' if project.active_status else 'Inactive' }} + +
+ + +
+
+ + +
+ {% if project_qr_codes %} +
+ {% for qr in project_qr_codes[:12] %} +
+
+
+ QR Code for {{ qr.name }} +
+ +
+

{{ qr.name }}

+
+ + {{ qr.location }} +
+ + {% if qr.location_address %} +
+ + {{ qr.location_address }} +
+ {% endif %} + +
+ + {{ get_qr_code_checkin_count(qr.id) }} check-ins +
+ + + + {{ 'Active' if qr.active_status else 'Inactive' }} + +
+
+ +
+ + + + + + + + + + + {% if session.role == 'admin' %} + + {% endif %} +
+
+ {% endfor %} + + {% if project_qr_codes|length > 12 %} + + + View All Project's QR Codes + + {% endif %} +
+ {% else %} +
+
+ +
+

No QR Codes in this Project

+

Create your first QR code for this project

+ + + Create QR Code + +
+ {% endif %} +
+
+ {% endfor %} +
+ {% endif %} +
{% set unassigned_qr_codes = qr_codes|selectattr('project_id', 'equalto', None)|list %} {% if unassigned_qr_codes %}