Skip to content

Commit

Permalink
fix: change department label to "department or team"
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni committed Jul 5, 2024
1 parent 7b71ec3 commit 3acef7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/nhm/lib/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] += (
Expand Down
4 changes: 2 additions & 2 deletions ckanext/nhm/theme/templates/contact/snippets/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

<div class="control-group control-medium">
Expand All @@ -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 %}

Expand Down

0 comments on commit 3acef7b

Please sign in to comment.