mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-11 05:13:53 -04:00
Grey out None when email reply to not set
This is consistent with how we differentiate other ‘unset’ values on the settings page.
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Email reply to address') }}
|
||||
{% call field() %}
|
||||
{% call field(status='default' if default_reply_to_email_address == "None" else '') %}
|
||||
|
||||
{{ default_reply_to_email_address }}
|
||||
{% if reply_to_email_address_count > 1 %}
|
||||
<div class="hint">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="bottom-gutter-3-2 body-copy-table">
|
||||
{% call(item, row_number) list_table(
|
||||
reply_to_email_addresses,
|
||||
empty_message="You haven’t added any email addresses yet.",
|
||||
empty_message="You haven’t added any email reply to addresses yet",
|
||||
caption="Reply to email addresses",
|
||||
caption_visible=false,
|
||||
field_headings=[
|
||||
@@ -39,7 +39,27 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
{{ edit_field('Change', url_for('.service_edit_email_reply_to', service_id =current_service.id, reply_to_email_id = item.id)) }}
|
||||
{{ edit_field('Change', url_for('.service_edit_email_reply_to', service_id =current_service.id, reply_to_email_id = item.id)) }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
<div class="grid-row">
|
||||
<div class="column-five-sixths">
|
||||
<p>
|
||||
Your emails will be sent from
|
||||
{{ current_service.email_from }}@notifications.service.gov.uk
|
||||
</p>
|
||||
<p>
|
||||
This is so they have the best chance of being delivered.
|
||||
This email address can’t receive replies.
|
||||
</p>
|
||||
<p>
|
||||
Set up separate email addresses to receive replies
|
||||
from your users.
|
||||
{% if current_service.restricted and not reply_to_email_addresses %}
|
||||
Your service can’t go live until you’ve added at least one
|
||||
reply to address.
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -713,7 +713,7 @@ def test_no_reply_to_email_addresses_message_shows(
|
||||
service_id=SERVICE_ONE_ID
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select('tbody tr')[0].text) == "You haven’t added any email addresses yet."
|
||||
assert normalize_spaces(page.select('tbody tr')[0].text) == "You haven’t added any email reply to addresses yet"
|
||||
assert len(page.select('tbody tr')) == 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user