41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load django_ledger %}
|
|
|
|
{% block title %}
|
|
{% trans "Delete Journal Entry" %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<main class="container py-5">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-6 col-md-8">
|
|
<div class="card shadow-lg border-0 rounded-4">
|
|
<div class="card-body p-5 text-center">
|
|
<div class="mb-4">
|
|
<i class="fas fa-exclamation-triangle fa-4x text-danger"></i>
|
|
</div>
|
|
<h2 class="h3 fw-bold mb-3">{% trans "Confirm Deletion" %}</h2>
|
|
<p class="lead text-muted mb-4">
|
|
{% blocktrans %}Are you sure you want to delete the journal entry? This action cannot be undone.{% endblocktrans %}
|
|
</p>
|
|
|
|
<div class="d-flex justify-content-center gap-3">
|
|
<a href="{% url 'journalentry_list' request.dealer.slug journal_entry.ledger.pk %}"
|
|
class="btn btn-outline-secondary btn-lg rounded-pill px-5 fw-bold">
|
|
{% trans 'Go Back' %}
|
|
</a>
|
|
<form action="{% url 'journalentry_delete' request.dealer.slug journal_entry.pk %}" method="post" class="d-inline">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-danger btn-lg rounded-pill px-5 fw-bold">
|
|
{% trans 'Delete' %}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% endblock %} |