Merge pull request #1279 from alphagov/placeholders-in-contact-block

Enable placeholders in letter contact block
This commit is contained in:
Chris Hill-Scott
2017-05-23 14:39:00 +01:00
committed by GitHub
5 changed files with 13 additions and 5 deletions

View File

@@ -56,7 +56,7 @@
{% call row() %}
{{ text_field('Letter contact details') }}
{% call field(status='' if current_service.letter_contact_block else 'default') %}
{{ current_service.letter_contact_block | escape | nl2br | safe }}
{{ letter_contact_block | string | nl2br | safe if current_service.letter_contact_block else 'None'}}
{% endcall %}
{{ edit_field('Change', url_for('.service_set_letter_contact_block', service_id=current_service.id)) }}
{% endcall %}