llldap/templates/domains.html

38 lines
926 B
HTML

{% extends 'app.html' %}
{% block main %}
<main>
<section class="section">
{% if can_create_domain %}
{% include 'partials/create_domain_form.html' %}
{% endif %}
<div class="container is-widescreen mt-5">
<article class="message is-info">
<header class="message-header">
{% if can_create_domain %}
<p class="card-header-title">List of all domains on this server</p>
{% else %}
<p class="card-header-title">List of your domains</p>
{% endif %}
</header>
<div class="message-body">
<table class="table is-fullwidth is-striped">
<thead>
<tr>
<th>Domain</th>
</tr>
</thead>
<tbody>
{% for domain in domains %}
<tr>
<td><a href="/domain/{{ domain.name }}">{{ domain.name }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</article>
</div>
</section>
</main>
{% endblock %}