account create missing coa_pk arguments #230

Merged
ismail merged 3 commits from frontend into main 2025-09-07 17:13:53 +03:00
7 changed files with 4 additions and 3 deletions

View File

@ -4366,6 +4366,7 @@ class AccountListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["url_kwargs"] = self.kwargs
context["coa_pk"] = self.kwargs["coa_pk"]
return context

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

View File

@ -46,7 +46,7 @@
</section>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{% trans "Our Refund Policy" %}</h5>

View File

@ -9,7 +9,7 @@
</div>
<div class="flex-grow-1">
<h5 class="fw-bold mb-0">
{{ coa_model.name }}
{% if coa_model.is_default %}
<span class="badge bg-light text-primary ms-2 d-none d-sm-inline">{% trans 'DEFAULT' %}</span>
{% endif %}

View File

@ -200,7 +200,7 @@
</div>
</div>
{% else %}
{% url "account_create" request.dealer.slug as create_account_url %}
{% url 'account_create' request.dealer.slug coa_pk as create_account_url %}
{% include "empty-illustration-page.html" with value="account" url=create_account_url %}
{% endif %}
{% endblock %}