<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit Tour</title>
<link rel="stylesheet" href="/css/edittour.css">
</head>
<body>
<main>
<h1>Edit Tour</h1>
<br>
<form action="/edit/<%= tour.id %>" method="POST">
<div>
<label for="tourName">Tour Name:</label>
<input type="text" id="tourName" name="name" value="<%= tour.name %>" required>
</div>
<div>
<label for="tourDescription">Description:</label>
<textarea id="tourDescription" name="description" required><%= tour.description %></textarea>
</div>
<div>
<label for="tourPrice">Price:</label>
<input type="number" id="tourPrice" name="price" value="<%= tour.price %>" required>
</div>
<div>
<label for="tourDuration">Duration (in days):</label>
<input type="number" id="tourDuration" name="duration" value="<%= tour.duration %>" required>
</div>
<button type="submit">Update Tour</button>
</form>
</main>
</body>
</html>