rainbox.email/views/backend/mailboxes.njk

48 lines
1.5 KiB
Plaintext

{% extends 'layouts/base.njk' %}
{% set title = app.name + ' - Backend' %}
{% block body %}
<div class="container">
{{ macros.breadcrumb('Mailboxes', [
{title: 'Backend', link: route('backend')}
]) }}
<h1>Mailbox manager</h1>
<section class="panel">
<h2><i data-feather="mail"></i> Mailboxes</h2>
<table class="data-table">
<thead>
<tr>
<th>#</th>
<th>User name</th>
<th>Name</th>
<th>Identities</th>
<th>Owned domains</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for box in mailboxes %}
<tr>
<td>{{ box.id }}</td>
<td>{{ box.username }}</td>
<td>{{ box.name }}</td>
<td>{{ box.identity_count }}</td>
<td>{{ box.domain_count }}</td>
<td class="actions">
<a href="{{ route('backend-mailbox', box.id) }}" class="button">
<i data-feather="edit-2"></i> <span class="tip">Edit</span>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
</div>
{% endblock %}