Go straight to add if no contact blocks yet

Same as previous commit, but for going forward, not back.
This commit is contained in:
Chris Hill-Scott
2019-07-08 09:31:30 +01:00
parent 8e080d6079
commit fe7c3259c2
2 changed files with 20 additions and 8 deletions

View File

@@ -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>