{% extends "base.html" %}

{% block title %}
{% trans %}Global administrators{% endtrans %}
{% endblock %}

{% block main_action %}
<a class="btn btn-primary" href="{{ url_for('.admin_create') }}">
  {% trans %}Add administrator{% endtrans %}
</a>
{% endblock %}

{% block content %}
{% call macros.table() %}
<tr>
  <th>{% trans %}Actions{% endtrans %}</th>
  <th>{% trans %}Email{% endtrans %}</th>
</tr>
{% for admin in admins %}
<tr>
  <td>
    <a href="{{ url_for('.admin_delete', admin=admin.email) }}" title="{% trans %}Delete{% endtrans %}"><i class="fa fa-trash"></i></a>
  </td>
  <td>{{ admin }}</td>
</tr>
{% endfor %}
{% endcall %}
{% endblock %}
