mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
do not show copy button on disabled alias
This commit is contained in:
parent
a5a3bbbd63
commit
ec3f2116ff
1 changed files with 27 additions and 22 deletions
|
@ -65,30 +65,35 @@
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="clipboard btn btn-secondary btn-sm"
|
{% if gen_email.enabled %}
|
||||||
data-toggle="tooltip"
|
<button class="clipboard btn btn-secondary btn-sm"
|
||||||
title="Copy the alias to clipboard"
|
data-toggle="tooltip"
|
||||||
data-clipboard-text="{{ gen_email.email }}">
|
title="Copy the alias to clipboard"
|
||||||
Copy
|
data-clipboard-text="{{ gen_email.email }}">
|
||||||
</button>
|
Copy
|
||||||
|
|
||||||
<form method="post">
|
</button>
|
||||||
<input type="hidden" name="form-name" value="trigger-email">
|
{% endif %}
|
||||||
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
|
||||||
|
{% if gen_email.enabled %}
|
||||||
|
<form method="post">
|
||||||
|
<input type="hidden" name="form-name" value="trigger-email">
|
||||||
|
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
||||||
|
|
||||||
|
|
||||||
|
<button class="btn btn-secondary btn-sm"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="Send a test email to the alias."
|
||||||
|
{% if loop.index ==1 %}
|
||||||
|
data-intro="By triggering the test email,
|
||||||
|
SimpleLogin server will send an email to this alias
|
||||||
|
and this email should arrive to your personal email inbox 🚀"
|
||||||
|
{% endif %}
|
||||||
|
>Trigger Test Email
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if gen_email.enabled %}
|
|
||||||
<button class="btn btn-secondary btn-sm"
|
|
||||||
data-toggle="tooltip"
|
|
||||||
title="Send a test email to the alias."
|
|
||||||
{% if loop.index ==1 %}
|
|
||||||
data-intro="By triggering the test email,
|
|
||||||
SimpleLogin server will send an email to this alias
|
|
||||||
and this email should arrive to your personal email inbox 🚀"
|
|
||||||
{% endif %}
|
|
||||||
>Trigger Test Email
|
|
||||||
</button>
|
|
||||||
{% endif %}
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue