Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 1a4c4c0c authored by 65160394's avatar 65160394
Browse files

Project Round 8

parent 19b861c6
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<nav> <nav>
<% if (session.id) { %> <% if (session.id) { %>
<a href="/create" class="btn-create">Create Tour</a> <a href="/create" class="btn-create">Create Tour</a>
<a href="/createbooking" class="btn-create">Create Booking</a>
<% } %> <% } %>
<form action="/search" method="GET" class="search-container"> <form action="/search" method="GET" class="search-container">
<input type="text" name="query" placeholder="Search for tours..." required> <input type="text" name="query" placeholder="Search for tours..." required>
...@@ -20,8 +21,8 @@ ...@@ -20,8 +21,8 @@
</form> </form>
<% if (session && session.userId) { %> <!-- ตรวจสอบ session --> <% if (session && session.userId) { %> <!-- ตรวจสอบ session -->
<a href="/logout">Logout</a>
<a href="/my-bookings">My-Booking</a> <a href="/my-bookings">My-Booking</a>
<a href="/logout">Logout</a>
<% } else { %> <% } else { %>
<a href="/login" class="login-btn">Login</a> <!-- ถ้ายังไม่ได้ login --> <a href="/login" class="login-btn">Login</a> <!-- ถ้ายังไม่ได้ login -->
<% } %> <% } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment