djLint/tests/django_ledger/invoice_delete.html
2021-08-02 13:06:56 -05:00

35 lines
1.6 KiB
HTML

{% extends 'django_ledger/layouts/content_layout_1.html' %}
{% load i18n %}
{% load static %}
{% load django_ledger %}
{% block view_content %}
<div class="columns is-centered">
<div class="column is-6">
<form action="{% url 'django_ledger:invoice-delete' entity_slug=view.kwargs.entity_slug invoice_pk=invoice.uuid %}"
method="post">
{% csrf_token %}
<div class="card">
<div class="card-content has-text-centered">
<p class="title has-text-weight-light">
Are you sure you want to delete
Invoice {{ invoice.invoice_number }}
</p>
</div>
<div class="card-content has-text-centered">
<p class="subtitle">
All transactions associated with this invoice will be deleted.
If you want to void the invoice instead, click here
</p>
</div>
<div class="card-content has-text-centered">
<a href="{% url 'django_ledger:invoice-detail' entity_slug=view.kwargs.entity_slug invoice_pk=invoice.uuid %}"
class="button is-primary">
{% trans 'Go Back' %}
</a>
<button type="submit" class="button is-danger">{% trans 'Delete' %}</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}