From 3acef7b0db4d71322799f0b05bc9a357e1603aa4 Mon Sep 17 00:00:00 2001 From: Ginger Butcher Date: Fri, 5 Jul 2024 11:36:34 +0100 Subject: [PATCH] fix: change department label to "department or team" --- ckanext/nhm/lib/mail.py | 2 +- ckanext/nhm/theme/templates/contact/snippets/form.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ckanext/nhm/lib/mail.py b/ckanext/nhm/lib/mail.py index c58cf651..398b8333 100644 --- a/ckanext/nhm/lib/mail.py +++ b/ckanext/nhm/lib/mail.py @@ -29,7 +29,7 @@ def create_department_email(mail_dict: dict, department: str): mail_dict['recipient_email'] = COLLECTION_CONTACTS[department] except KeyError: # Other/unknown etc., - so don't set recipient email - mail_dict['body'] += f'\nDepartment: {department}\n' + mail_dict['body'] += f'\nDepartment or team: {department}\n' else: mail_dict['recipient_name'] = department mail_dict['body'] += ( diff --git a/ckanext/nhm/theme/templates/contact/snippets/form.html b/ckanext/nhm/theme/templates/contact/snippets/form.html index deca40e2..1e2858ea 100644 --- a/ckanext/nhm/theme/templates/contact/snippets/form.html +++ b/ckanext/nhm/theme/templates/contact/snippets/form.html @@ -27,7 +27,7 @@ {# If this is the collections dataset, still add the department select #} {% if package['name'] == 'collection-specimens' %} - {{ form.select('department', label=_('Department'), options=h.get_contact_form_department_options(), selected=data.department, error=errors.department, is_required=true) }} + {{ form.select('department', label=_('Department or team'), options=h.get_contact_form_department_options(), selected=data.department, error=errors.department, is_required=true) }} {% endif %}
@@ -43,7 +43,7 @@ {% else %} {# Add department selection (for non dataset forms) #} - {{ form.select('department', label=_('Department'), options=h.get_contact_form_department_options(), selected=data.department, error=errors.department, is_required=true) }} + {{ form.select('department', label=_('Department or team'), options=h.get_contact_form_department_options(), selected=data.department, error=errors.department, is_required=true) }} {% endif %}