do not show copy button on disabled alias
This commit is contained in:
parent
a5a3bbbd63
commit
ec3f2116ff
|
@ -65,18 +65,22 @@
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
{% if gen_email.enabled %}
|
||||||
<button class="clipboard btn btn-secondary btn-sm"
|
<button class="clipboard btn btn-secondary btn-sm"
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
title="Copy the alias to clipboard"
|
title="Copy the alias to clipboard"
|
||||||
data-clipboard-text="{{ gen_email.email }}">
|
data-clipboard-text="{{ gen_email.email }}">
|
||||||
Copy
|
Copy
|
||||||
</button>
|
|
||||||
|
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if gen_email.enabled %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="hidden" name="form-name" value="trigger-email">
|
<input type="hidden" name="form-name" value="trigger-email">
|
||||||
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
||||||
|
|
||||||
{% if gen_email.enabled %}
|
|
||||||
<button class="btn btn-secondary btn-sm"
|
<button class="btn btn-secondary btn-sm"
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
title="Send a test email to the alias."
|
title="Send a test email to the alias."
|
||||||
|
@ -87,8 +91,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>Trigger Test Email
|
>Trigger Test Email
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue