do not show sender format that has full sender address
This commit is contained in:
parent
6547d9420f
commit
e85cfebf92
|
@ -264,22 +264,31 @@
|
|||
<input type="hidden" name="form-name" value="change-sender-format">
|
||||
|
||||
<select class="form-control mr-sm-2" name="sender-format">
|
||||
<option value="{{ SenderFormatEnum.VIA.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.VIA.value %} selected {% endif %}>
|
||||
john@wick.com via SimpleLogin
|
||||
</option>
|
||||
{# Only show this for compatibility reason #}
|
||||
{% if current_user.sender_format == SenderFormatEnum.VIA.value %}
|
||||
<option value="{{ SenderFormatEnum.VIA.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.VIA.value %} selected {% endif %}>
|
||||
john@wick.com via SimpleLogin (Not recommended)
|
||||
</option>
|
||||
{% endif %}
|
||||
|
||||
<option value="{{ SenderFormatEnum.AT.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.AT.value %} selected {% endif %}>
|
||||
John Wick - john at wick.com
|
||||
</option>
|
||||
|
||||
<option value="{{ SenderFormatEnum.A.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.A.value %} selected {% endif %}>
|
||||
John Wick - john(a)wick.com
|
||||
</option>
|
||||
<option value="{{ SenderFormatEnum.FULL.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.FULL.value %} selected {% endif %}>
|
||||
John Wick - john@wick.com
|
||||
</option>
|
||||
|
||||
{# Only show this for compatibility reason #}
|
||||
{% if current_user.sender_format == SenderFormatEnum.FULL.value %}
|
||||
<option value="{{ SenderFormatEnum.FULL.value }}"
|
||||
{% if current_user.sender_format == SenderFormatEnum.FULL.value %} selected {% endif %}>
|
||||
John Wick - john@wick.com (Not recommended)
|
||||
</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
|
||||
<button class="btn btn-outline-primary mt-3">Update</button>
|
||||
|
|
Loading…
Reference in New Issue