A
Anonymous

Order Details Component - Copy this Html, Tailwind Component to your project

This is my order detail page make its UI design attractive and responsive .<! your_app/templates/order_detail.html > <!DOCTYPE html> <html> <head> <title>Order Details</title> <! Add your CSS here > </head> <body> <h1>Order Details</h1> <p><strong>Order ID:</strong> {{ order.id }}</p> <p><strong>Branch:</strong> {{ order.branch.name }}</p> <p><strong>Entry User:</strong> {{ order.entry_user.username }}</p> <p><strong>Customer:</strong> {{ order.customer.name }}</p> <p><strong>Total Price:</strong> {{ order.total_price }}</p> <p><strong>Total Discount:</strong> {{ order.total_discount }}</p> <p><strong>Created At:</strong> {{ order.created_at }}</p> <h2>Order Items</h2> <table border="1"> <thead> <tr> <th>Medicine</th> <th>Price</th> <th>Quantity</th> <th>Discount (%)</th> <th>Total Discount Amount</th> <th>Total Price</th> </tr> </thead> <tbody> {% for item in order_items %} <tr> <td>{{ item.medicine.name }}</td> <td>{{ item.price }}</td> <td>{{ item.unit_quantity }}</td> <td>{{ item.discount_percentage }}</td> <td>{{ item.total_discount_amount }}</td> <td>{{ item.get_total_item_price }}</td> </tr> {% endfor %} </tbody> </table> <a href="{% url 'dashboard' order.branch.id %}">Back to Dashboard</a> </body> </html>

Prompt
Component Preview

About

Order Details Component - View detailed order info, including ID, customer, total price, and itemized list. Built with HTML and Tailw. Free code available!

Share

Last updated 1 month ago