32 lines
No EOL
1,022 B
HTML
32 lines
No EOL
1,022 B
HTML
{% extends "base_charge.html" %}
|
|
{% load static %}
|
|
{% load crispy_forms_tags %}
|
|
{#{% load jalali_tags %}#}
|
|
|
|
{% block title %}افزایش موجودی{% endblock %}
|
|
{% block page_title %}افزایش موجودی{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
{% if object.state in '1' %}
|
|
<form action="{{ request.get_full_path }}" method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<div class="row g-3">
|
|
<div class="col-md-12 col-lg-12" id="formset">
|
|
{# <div class="card">#}
|
|
{# <div class="card-body">#}
|
|
{{ form|crispy }}
|
|
{# </div>#}
|
|
{# </div>#}
|
|
</div>
|
|
<div class="col-12">
|
|
<input class="w-100 btn btn-primary btn-lg" type="submit" value="ثبت" name="save"/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% else %}
|
|
{{ object.amount }} in state {{ object.get_state_display }}<br>
|
|
back to application
|
|
{% endif %}
|
|
|
|
{% endblock %} |