mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
Merge pull request #3043 from alphagov/add-first-letter-contact-experience
Make adding a ‘letter contact block’ for the first time make sense
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
{{ page_header(
|
||||
'Add a new address',
|
||||
back_link=None if request.args.get('from_template') else url_for('.service_letter_contact_details', service_id=current_service.id)
|
||||
back_link=back_link
|
||||
) }}
|
||||
<div class="grid-row">
|
||||
<div class="column-whole">
|
||||
|
||||
@@ -49,7 +49,11 @@
|
||||
{% endif %}
|
||||
<a href="{{ url_for(".edit_template_postage", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-postage">Change</a>
|
||||
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-body">Edit</a>
|
||||
<a href="{{ url_for(".set_template_sender", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% if current_service.count_letter_contact_details %}
|
||||
<a href="{{ url_for(".set_template_sender", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for(".service_add_letter_contact", service_id=current_service.id, from_template=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ template|string }}
|
||||
</div>
|
||||
|
||||
@@ -23,9 +23,7 @@
|
||||
hide_legend=True
|
||||
) }}
|
||||
{{ page_footer('Continue') }}
|
||||
{% if no_senders %}
|
||||
<a href="{{ url_for('.service_add_letter_contact', service_id=current_service.id, from_template=template_id) }}">Add new sender</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_for('.service_add_letter_contact', service_id=current_service.id, from_template=template_id) }}">Add new sender</a>
|
||||
{% endcall %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user