Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact email for BII #782

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions ckanext/nhm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
('Library & Archives', 'library@nhm.ac.uk'),
('Mineral & Planetary Sciences', 'm.rumsey@nhm.ac.uk'),
('Vertebrates', 'simon.loader@nhm.ac.uk'),
('Biodiversity Intactness Index', 'biodiversityfuturesexplorer@nhm.ac.uk'),
('Data Portal / Other', 'data@nhm.ac.uk'),
]
)
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
Loading