Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 3aa2b9b6 authored by 65160394's avatar 65160394
Browse files

Project Round 9

parent 4b707dd4
Branches
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<header> <header>
<h1>Welcome to JourneyHub</h1> <h1>Welcome to JourneyHub</h1>
<nav> <nav>
<% if (session && session.id) { %> <% if (session && session.userId) { %>
<a href="/create" class="btn-create">Create Tour</a> <a href="/create" class="btn-create">Create Tour</a>
<a href="/create-booking" class="btn-create">Create Booking</a> <a href="/create-booking" class="btn-create">Create Booking</a>
<% } %> <% } %>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<li> <li>
<a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB <a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB
<% if (session && session.id) { %> <% if (session && session.userId) { %>
<a href="/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ --> <a href="/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ -->
<a href="/delete/<%= tour.id %>" class="btn-delete">Delete</a> <!-- ปุ่มสำหรับลบทัวร์ --> <a href="/delete/<%= tour.id %>" class="btn-delete">Delete</a> <!-- ปุ่มสำหรับลบทัวร์ -->
<% } %> <% } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment