diff --git a/templates/dashboard.html b/templates/dashboard.html index 83584e2..1675719 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1096,19 +1096,7 @@ Management{% endblock %} {% block extra_head %} {{ 'Active' if project.active_status else 'Inactive' }} - - - {% if project_qr_codes|length > 12 %} - - - View All - - {% endif %} - + @@ -1220,6 +1208,17 @@ Management{% endblock %} {% block extra_head %} {% endfor %} + + {% if project_qr_codes|length > 12 %} + + + View All Project's QR Codes + + {% endif %} {% else %}
diff --git a/templates/project_qr_codes.html b/templates/project_qr_codes.html index dad7748..0d768a6 100644 --- a/templates/project_qr_codes.html +++ b/templates/project_qr_codes.html @@ -1,9 +1,9 @@ -{% extends "base_authenticated.html" %} {% block title %}{{ project.name }} - QR -Codes{% endblock %} {% block extra_head %} - +{% extends "base_authenticated.html" %} + +{% block title %}{{ project.name }} - QR Codes{% endblock %} + +{% block extra_head %} + -{% endblock %} {% block content %} +{% endblock %} + +{% block content %}
@@ -348,30 +636,15 @@ Codes{% endblock %} {% block extra_head %}
- {{ qr_codes|selectattr('active_status', 'equalto', - True)|list|length }} - Active + {{ qr_codes|selectattr('active_status', 'equalto', True)|list|length }} Active
- {{ qr_codes|selectattr('active_status', 'equalto', - False)|list|length }} - Inactive + {{ qr_codes|selectattr('active_status', 'equalto', False)|list|length }} Inactive
- Page {{ pagination.page }} of - {{ pagination.pages }} + Page {{ pagination.page }} of {{ pagination.pages }}
@@ -380,26 +653,19 @@ Codes{% endblock %} {% block extra_head %} {% if qr_codes %}
{% for qr in qr_codes %} -
+
-
- QR Code for {{ qr.name }} +
+ QR Code for {{ qr.name }}
@@ -424,16 +690,11 @@ Codes{% endblock %} {% block extra_head %} {% if qr.qr_url %}
- {{ qr.qr_url[:50] }}{% if qr.qr_url|length > 50 %}...{% endif - %} + {{ qr.qr_url[:50] }}{% if qr.qr_url|length > 50 %}...{% endif %}
{% endif %} - + {{ 'Active' if qr.active_status else 'Inactive' }} @@ -443,17 +704,13 @@ Codes{% endblock %} {% block extra_head %} {% if session.role == 'admin' %}
- + Edit -
@@ -466,9 +723,7 @@ Codes{% endblock %} {% block extra_head %} {% if pagination.pages > 1 %}
- Showing {{ (pagination.page - 1) * pagination.per_page + 1 }} to {{ - [pagination.page * pagination.per_page, pagination.total]|min }} of {{ - pagination.total }} QR codes + Showing {{ (pagination.page - 1) * pagination.per_page + 1 }} to {{ [pagination.page * pagination.per_page, pagination.total]|min }} of {{ pagination.total }} QR codes
    @@ -477,9 +732,7 @@ Codes{% endblock %} {% block extra_head %} {% if pagination.page == 1 %} {% else %} - + {% endif %} @@ -488,9 +741,7 @@ Codes{% endblock %} {% block extra_head %}
  • {% if pagination.has_prev %} - + {% else %} @@ -499,32 +750,30 @@ Codes{% endblock %} {% block extra_head %}
  • - {% for page_num in pagination.iter_pages(left_edge=1, right_edge=1, - left_current=2, right_current=2) %} {% if page_num %} {% if page_num == - pagination.page %} -
  • - {{ page_num }} -
  • - {% else %} -
  • - - {{ page_num }} - -
  • - {% endif %} {% else %} -
  • - ... -
  • - {% endif %} {% endfor %} + {% for page_num in pagination.iter_pages(left_edge=1, right_edge=1, left_current=2, right_current=2) %} + {% if page_num %} + {% if page_num == pagination.page %} +
  • + {{ page_num }} +
  • + {% else %} +
  • + + {{ page_num }} + +
  • + {% endif %} + {% else %} +
  • + ... +
  • + {% endif %} + {% endfor %}
  • {% if pagination.has_next %} - + {% else %} @@ -537,27 +786,23 @@ Codes{% endblock %} {% block extra_head %} {% if pagination.page == pagination.pages %} {% else %} - + {% endif %}
- {% endif %} {% else %} + {% endif %} + + {% else %}

No QR Codes Found

This project doesn't have any QR codes yet.

{% if session.role == 'admin' %} - + Create QR Code {% endif %} @@ -565,8 +810,132 @@ Codes{% endblock %} {% block extra_head %} {% endif %}
- -{% include 'partials/_qr_modal.html' ignore missing %} {% endblock %} {% block -extra_scripts %} - + +
+ +
+ + + + {% endblock %} + +{% block extra_scripts %} + + + +{% endblock %} \ No newline at end of file