From 4e45f9756cf057f81d9565646805148d01427131 Mon Sep 17 00:00:00 2001
From: 65160270 <65160270@go.buu.ac.th>
Date: Mon, 24 Mar 2025 14:47:41 +0700
Subject: [PATCH] update-edit

---
 public/css/style.css    | 16 ++++++++++++++++
 views/order-history.ejs |  5 +++++
 2 files changed, 21 insertions(+)

diff --git a/public/css/style.css b/public/css/style.css
index 2ce926d..3f81362 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -434,4 +434,20 @@ footer {
 
 .search-form button:hover {
     background-color: #3d38b1;
+}
+
+.edit-order-btn {
+    background-color: #ffc107;
+    color: black;
+    padding: 5px 10px;
+    text-decoration: none;
+    border-radius: 5px;
+    display: inline-block;
+    margin-left: 5px;
+    border: 1px solid #ffc107;
+}
+
+.edit-order-btn:hover {
+    background-color: #e0a800;
+    border-color: #e0a800;
 }
\ No newline at end of file
diff --git a/views/order-history.ejs b/views/order-history.ejs
index 6bedd55..a2da233 100644
--- a/views/order-history.ejs
+++ b/views/order-history.ejs
@@ -22,6 +22,11 @@
                         <p class="order-total">Total: ฿<%= order.total_amount.toLocaleString() %></p>
                         <a href="/order/detail/<%= order.id %>" class="view-detail-btn">View Details</a>
                     </div>
+                    <div class="order-footer">
+                        <p class="order-total">Total: ฿<%= order.total_amount.toLocaleString() %></p>
+                        <a href="/order/detail/<%= order.id %>" class="view-detail-btn">View Details</a>
+                        <a href="/" class="edit-order-btn">Edit</a> <!-- ปุ่ม Edit -->
+                    </div>
                 </div>
             <% }); %>
         </div>
-- 
GitLab