From f6db8e13f1b6f41735b450ea278be8edca896041 Mon Sep 17 00:00:00 2001 From: Dylan Hillerbrand Date: Tue, 27 Aug 2024 14:46:55 -0400 Subject: [PATCH] style: format existing django templates with djlint --- .../templates/admin/load_chants.html | 19 +- .../templates/admin/map_folios.html | 230 +++++++++--------- app/public/cantusdata/templates/base.html | 103 ++++---- .../missing_manuscript_redirect.html | 33 ++- app/public/cantusdata/templates/require.html | 42 ++-- 5 files changed, 218 insertions(+), 209 deletions(-) diff --git a/app/public/cantusdata/templates/admin/load_chants.html b/app/public/cantusdata/templates/admin/load_chants.html index d1be2c9d..3c03f2d7 100644 --- a/app/public/cantusdata/templates/admin/load_chants.html +++ b/app/public/cantusdata/templates/admin/load_chants.html @@ -1,7 +1,6 @@ {% extends "base.html" %} - {% block head %} - + {% endblock %} {% block body %} -

Chants are being loaded for these manuscripts.

-
The changes are currently being applied to the database. They should appear in a few minutes.
-
- -
-{% endblock %} \ No newline at end of file +

Chants are being loaded for these manuscripts.

+
The changes are currently being applied to the database. They should appear in a few minutes.
+
+ +
+{% endblock %} diff --git a/app/public/cantusdata/templates/admin/map_folios.html b/app/public/cantusdata/templates/admin/map_folios.html index 1622d5bc..f0a25ec8 100644 --- a/app/public/cantusdata/templates/admin/map_folios.html +++ b/app/public/cantusdata/templates/admin/map_folios.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block head %} - + {% endblock %} - {% block body %} - -{% if error %} -

{{ error }}

- -{% elif manuscript_ids %} - - - - - - - {% for m_id, m_str, is_mapped in manuscript_ids %} - - - {% if is_mapped == "MAPPED" %} - - {% elif is_mapped == "PENDING" %} - - {% else %} - - {% endif %} - - - {% endfor %} -
ManuscriptStatusMapping
{{ m_str }}Already mappedMap pendingNot mapped - {% if is_mapped == "MAPPED" %} - Edit map - {% elif is_mapped == "PENDING" %} - Wait for mapping to process - {% else %} - Map now - {% endif %} -
- -{% elif manuscript_id and uris and folios and manuscript_mapping_state %} - -

Tip: Use 'Tab' and 'Shift+Tab' to navigate the input fields.
- - - -
- {% csrf_token %} - -
- {% if not dbl_folio_img %} - - {% else %} - - {% endif %} - -
- + {% if manuscript_mapping_state == "PENDING" %} +
+ +
{% else %} - {% if uri.folio %} - - {% if uri.folio.1 %} - - {% else %} - - {% endif %} - {% else %} - - - {% endif %} +
+ +
{% endif %} -
Up
-
Down
- - {% endfor %} - - {% if manuscript_mapping_state == "PENDING" %} -
- -
- {% else %} -
- -
- {% endif %} -
-
-
Save Backup
-
Drag and drop a CSV file anywhere
on the page to import it.
-
- - - -{% endif %} + + {% endif %} {% endblock %} diff --git a/app/public/cantusdata/templates/base.html b/app/public/cantusdata/templates/base.html index efb1539f..81088ea3 100644 --- a/app/public/cantusdata/templates/base.html +++ b/app/public/cantusdata/templates/base.html @@ -1,60 +1,69 @@ - - - {% block document_title %}Cantus Ultimus{% endblock %} - - - - - - - {# Replace .no-js with .js before loading the CSS #} - - - - - {% block head %} - {% endblock %} - - - - - - - -
-