From 35edf5511616739ca05fe510f36a8f3271735ec1 Mon Sep 17 00:00:00 2001 From: Wes Appler Date: Fri, 13 Sep 2024 15:33:50 -0400 Subject: [PATCH] Added code documentation & system settings --- .../applicationsubmission_admin_detail.html | 6 ++- .../funds/applicationsubmission_detail.html | 14 +++++-- .../funds/includes/admin_primary_actions.html | 12 +++--- .../funds/includes/rendered_answers.html | 4 +- .../funds/templatetags/translate_tags.py | 42 ++++++++++++++++++- hypha/settings/base.py | 3 ++ 6 files changed, 67 insertions(+), 14 deletions(-) diff --git a/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html b/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html index 651e42eca2..22a23cafd5 100644 --- a/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html +++ b/hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html @@ -1,5 +1,5 @@ {% extends "funds/applicationsubmission_detail.html" %} -{% load i18n static workflow_tags review_tags determination_tags heroicons %} +{% load i18n static workflow_tags review_tags determination_tags translate_tags heroicons %} {% block extra_css %} @@ -98,5 +98,7 @@
{% trans "Reminders" %}
- + {% if request.user|can_translate_submission %} + + {% endif %} {% endblock %} diff --git a/hypha/apply/funds/templates/funds/applicationsubmission_detail.html b/hypha/apply/funds/templates/funds/applicationsubmission_detail.html index 3e1106c51c..c48cef0e6d 100644 --- a/hypha/apply/funds/templates/funds/applicationsubmission_detail.html +++ b/hypha/apply/funds/templates/funds/applicationsubmission_detail.html @@ -1,5 +1,5 @@ {% extends "base-apply.html" %} -{% load i18n static workflow_tags wagtailcore_tags statusbar_tags archive_tags submission_tags %} +{% load i18n static workflow_tags wagtailcore_tags statusbar_tags archive_tags submission_tags translate_tags %} {% load heroicons %} {% block title %}{{ object|doc_title }}{% endblock %} @@ -145,9 +145,15 @@
{% blocktrans with stage=object.previous.stage %}Your {{ stage }} applicatio {% endif %} -
- {% include "funds/includes/rendered_answers.html" %} -
+ {% if request.user|can_translate_submission %} +
+ {% include "funds/includes/rendered_answers.html" %} +
+ {% else %} +
+ {% include "funds/includes/rendered_answers.html" %} +
+ {% endif %} {% endif %} diff --git a/hypha/apply/funds/templates/funds/includes/admin_primary_actions.html b/hypha/apply/funds/templates/funds/includes/admin_primary_actions.html index a821413866..6e7ccc47ab 100644 --- a/hypha/apply/funds/templates/funds/includes/admin_primary_actions.html +++ b/hypha/apply/funds/templates/funds/includes/admin_primary_actions.html @@ -1,5 +1,5 @@ {% load i18n %} -{% load heroicons primaryactions_tags %} +{% load heroicons primaryactions_tags translate_tags %}
{% trans "Actions to take" %}
@@ -84,10 +84,12 @@
{% trans "Actions to take" %}
{% trans "More actions" %} {% trans "Revisions" %} - + {% if request.user|can_translate_submission %} + + {% endif %}