2021-09-08 17:32:11 -04:00
{% extends 'settings/layout.html' %}
{% load i18n %}
{% block title %}{% trans "Email Blocklist" %}{% endblock %}
{% block header %}{% trans "Email Blocklist" %}{% endblock %}
{% block edit-button %}
2021-09-08 18:08:22 -04:00
{% trans "Add domain" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="add_domain" icon_with_text="plus" text=button_text focus="add_domain_header" %}
2021-09-08 17:32:11 -04:00
< / a >
{% endblock %}
{% block panel %}
2021-09-08 18:08:22 -04:00
{% include 'settings/domain_form.html' with controls_text="add_domain" class="block" %}
< p class = "notification block" >
{% trans "When someone tries to register with an email from this domain, no account will be created. The registration process will appear to have worked." %}
< / p >
2021-09-08 17:32:11 -04:00
< table class = "table is-striped" >
< tr >
{% url 'settings-federation' as url %}
< th >
{% trans "Domain" as text %}
{% include 'snippets/table-sort-header.html' with field="server_name" sort=sort text=text %}
< / th >
< th >
{% trans "Options" %}
< / th >
< / tr >
2021-09-08 18:08:22 -04:00
{% for domain in domains %}
2021-09-08 17:32:11 -04:00
< tr >
2021-09-08 18:08:22 -04:00
< td > {{ domain.domain }}< / td >
2021-09-08 17:32:11 -04:00
< td >
{% trans "Delete" as button_text %}
< button class = "button" >
< span class = "icon icon-x" title = "{{ button_text }}" aria-hidden = "true" > < / span >
< span class = "is-hidden-mobile" > {{ button_text }}< / span >
< / button >
< / td >
< / tr >
2021-09-08 18:08:22 -04:00
{% endfor %}
2021-09-08 17:32:11 -04:00
< / table >
{% include 'snippets/pagination.html' with page=servers path=request.path %}
{% endblock %}