49 lines
2.2 KiB
HTML
49 lines
2.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load widget_tweaks %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-6 col-md-8">
|
|
<div class="card shadow-sm">
|
|
<div class="card-body">
|
|
<form action="{% url 'coa-update' request.dealer.slug request.entity.slug coa_model.slug %}" id="{{ form.form_id }}" method="post">
|
|
{% csrf_token %}
|
|
<div class="mb-3">
|
|
{{ form.name.label_tag }}
|
|
{{ form.name|add_class:"form-control" }}
|
|
{% if form.name.help_text %}
|
|
<small class="form-text text-muted">{{ form.name.help_text }}</small>
|
|
{% endif %}
|
|
{% for error in form.name.errors %}
|
|
<div class="invalid-feedback d-block">{{ error }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="mb-3">
|
|
{{ form.description.label_tag }}
|
|
{{ form.description|add_class:"form-control" }}
|
|
{% if form.description.help_text %}
|
|
<small class="form-text text-muted">{{ form.description.help_text }}</small>
|
|
{% endif %}
|
|
{% for error in form.description.errors %}
|
|
<div class="invalid-feedback d-block">{{ error }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
|
|
<div class="d-grid gap-2 mt-4">
|
|
<button class="btn btn-primary" type="submit">
|
|
Update
|
|
</button>
|
|
<a class="btn btn-outline-secondary"
|
|
href="{% url 'coa-list' request.dealer.slug request.entity.slug %}">
|
|
Back
|
|
</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |