diff --git a/routes/auth.js b/routes/auth.js index 51cf4977fa37db01512d7306aa4577b237a7b224..397bccfd8a0ca2489dc418d88414095ce838b290 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 24f2f8e03ff75377b262bf344e4f922bc40caa76..70290ab8de26437997805eb32c1d4b41fc06b0d5 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>