From d215e76486d1332b2f2dbbb961a71786bd17a9b9 Mon Sep 17 00:00:00 2001 From: SadhanaV Date: Sat, 19 Oct 2024 05:47:47 +0530 Subject: [PATCH 1/2] Update dashboard.html Replaced Product Display code with Vendor details code. --- templates/dashboard.html | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/templates/dashboard.html b/templates/dashboard.html index da5c435..1ba9edb 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1,6 +1,5 @@ - + - @@ -10,37 +9,16 @@
-

Purchase Order Dashboard

+

Vendor Details Dashboard

- - - - - - - + + + + - - - {% for order in purchase_orders %} - - - - - - - - - - - {% empty %} - - - - {% endfor %}
PO Number Vendor NameStatusOrder DateDelivery DateQuality RatingIssue DateAcknowledgment DateVendor ContactID/CodeAcknowledgementFulfillment Rate
{{ order.po_number }}{{ order.vendor.name }}{{ order.status }}{{ order.order_date }}{{ order.delivery_date }}{{ order.quality_rating }}{{ order.issue_date }}{{ order.acknowledgment_date }}
No purchase orders available.
From c8da62ada8decb9b53e55f341a4aa0410a972154 Mon Sep 17 00:00:00 2001 From: SadhanaV Date: Sat, 19 Oct 2024 05:49:37 +0530 Subject: [PATCH 2/2] Update views.py Linked Vendor HTML to code --- api/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 25b4a4f..a49ee20 100644 --- a/api/views.py +++ b/api/views.py @@ -180,4 +180,5 @@ def dashboard(request): } # Render the data to an HTML template - return render(request, 'dashboard.html', context) \ No newline at end of file + return render(request, 'dashboard.html', context) + return render(request,'vendor.html')