mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Change None to Not set
‘None’ is a bit Pythony. ‘Not set’ is a bit more human.
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
{% endcall %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro optional_text_field(text, default=None) -%}
|
||||
{% macro optional_text_field(text, default='Not set') -%}
|
||||
{{ text_field(
|
||||
text or default,
|
||||
status='' if text else 'default'
|
||||
|
||||
@@ -135,8 +135,8 @@
|
||||
{% if 'letter' in current_service.permissions %}
|
||||
{% call row() %}
|
||||
{{ text_field('Sender addresses') }}
|
||||
{% call field(status='default' if default_letter_contact_block == "None" else '') %}
|
||||
{{ default_letter_contact_block | string | nl2br | safe if default_letter_contact_block else 'None'}}
|
||||
{% call field(status='default' if default_letter_contact_block == "Not set" else '') %}
|
||||
{{ default_letter_contact_block | string | nl2br | safe if default_letter_contact_block else 'Not set'}}
|
||||
{% if letter_contact_details_count > 1 %}
|
||||
<div class="hint">
|
||||
{{ '…and %d more' | format(letter_contact_details_count - 1) }}
|
||||
|
||||
Reference in New Issue
Block a user