plans history ui

This commit is contained in:
Faheedkhan 2025-07-30 12:54:56 +03:00
parent 88d0ff814b
commit 788396eee4
4 changed files with 5 additions and 3 deletions

View File

@ -10365,7 +10365,9 @@ def upload_cars(request, dealer_slug, pk=None):
f"User {user_username} retrieved ItemTransactionModel PK: {pk} for car upload."
)
item = get_object_or_404(ItemTransactionModel, pk=pk)
po_item = models.PoItemsUploaded.objects.get(dealer=dealer, item=item)
response = redirect("upload_cars", dealer_slug=dealer_slug, pk=pk)
if po_item.status == "uploaded":
messages.add_message(request, messages.ERROR, "Item already uploaded.")

View File

@ -11,7 +11,7 @@
<div class="col-auto">
<div class="row g-2 g-sm-3">
<div class="col-auto">
<a href="{% url 'order_list' %}" class="btn btn-phoenix-success"><span class="fas fa-list me-2"></span>{{ _("Orders") }}</a>
<a href="{% url 'order_list' %}" class="btn btn-phoenix-success"><span class="fas fa-clipboard-list me-2"></span>{{ _("Plans History") }}</a>
</div>
<div class="col-auto">
<a href="{% url 'billing_info' %}" class="btn btn-phoenix-info"><span class="fas fa-credit-card me-2"></span>{{ _("Billing Information") }}</a>

View File

@ -5,7 +5,7 @@
{% block body %}
{% block order_header %}
<h3 class="mt-4">
<i class="fa-solid fa-list me-2"></i>{% trans "List of orders" %}
{% trans "Plan Purchase History" %}<i class="fa-solid fa-clipboard-list ms-2 text-primary"></i>
</h3>
{% endblock %}
{% if object_list %}

View File

@ -92,7 +92,7 @@
{{ _("Delete") }}
<i class="fas fa-trash"></i>
</button>
<a class="btn btn-sm btn-phoenix-secondary"
<a class="btn btn-sm btn-phoenix-secondary me-1"
href="{% url 'user_list' request.dealer.slug %}">
{{ _("Back to List") }}
<i class="fa-regular fa-circle-left"></i>