Adds delete functionality

This commit is contained in:
Mouse Reeve
2021-09-08 16:24:13 -07:00
parent 7638f99c1b
commit d28db51a14
3 changed files with 25 additions and 6 deletions

View File

@ -45,11 +45,14 @@
</a>
</td>
<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>
<form name="remove-{{ domain.id }}" action="{% url 'settings-email-blocks-delete' domain.id %}" method="post">
{% csrf_token %}
{% trans "Delete" as button_text %}
<button class="button" type="submit">
<span class="icon icon-x" title="{{ button_text }}" aria-hidden="true"></span>
<span class="is-hidden-mobile">{{ button_text }}</span>
</button>
</form>
</td>
</tr>
{% endfor %}