From 241a8bed55882f1a1a7aad31627f3727d5ac063b Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 19 Apr 2025 20:47:16 +0530 Subject: [PATCH 1/3] Cleanup tab.js and "submissions/summary" - Remove unused tab.js and page at submissions/summary - There are some html wrapping updates to make the code readible and git diff friendly --- .../funds/admin/widgets/read_only.html | 13 +- .../funds/applicationrevision_list.html | 22 ++- .../applicationsubmission_admin_detail.html | 24 +++- .../funds/applicationsubmission_detail.html | 60 ++++++-- .../funds/applicationsubmission_form.html | 18 ++- ...applicationsubmission_reviewer_detail.html | 6 +- .../apply/funds/templates/funds/comments.html | 2 +- .../funds/grouped_application_list.html | 22 --- .../funds/includes/admin_primary_actions.html | 57 ++++++-- .../funds/reminder_confirm_delete.html | 18 ++- .../templates/funds/revisions_compare.html | 47 +++++-- .../templates/funds/staff_assignments.html | 4 +- .../templates/funds/submission-success.html | 4 +- .../templates/funds/submission_sealed.html | 16 ++- .../templates/funds/submissions_result.html | 32 +++-- .../funds/templates/funds/tables/table.html | 20 ++- hypha/apply/funds/urls.py | 2 - hypha/apply/funds/views/__init__.py | 10 -- hypha/static_src/javascript/tabs.js | 131 ------------------ hypha/static_src/sass/components/_tabs.scss | 14 +- 20 files changed, 277 insertions(+), 245 deletions(-) delete mode 100644 hypha/apply/funds/templates/funds/grouped_application_list.html delete mode 100644 hypha/static_src/javascript/tabs.js diff --git a/hypha/apply/funds/templates/funds/admin/widgets/read_only.html b/hypha/apply/funds/templates/funds/admin/widgets/read_only.html index f0198a013c..5372e75642 100644 --- a/hypha/apply/funds/templates/funds/admin/widgets/read_only.html +++ b/hypha/apply/funds/templates/funds/admin/widgets/read_only.html @@ -1,2 +1,13 @@ {% load i18n %} -
{{ widget.value }}
{% if widget.edit_link %}
{% trans "Edit" %}
{% endif %} + +
+ {{ widget.value }} +
+ +{% if widget.edit_link %} +
+ + {% trans "Edit" %} + +
+{% endif %} diff --git a/hypha/apply/funds/templates/funds/applicationrevision_list.html b/hypha/apply/funds/templates/funds/applicationrevision_list.html index 215c5b776b..d595af9a9c 100644 --- a/hypha/apply/funds/templates/funds/applicationrevision_list.html +++ b/hypha/apply/funds/templates/funds/applicationrevision_list.html @@ -5,7 +5,15 @@ {% block content %} {% adminbar %} {% slot header %}{% trans "Revisions" %}{% endslot %} - {% slot sub_heading %}{% trans "For" %} {{ submission.title_text_display }}{% endslot %} + {% slot sub_heading %} + {% trans "For" %} + + {{ submission.title_text_display }} + + {% endslot %} {% endadminbar %}
@@ -19,11 +27,19 @@ ({% trans "current" %}) {% endif %} {% if revision.is_draft %} - ({% trans "draft" %}) + ({% trans "draft" %}) + {% endif %}

+ {% if not forloop.first %} - {% trans "Compare" %} + + {% trans "Compare" %} + {% endif %} {% endfor %} diff --git a/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html b/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html index 048e2718ab..41dcae8c92 100644 --- a/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html +++ b/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html @@ -2,7 +2,10 @@ {% load i18n static workflow_tags review_tags determination_tags translate_tags heroicons %} {% block sidebar_top %} -