From fa27730c3377ee20f0a6e8627014098ca44d8b2f Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Thu, 20 Mar 2025 17:39:59 +0700 Subject: [PATCH] Project Round 7 --- views/createtour.ejs | 12 ++++++------ views/edittour.ejs | 10 +++++----- views/index.ejs | 1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/views/createtour.ejs b/views/createtour.ejs index 6a179ce..4a277a9 100644 --- a/views/createtour.ejs +++ b/views/createtour.ejs @@ -8,26 +8,26 @@ </head> <body> <main> - <h1>Create New Tour</h1> + <h1>สร้างโปรแกรม Tour</h1> <br> <form action="/create" method="POST"> <div> - <label for="tourName">Tour Name:</label> + <label for="tourName">ชื่อโปรแกรมทัวร์:</label> <input type="text" id="tourName" name="name" required> </div> <div> - <label for="tourDescription">Description:</label> + <label for="tourDescription">รายละเอียด:</label> <textarea id="tourDescription" name="description" required></textarea> </div> <div> - <label for="tourPrice">Price:</label> + <label for="tourPrice">ราคา:</label> <input type="text" id="tourPrice" name="price" required> </div> <div> - <label for="tourDuration">Duration (days):</label> + <label for="tourDuration">ระยะเวลา (วัน):</label> <input type="text" id="tourDuration" name="duration" required> </div> - <button type="submit">Create Tour</button> + <button type="submit">สร้างโปรแกรม Tour</button> </form> </main> </body> diff --git a/views/edittour.ejs b/views/edittour.ejs index 90bbc56..9d8a864 100644 --- a/views/edittour.ejs +++ b/views/edittour.ejs @@ -8,22 +8,22 @@ </head> <body> <main> - <h1>Edit Tour</h1> + <h1>แก้ไข Tour</h1> <form action="/edit/<%= tour.id %>" method="POST"> <div> - <label for="tourName">Tour Name:</label> + <label for="tourName">ชื่อโปรแกรมทัวร์ :</label> <input type="text" id="tourName" name="name" value="<%= tour.name %>" required> </div> <div> - <label for="tourDescription">Description:</label> + <label for="tourDescription">รายละเอียด:</label> <textarea id="tourDescription" name="description" required><%= tour.description %></textarea> </div> <div> - <label for="tourPrice">Price:</label> + <label for="tourPrice">ราคา:</label> <input type="number" id="tourPrice" name="price" value="<%= tour.price %>" required> </div> <div> - <label for="tourDuration">Duration (in days):</label> + <label for="tourDuration">ระยะเวลา (วัน):</label> <input type="number" id="tourDuration" name="duration" value="<%= tour.duration %>" required> </div> <button type="submit">Update Tour</button> diff --git a/views/index.ejs b/views/index.ejs index b1d8f2b..ccd1457 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -18,6 +18,7 @@ <input type="text" name="query" placeholder="Search for tours..." required> <button type="submit">Search</button> </form> + <a href="/my-bookings">My-Booking</a> <% if (session && session.userId) { %> <!-- ตรวจสอบ session --> <a href="/logout">Logout</a> <% } else { %> -- GitLab