haikal/templates/ledger/bills/bill_update_form.html
2025-01-19 11:22:50 +00:00

21 lines
694 B
HTML

{% extends 'base.html' %}
{% load i18n %}
{% load crispy_forms_filters %}
{% block title %}{% trans "Bill" %}{% endblock title %}
{% block content %}
<div class="row my-4">
<h2>{% trans "Bill" %}</h2>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-sm btn-primary">
{% if bill.is_draft %}
{% trans "Mark As Review" %}
{% elif bill.is_review or bill.is_approved %}
{% trans "Save" %}
{% endif %}
</button>
<a href="{% url 'bill_detail' pk=bill.pk %}" class="btn btn-sm btn-secondary">{% trans "Cancel" %}</a>
</form>
</div>
{% endblock %}