{% extends postorius_base_template %} {% load i18n %} {% block subtitle %} {% trans "Domains" as page_title %}{{ page_title }} {% endblock %} {% block main %} <h1>{% trans "Domain Index" %}</h1> <p> <a class="btn btn-success" href="{% url 'domain_new' %}">{% trans "Create Domain" %}</a> </p> <table class="table table-bordered table-striped"> <thead> <tr> <th>{% trans "Mail Host" %}</th> <th>{% trans "URL Host" %}</th> <th>{% trans "Description" %}</th> <th> </th> </tr> </thead> <tbody> {% for domain in domains %} <tr> <td>{{ domain.mail_host }}</td> <td>{{ domain.base_url }}</td> <td>{{ domain.description }}</td> <td><a href="{% url 'domain_delete' domain.mail_host %}" class="btn btn-mini btn-danger">{% trans 'Delete' %}</a></td> </tr> {% endfor %} </tbody> </table> {% endblock main %}