add loading to payment checkout
This commit is contained in:
parent
de3f6cf558
commit
7d8ea79cc9
@ -186,6 +186,17 @@ class CustomerForm(forms.ModelForm):
|
|||||||
"address",
|
"address",
|
||||||
'image',
|
'image',
|
||||||
]
|
]
|
||||||
|
widgets = {
|
||||||
|
'title': forms.Select(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'first_name': forms.TextInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'last_name': forms.TextInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'email': forms.EmailInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'phone_number': forms.TextInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'national_id': forms.TextInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'dob': DateInput(attrs={'class': 'form-control form-control-sm', 'type': 'date'}),
|
||||||
|
'address': forms.Textarea(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
'image': forms.FileInput(attrs={'class': 'form-control form-control-sm'}),
|
||||||
|
}
|
||||||
# class CustomerForm(forms.Form):
|
# class CustomerForm(forms.Form):
|
||||||
# """
|
# """
|
||||||
# Represents a form for collecting customer information.
|
# Represents a form for collecting customer information.
|
||||||
@ -1025,6 +1036,7 @@ class LeadForm(forms.ModelForm):
|
|||||||
"hx-swap": "outerHTML",
|
"hx-swap": "outerHTML",
|
||||||
"hx-on::before-request": "document.querySelector('#id_id_car_model').setAttribute('disabled', true)",
|
"hx-on::before-request": "document.querySelector('#id_id_car_model').setAttribute('disabled', true)",
|
||||||
"hx-on::after-request": "document.querySelector('#id_id_car_model').removeAttribute('disabled')",
|
"hx-on::after-request": "document.querySelector('#id_id_car_model').removeAttribute('disabled')",
|
||||||
|
"hx-indicator": "#spinner",
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
required=True,
|
required=True,
|
||||||
|
|||||||
@ -2091,7 +2091,7 @@ class CustomerUpdateView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView
|
|||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def delete_customer(request, pk):
|
def delete_customer(request, slug):
|
||||||
"""
|
"""
|
||||||
Deletes a customer from the system and deactivates the corresponding user account.
|
Deletes a customer from the system and deactivates the corresponding user account.
|
||||||
|
|
||||||
@ -2107,7 +2107,7 @@ def delete_customer(request, pk):
|
|||||||
:return: A redirect response to the customer list page.
|
:return: A redirect response to the customer list page.
|
||||||
:rtype: HttpResponseRedirect
|
:rtype: HttpResponseRedirect
|
||||||
"""
|
"""
|
||||||
customer = get_object_or_404(models.Customer, pk=pk)
|
customer = get_object_or_404(models.Customer, slug=slug)
|
||||||
customer.deactivate_account()
|
customer.deactivate_account()
|
||||||
messages.success(request, _("Customer deactivated successfully"))
|
messages.success(request, _("Customer deactivated successfully"))
|
||||||
return redirect("customer_list")
|
return redirect("customer_list")
|
||||||
@ -3760,7 +3760,7 @@ def create_sale_order(request, pk):
|
|||||||
models.Car.objects.get(vin=item.item_model.name).mark_as_sold(request)
|
models.Car.objects.get(vin=item.item_model.name).mark_as_sold(request)
|
||||||
|
|
||||||
messages.success(request, "Sale Order created successfully")
|
messages.success(request, "Sale Order created successfully")
|
||||||
return redirect("estimate_detail", pk=pk)
|
return redirect("estimate_detail", pk=estimate.pk)
|
||||||
|
|
||||||
form = forms.SaleOrderForm()
|
form = forms.SaleOrderForm()
|
||||||
form.fields["estimate"].queryset = EstimateModel.objects.filter(pk=pk)
|
form.fields["estimate"].queryset = EstimateModel.objects.filter(pk=pk)
|
||||||
@ -4246,7 +4246,6 @@ def invoice_create(request, pk):
|
|||||||
form = forms.InvoiceModelCreateForm(
|
form = forms.InvoiceModelCreateForm(
|
||||||
entity_slug=entity.slug, user_model=entity.admin
|
entity_slug=entity.slug, user_model=entity.admin
|
||||||
)
|
)
|
||||||
|
|
||||||
form.initial.update(
|
form.initial.update(
|
||||||
{
|
{
|
||||||
"customer": estimate.customer,
|
"customer": estimate.customer,
|
||||||
@ -4255,6 +4254,7 @@ def invoice_create(request, pk):
|
|||||||
"unearned_account": dealer.settings.invoice_unearned_account,
|
"unearned_account": dealer.settings.invoice_unearned_account,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
print(dir(form.fields["customer"]))
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"form": form,
|
"form": form,
|
||||||
@ -4675,11 +4675,15 @@ def lead_create(request):
|
|||||||
form = forms.LeadForm()
|
form = forms.LeadForm()
|
||||||
form.filter_qs(dealer=dealer)
|
form.filter_qs(dealer=dealer)
|
||||||
|
|
||||||
make = request.GET.get("id_car_make", None)
|
if make := request.GET.get("id_car_make", None):
|
||||||
if make:
|
|
||||||
form.fields["id_car_model"].queryset = models.CarModel.objects.filter(
|
form.fields["id_car_model"].queryset = models.CarModel.objects.filter(
|
||||||
id_car_make=int(make)
|
id_car_make=int(make)
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
if first_make := form.fields["id_car_make"].queryset.first():
|
||||||
|
form.fields["id_car_model"].queryset = models.CarModel.objects.filter(
|
||||||
|
id_car_make=first_make.id_car_make
|
||||||
|
)
|
||||||
return render(request, "crm/leads/lead_form.html", {"form": form})
|
return render(request, "crm/leads/lead_form.html", {"form": form})
|
||||||
|
|
||||||
def lead_tracking(request):
|
def lead_tracking(request):
|
||||||
@ -4769,7 +4773,7 @@ class LeadUpdateView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView):
|
|||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
@permission_required("inventory.delete_lead", raise_exception=True)
|
@permission_required("inventory.delete_lead", raise_exception=True)
|
||||||
def LeadDeleteView(request, pk):
|
def LeadDeleteView(request, slug):
|
||||||
"""
|
"""
|
||||||
Handles the deletion of a Lead along with its associated customer and potentially
|
Handles the deletion of a Lead along with its associated customer and potentially
|
||||||
a related user account in the system. Ensures proper permissions and login
|
a related user account in the system. Ensures proper permissions and login
|
||||||
@ -4780,7 +4784,7 @@ def LeadDeleteView(request, pk):
|
|||||||
:param pk: The primary key identifier of the Lead to be deleted.
|
:param pk: The primary key identifier of the Lead to be deleted.
|
||||||
:return: An HTTP redirect response to the lead list page.
|
:return: An HTTP redirect response to the lead list page.
|
||||||
"""
|
"""
|
||||||
lead = get_object_or_404(models.Lead, pk=pk)
|
lead = get_object_or_404(models.Lead, slug=slug)
|
||||||
try:
|
try:
|
||||||
User.objects.get(email=lead.customer.email).delete()
|
User.objects.get(email=lead.customer.email).delete()
|
||||||
lead.customer.delete()
|
lead.customer.delete()
|
||||||
@ -5193,11 +5197,11 @@ class OpportunityCreateView(CreateView,SuccessMessageMixin, LoginRequiredMixin):
|
|||||||
dealer = get_user_type(self.request)
|
dealer = get_user_type(self.request)
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
# def get_form_kwargs(self):
|
||||||
kwargs = super().get_form_kwargs()
|
# kwargs = super().get_form_kwargs()
|
||||||
dealer = get_user_type(self.request)
|
# dealer = get_user_type(self.request)
|
||||||
kwargs["car"].queryset = models.Car.objects.filter(dealer=dealer,)
|
# kwargs["car"].queryset = models.Car.objects.filter(dealer=dealer,)
|
||||||
return kwargs
|
# return kwargs
|
||||||
|
|
||||||
# def get_initial(self):
|
# def get_initial(self):
|
||||||
# initial = super().get_initial()
|
# initial = super().get_initial()
|
||||||
|
|||||||
@ -1,11 +1,26 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load i18n static crispy_forms_filters %}
|
{% load i18n static crispy_forms_filters %}
|
||||||
|
{% block customcss %}
|
||||||
|
<style>
|
||||||
|
.htmx-indicator{
|
||||||
|
opacity:0;
|
||||||
|
transition: opacity 500ms ease-in;
|
||||||
|
}
|
||||||
|
.htmx-request .htmx-indicator{
|
||||||
|
opacity:1;
|
||||||
|
}
|
||||||
|
.htmx-request.htmx-indicator{
|
||||||
|
opacity:1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endblock customcss %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<h1>{% if object %}{{ _("Update") }}{% else %}{{ _("Create") }}{% endif %}</h1>
|
<h1>{% if object %}{{ _("Update") }}{% else %}{{ _("Create") }}{% endif %}</h1>
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col-sm-6 col-md-8">
|
<div class="col-sm-6 col-md-8">
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form|crispy }}
|
{{ form|crispy }}
|
||||||
@ -21,4 +36,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// First, create the spinner div (or use the existing one)
|
||||||
|
const spinner = document.createElement('div');
|
||||||
|
spinner.id = 'spinner';
|
||||||
|
spinner.className = 'htmx-indicator spinner-border inline-spinner';
|
||||||
|
spinner.setAttribute('role', 'status');
|
||||||
|
spinner.innerHTML = '<span class="visually-hidden">Loading...</span>';
|
||||||
|
|
||||||
|
// Find the form field you want to place it next to
|
||||||
|
// Replace 'id_your_field_name' with the actual ID of your form field
|
||||||
|
const targetField = document.getElementById('div_id_id_car_model');
|
||||||
|
|
||||||
|
if (targetField) {
|
||||||
|
// Insert the spinner right after the target field
|
||||||
|
targetField.parentNode.insertBefore(spinner, targetField.nextSibling);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -132,9 +132,7 @@
|
|||||||
{{ _("Action") }}
|
{{ _("Action") }}
|
||||||
</th>
|
</th>
|
||||||
<th class="text-end white-space-nowrap align-middle" scope="col"></th>
|
<th class="text-end white-space-nowrap align-middle" scope="col"></th>
|
||||||
</tr>
|
</tr>image
|
||||||
</thead>
|
|
||||||
<tbody class="list" id="lead-tables-body">
|
|
||||||
{% for lead in leads %}
|
{% for lead in leads %}
|
||||||
<!-- Delete Modal -->
|
<!-- Delete Modal -->
|
||||||
<div class="modal fade" id="deleteModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="deleteModalLabel" aria-hidden="true">
|
<div class="modal fade" id="deleteModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="deleteModalLabel" aria-hidden="true">
|
||||||
@ -159,7 +157,7 @@
|
|||||||
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
||||||
<td class="name align-middle white-space-nowrap ps-0">
|
<td class="name align-middle white-space-nowrap ps-0">
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<div><a class="fs-8 fw-bold" href="{% url 'lead_detail' lead.slug %}">{{lead.full_name}}</a>
|
<div><a class="fs-8 fw-bold" href="{% url 'lead_detail' lead.slug %}">{{lead.full_name|capfirst}}</a>
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<p class="mb-0 text-body-highlight fw-semibold fs-9 me-2"></p>
|
<p class="mb-0 text-body-highlight fw-semibold fs-9 me-2"></p>
|
||||||
{% if lead.status == "new" %}
|
{% if lead.status == "new" %}
|
||||||
|
|||||||
@ -41,7 +41,11 @@
|
|||||||
<div class="card-body d-flex flex-column justify-content-between pb-3">
|
<div class="card-body d-flex flex-column justify-content-between pb-3">
|
||||||
<div class="row align-items-center g-5 mb-3 text-center text-sm-start">
|
<div class="row align-items-center g-5 mb-3 text-center text-sm-start">
|
||||||
<div class="col-12 col-sm-auto mb-sm-2">
|
<div class="col-12 col-sm-auto mb-sm-2">
|
||||||
<div class="avatar avatar-5xl"><img class="rounded-circle" src="{{ customer.image.url }}" alt="" /></div>
|
<div class="avatar avatar-5xl">
|
||||||
|
{% if customer.image %}
|
||||||
|
<img class="rounded-circle" src="{{ customer.image.url }}" alt="" />
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-sm-auto flex-1">
|
<div class="col-12 col-sm-auto flex-1">
|
||||||
<h3>{{ customer.full_name }}</h3>
|
<h3>{{ customer.full_name }}</h3>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
{% if not car.ready %}
|
{% if not car.ready %}
|
||||||
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
||||||
<i class="fa-solid fa-circle-info fs-6"></i>
|
<i class="fa-solid fa-circle-info fs-6"></i>
|
||||||
<p class="mb-0 flex-1">{{ _("This car information is not complete , please add colors and finances before making it ready for sale .") }}</p>
|
<p class="mb-0 flex-1">{{ _("This car information is not complete , please add colors and finances before making it ready for sale .") }}<a class="ms-3 text-body-primary fs-9" href="{% url 'add_color' car.slug %}"> {{ _("Add Color") }} </a></p>
|
||||||
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<h1 class="mb-2 mb-lg-0">{% trans "Payment Failed" %}</h1>
|
<h1 class="mb-2 mb-lg-0">{% trans "Payment Failed" %}</h1>
|
||||||
<nav class="breadcrumbs">
|
<nav class="breadcrumbs">
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="">{% trans "Home"%}</a></li>
|
<li><a href="{% url 'home' %}">{% trans "Home"%}</a></li>
|
||||||
<li class="current">{% trans "Failed"%}</li>
|
<li class="current">{% trans "Failed"%}</li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
@ -22,13 +22,13 @@
|
|||||||
<div class="container text-center" data-aos="fade-up">
|
<div class="container text-center" data-aos="fade-up">
|
||||||
<div class="py-5">
|
<div class="py-5">
|
||||||
<i class="bi bi-x-circle-fill text-danger" style="font-size: 5rem;"></i>
|
<i class="bi bi-x-circle-fill text-danger" style="font-size: 5rem;"></i>
|
||||||
<h2 class="mt-4">{% trans "Payment Failed"%}</h2>
|
<h2 class="mt-4">{% trans "Payment Failed"%}</h2>
|
||||||
{% if message %}
|
{% if message %}
|
||||||
<p class="lead">{{message}}.</p>
|
<p class="lead">{{message}}.</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="lead">{% trans "We couldn't process your payment. Please try again"%}.</p>
|
<p class="lead">{% trans "We couldn't process your payment. Please try again"%}.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="" class="btn btn-primary mt-3">
|
<a href="{% url 'home' %}" class="btn btn-primary mt-3">
|
||||||
<i class="bi bi-house-door"></i> {% trans "Back to Home"%}
|
<i class="bi bi-house-door"></i> {% trans "Back to Home"%}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
<i class="bi bi-house-door"></i> View Invoice
|
<i class="bi bi-house-door"></i> View Invoice
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="" class="btn btn-primary mt-3">
|
<a href="{% url 'home' %}" class="btn btn-primary mt-3">
|
||||||
<i class="bi bi-house-door"></i> Back to Home
|
<i class="bi bi-house-door"></i> Back to Home
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -52,7 +52,6 @@
|
|||||||
<h1 class="text-center mb-5">{{ _("Choose Your Plan")}}</h1>
|
<h1 class="text-center mb-5">{{ _("Choose Your Plan")}}</h1>
|
||||||
<form method="POST" action="{% url 'submit_plan' %}" id="wizardForm">
|
<form method="POST" action="{% url 'submit_plan' %}" id="wizardForm">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<!-- Step 1: Plan Selection -->
|
<!-- Step 1: Plan Selection -->
|
||||||
<div class="step" id="step1">
|
<div class="step" id="step1">
|
||||||
<h4 class="mb-4">1. {{ _("Select a Plan")}}</h4>
|
<h4 class="mb-4">1. {{ _("Select a Plan")}}</h4>
|
||||||
@ -208,6 +207,27 @@
|
|||||||
{% block customJS %}
|
{% block customJS %}
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
const form = document.getElementById('wizardForm');
|
||||||
|
|
||||||
|
form.addEventListener('submit', function(e) {
|
||||||
|
e.preventDefault(); // Prevent default form submission
|
||||||
|
|
||||||
|
// Show loading alert
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Processing...',
|
||||||
|
html: 'Please wait while we submit your form',
|
||||||
|
allowOutsideClick: false,
|
||||||
|
didOpen: () => {
|
||||||
|
Swal.showLoading();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Submit the form after a slight delay to ensure Swal is shown
|
||||||
|
setTimeout(() => {
|
||||||
|
form.submit();
|
||||||
|
}, 100);
|
||||||
|
});
|
||||||
|
|
||||||
const radios = document.querySelectorAll('.btn-check');
|
const radios = document.querySelectorAll('.btn-check');
|
||||||
radios.forEach(radio => {
|
radios.forEach(radio => {
|
||||||
radio.addEventListener('change', function () {
|
radio.addEventListener('change', function () {
|
||||||
|
|||||||
@ -17,14 +17,14 @@
|
|||||||
{% if not items %}
|
{% if not items %}
|
||||||
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
||||||
<i class="fa-solid fa-circle-info fs-6"></i>
|
<i class="fa-solid fa-circle-info fs-6"></i>
|
||||||
<p class="mb-0 flex-1">{{ _("Please add at least one car before creating a quotation.") }}</p>
|
<p class="mb-0 flex-1">{{ _("Please add at least one car before creating a quotation.") }}<a class="ms-3 text-body-primary fs-9" href="{% url 'car_add' %}"> {{ _("Add Car") }} </a></p>
|
||||||
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not customer_count %}
|
{% if not customer_count %}
|
||||||
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
|
||||||
<i class="fa-solid fa-circle-info fs-6"></i>
|
<i class="fa-solid fa-circle-info fs-6"></i>
|
||||||
<p class="mb-0 flex-1"> {{ _("Please add at least one customer before creating a quotation.") }}</p>
|
<p class="mb-0 flex-1"> {{ _("Please add at least one customer before creating a quotation.") }}<a class="ms-3 text-body-primary fs-9" href="{% url 'customer_create' %}"> {{ _("Add Customer") }} </a></p>
|
||||||
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<button id="addMoreBtn" class="btn btn-sm btn-primary"><i class="fa-solid fa-plus me-2"></i> {{ _("Add More")}}</button>
|
<button id="addMoreBtn" class="btn btn-sm btn-primary"><i class="fa-solid fa-plus me-2"></i> {{ _("Add More")}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -67,7 +67,7 @@
|
|||||||
<a href="{% url 'estimate_list' %}" class="btn btn-danger"><i class="fa-solid fa-ban me-1"></i> {% trans "Cancel" %}</a>
|
<a href="{% url 'estimate_list' %}" class="btn btn-danger"><i class="fa-solid fa-ban me-1"></i> {% trans "Cancel" %}</a>
|
||||||
</div> {% endcomment %}
|
</div> {% endcomment %}
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
|
|
||||||
<button class="btn btn-sm btn-success me-2" type="submit"><i class="fa-solid fa-floppy-disk me-1"></i>
|
<button class="btn btn-sm btn-success me-2" type="submit"><i class="fa-solid fa-floppy-disk me-1"></i>
|
||||||
<!--<i class="bi bi-save"></i> -->
|
<!--<i class="bi bi-save"></i> -->
|
||||||
{{ _("Save") }}
|
{{ _("Save") }}
|
||||||
@ -75,9 +75,9 @@
|
|||||||
|
|
||||||
<a href="{{request.META.HTTP_REFERER}}" class="btn btn-sm btn-danger"><i class="fa-solid fa-ban me-1"></i>{% trans "Cancel" %}</a>
|
<a href="{{request.META.HTTP_REFERER}}" class="btn btn-sm btn-danger"><i class="fa-solid fa-ban me-1"></i>{% trans "Cancel" %}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user