36 lines
1.8 KiB
HTML
36 lines
1.8 KiB
HTML
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load django_ledger %}
|
|
{% block title %}
|
|
{% trans "Delete Purchase Order" %}
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<form action="{% url 'po-delete' dealer_slug=request.dealer.slug 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">
|
|
{% blocktrans %}Are you sure you want to delete
|
|
Purchase Order {{ po_model.po_number }}?{% endblocktrans %}
|
|
</h2>
|
|
<p class="card-text text-muted mb-4">
|
|
{% trans "All transactions associated with this Purchase Order will be deleted.
|
|
If you want to void the PO instead," %} <a href="{% url 'purchase_order_detail' dealer_slug=request.dealer.slug pk=po_model.uuid %}"
|
|
class="text-decoration-none">{% trans "click here" %}</a>
|
|
</p>
|
|
<div class="d-flex justify-content-center gap-3 mt-4">
|
|
<a href="{% url 'purchase_order_update' dealer_slug=request.dealer.slug 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 %}
|