Merge pull request 'account create missing coa_pk arguments' (#230) from frontend into main
Reviewed-on: #230
This commit is contained in:
commit
ab239d3883
@ -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 |
@ -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>
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user