{% extends "musician/base.html" %}
{% load i18n %}

{% block content %}

<h1>Mailing lists</h1>
<p>Little description of what to be expected...</p>

<table class="table table-hover">
  <thead class="thead-dark">
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Status</th>
      <th scope="col">Address</th>
      <th scope="col">Admin email</th>
      <th scope="col">Configure</th>
    </tr>
  </thead>
  <tbody>
    {% for resource in object_list %}
    <tr>
      <th scope="row">{{ resource.name }}</th>
      <td>{{ resource.status }}</td>
      <td>{{ resource.address_name}}@{{ resource.address_domain.name }}</td>
      <td>{{ resource.admin_email }}</td>
      <td><a href="#TODO-{{ resource.manager_url }}" target="_blank" rel="noopener noreferrer">Mailtrain</a></td>
    </tr>
    {% endfor %}
  </tbody>
  {% include "musician/components/table_paginator.html" %}
</table>
{% endblock %}
