From b6502efd5ce59c024c522bcba46e141074117920 Mon Sep 17 00:00:00 2001 From: Panyaphorn Promchat <65160014@go.buu.ac.th> Date: Mon, 24 Mar 2025 19:17:02 +0700 Subject: [PATCH] Initial commit --- routes/auth.js | 2 +- views/customer/bookingSummary.ejs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/routes/auth.js b/routes/auth.js index 51cf497..397bccf 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -19,7 +19,7 @@ router.post('/logout', (req, res) => { if (err) { return res.status(500).send("Logout failed"); } - res.redirect('/'); // Redirect to the home or login page after logout + res.redirect('/'); //ไปหน้า login }); }); diff --git a/views/customer/bookingSummary.ejs b/views/customer/bookingSummary.ejs index 24f2f8e..70290ab 100644 --- a/views/customer/bookingSummary.ejs +++ b/views/customer/bookingSummary.ejs @@ -114,13 +114,6 @@ </form> <% } %> - <form action="/customer/updateNote" method="POST"> - <input type="hidden" name="appointmentId" value="<%= appointment.appointment_id %>"> - <textarea name="note" rows="3" cols="50"><%= appointment.note || '' %></textarea> - <br> - <button type="submit" class="btn btn-primary">บันทึกหมายเหตุ</button> - </form> - <p class="alert-info">กรุณามาก่อนเวลา 10 นาที</p> </div> -- GitLab