2020-07-27 16:02:09 +02:00
|
|
|
{% extends 'layouts/base.njk' %}
|
|
|
|
|
|
|
|
{% set title = app.name + ' - Backend' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="container">
|
2020-11-10 15:22:06 +01:00
|
|
|
{{ macros.breadcrumb(mailbox.userName + ' - ' + mailbox.name, [
|
2020-07-30 11:07:31 +02:00
|
|
|
{title: 'Backend', link: route('backend')},
|
|
|
|
{title: 'Mailboxes', link: route('backend-mailboxes')}
|
|
|
|
]) }}
|
2020-11-10 15:22:06 +01:00
|
|
|
<h1>Mailbox: {{ mailbox.userName }} - {{ mailbox.name }}</h1>
|
2020-07-27 16:02:09 +02:00
|
|
|
|
2020-11-10 15:22:06 +01:00
|
|
|
<section class="panel">
|
|
|
|
<h2><i data-feather="mail"></i> Identities</h2>
|
2020-07-27 16:02:09 +02:00
|
|
|
|
|
|
|
<table class="data-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for identity in identities %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ identity.id }}</td>
|
|
|
|
<td>{{ identity.email }}</td>
|
|
|
|
<td class="actions">
|
|
|
|
<form action="{{ route('backend-delete-mail-identity') }}" method="POST">
|
|
|
|
<input type="hidden" name="id" value="{{ identity.id }}">
|
|
|
|
|
2020-07-30 11:07:31 +02:00
|
|
|
<button class="danger"
|
|
|
|
onclick="return confirm('Are you sure you want to delete {{ identity.email }}?')">
|
2020-07-30 10:58:18 +02:00
|
|
|
<i data-feather="trash"></i> <span class="tip">Delete</span>
|
2020-07-27 16:02:09 +02:00
|
|
|
</button>
|
|
|
|
|
2020-11-02 22:16:51 +01:00
|
|
|
{{ macros.csrf(getCsrfToken) }}
|
2020-07-27 16:02:09 +02:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2020-07-27 17:31:46 +02:00
|
|
|
<form action="{{ route('backend-create-mail-identity', mailbox.id) }}" method="POST" class="sub-panel">
|
2020-07-27 16:02:09 +02:00
|
|
|
<h3>{% if mailboxIdentity == null %}Create a mailbox{% else %}Create a new mail identity{% endif %}</h3>
|
|
|
|
|
|
|
|
<div class="inline-fields">
|
|
|
|
{{ macros.field(_locals, 'text', 'name', user.name, 'Email name', null, 'required') }}
|
|
|
|
<span>@</span>
|
|
|
|
{{ macros.field(_locals, 'select', 'mail_domain_id', null, 'Choose the email domain', null, 'required', domains) }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button><i data-feather="plus"></i> Create</button>
|
|
|
|
|
2020-11-02 22:16:51 +01:00
|
|
|
{{ macros.csrf(getCsrfToken) }}
|
2020-07-27 16:02:09 +02:00
|
|
|
</form>
|
2020-11-10 15:22:06 +01:00
|
|
|
</section>
|
2020-07-27 16:02:09 +02:00
|
|
|
</div>
|
2020-11-02 22:16:51 +01:00
|
|
|
{% endblock %}
|