Chris Hill-Scott
2017-05-17 15:35:21 +01:00
parent 78093f82d9
commit 8accf7127f
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 %}

View File

@@ -18,7 +18,8 @@
label='How should users contact your service?<br>This applies to all the letters you send.'|safe,
hint='10 lines maximum',
width='1-1',
rows=10
rows=10,
highlight_tags=True
) }}
{{ page_footer(
'Save',