{% extends "email_blocks/base.html" %}
{% load perm_tags %}
{% load email_block_tags %}
{% load base_filters %}
{% load i18n %}

{% block extra_head %}
    {{ block.super }}
{% endblock %}

{% block body %}
<div class="t">
{% email_blocks_nav email_block %}

<h1>{% trans "Delete an Email Block Record" %}</h1>
<div>{% trans "Email: " %}{{ email_block.email|obfuscate_email }}</div>
<div>{% trans "Email Domain: " %}{{ email_block.email_domain }}</div>
<div>{% blocktrans with email_block.create_dt|date:'long' as emails %} Created on<b>{{ emails }}</b></div>
<div>by: {% endblocktrans %}<a href="{% url profile email_block.creator.username %}">{{ email_block.creator.username }}</a></div>
<div style="color:red;font-weight:bold;margin: 1em 0;">{% trans "Are you sure you want to delete this Email Block?" %}</div>
<br />
<div>
{% trans "Deleted items cannot be recovered!" %}
</div>
<br />
<form action="{% url email_block.delete email_block.id %}" method="post">{% csrf_token %}
<input type="hidden" name="id" value="{{email_block.id}}" />
<input type="submit" value="Delete Email Block" />
</form>


</div>
{% endblock %}
