Say manage if there’s more than none

‘Change’ as a label for the link is misleading, because this is also the
page you go to in order to get the ID of a given reply to address.
‘Manage’ feels a bit more general.
This commit is contained in:
Chris Hill-Scott
2017-09-26 16:00:13 +01:00
parent b68784207b
commit c78fac911a
2 changed files with 10 additions and 7 deletions

View File

@@ -44,7 +44,7 @@
{% if 'email' in current_service.permissions %}
{% call row() %}
{{ text_field('Email reply to address') }}
{{ text_field('Email reply to addresses') }}
{% call field(status='default' if default_reply_to_email_address == "None" else '') %}
{{ default_reply_to_email_address }}
@@ -54,7 +54,10 @@
</div>
{% endif %}
{% endcall %}
{{ edit_field('Change', url_for('.service_email_reply_to', service_id=current_service.id)) }}
{{ edit_field(
'Manage' if reply_to_email_address_count else 'Change',
url_for('.service_email_reply_to', service_id=current_service.id))
}}
{% endcall %}
{% endif %}