30 lines
1.5 KiB
HTML
30 lines
1.5 KiB
HTML
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load django_ledger %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<form action="{% url 'po-delete' entity_slug=view.kwargs.entity_slug po_pk=po_model.uuid %}"
|
|
method="post">
|
|
{% csrf_token %}
|
|
<div class="card shadow">
|
|
<div class="card-body text-center py-4">
|
|
<h2 class="card-title h3 fw-light mb-4">Are you sure you want to delete
|
|
Purchase Order {{ po_model.po_number }}?</h2>
|
|
|
|
<p class="card-text text-muted mb-4">All transactions associated with this Purchase Order will be deleted.
|
|
If you want to void the PO instead, <a href="{% url 'django_ledger:po-detail' entity_slug=view.kwargs.entity_slug po_pk=po_model.uuid %}" class="text-decoration-none">click here</a></p>
|
|
|
|
<div class="d-flex justify-content-center gap-3 mt-4">
|
|
<a href="{% url 'purchase_order_update' entity_slug=view.kwargs.entity_slug po_pk=po_model.uuid %}"
|
|
class="btn btn-phoenix-primary px-4">{% trans 'Go Back' %}</a>
|
|
<button type="submit" class="btn btn-phoenix-danger px-4">{% trans 'Delete' %}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |