mailbox backend: don't show identity delete action on mailbox identity
This commit is contained in:
parent
0a0d284ecc
commit
74f7d92437
|
@ -28,16 +28,18 @@
|
||||||
<td>{{ identity.id }}</td>
|
<td>{{ identity.id }}</td>
|
||||||
<td>{{ identity.email }}</td>
|
<td>{{ identity.email }}</td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<form action="{{ route('backend-delete-mail-identity') }}" method="POST">
|
{% if mailbox.name != identity.email %}
|
||||||
<input type="hidden" name="id" value="{{ identity.id }}">
|
<form action="{{ route('backend-delete-mail-identity') }}" method="POST">
|
||||||
|
<input type="hidden" name="id" value="{{ identity.id }}">
|
||||||
|
|
||||||
<button class="danger"
|
<button class="danger"
|
||||||
onclick="return confirm('Are you sure you want to delete {{ identity.email }}?')">
|
onclick="return confirm('Are you sure you want to delete {{ identity.email }}?')">
|
||||||
<i data-feather="trash"></i> <span class="tip">Delete</span>
|
<i data-feather="trash"></i> <span class="tip">Delete</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{{ macros.csrf(getCsrfToken) }}
|
{{ macros.csrf(getCsrfToken) }}
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue