hide replace reverse alias option

This commit is contained in:
Son NK 2020-12-01 18:36:24 +01:00
parent cd680bcd7f
commit 8551dade7c
1 changed files with 21 additions and 19 deletions

View File

@ -280,27 +280,29 @@
<!-- END Sender Format -->
<!-- Reverse-alias -->
<div class="card">
<div class="card-body">
<div class="card-title">Reverse Alias Replacement</div>
<div class="mb-3">
When replying to a forwarded email, the <b>reverse-alias</b> can be automatically included
in the attached message by your email client. <br>
Turning on this option will <b>replace</b> the reverse-alias by your contact email. <br>
Please note this option doesn't work well with Gmail UI
as Gmail automatically enriches the message which breaks the reverse-alias format.
</div>
<form method="post">
<input type="hidden" name="form-name" value="replace-ra">
<div class="form-check">
<input type="checkbox" id="replace-ra" name="replace-ra"
{% if current_user.replace_reverse_alias %} checked {% endif %} class="form-check-input">
<label for="replace-ra">Enable replacing reverse alias</label>
{% if current_user.replace_reverse_alias %}
<div class="card">
<div class="card-body">
<div class="card-title">Reverse Alias Replacement</div>
<div class="mb-3">
When replying to a forwarded email, the <b>reverse-alias</b> can be automatically included
in the attached message by your email client. <br>
Turning on this option will <b>replace</b> the reverse-alias by your contact email. <br>
Please note this option doesn't work well with Gmail UI
as Gmail automatically enriches the message which breaks the reverse-alias format.
</div>
<button type="submit" class="btn btn-outline-primary">Update</button>
</form>
<form method="post">
<input type="hidden" name="form-name" value="replace-ra">
<div class="form-check">
<input type="checkbox" id="replace-ra" name="replace-ra"
{% if current_user.replace_reverse_alias %} checked {% endif %} class="form-check-input">
<label for="replace-ra">Enable replacing reverse alias</label>
</div>
<button type="submit" class="btn btn-outline-primary">Update</button>
</form>
</div>
</div>
</div>
{% endif %}
<!-- END Reverse-alias -->
<div class="card">