Gitlab@Informatics

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

Project Round 3

parent 7ab8d658
No related branches found
No related tags found
No related merge requests found
...@@ -19,5 +19,6 @@ router.post('/create', tourController.createTour); // บันทึกทั ...@@ -19,5 +19,6 @@ router.post('/create', tourController.createTour); // บันทึกทั
//แก้ไขทัวร์ //แก้ไขทัวร์
router.get('/edit/:id', tourController.getEditTour); // หน้ารายละเอียดของทัวร์ router.get('/edit/:id', tourController.getEditTour); // หน้ารายละเอียดของทัวร์
router.get('/post/:id', tourController.postEditTour); // บันทึกทัวร์ลงฐานข้อมูล
module.exports = router; module.exports = router;
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= tour.name %> - Tour Details</title> <title><%= tour.name %> - Tour Details</title>
<link rel="stylesheet" href="/css/styles.css"> <link rel="stylesheet" href="/css/login.css">
</head> </head>
<body> <body>
<header> <header>
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<h2>Description</h2> <h2>Description</h2>
<p><%= tour.description %></p> <p><%= tour.description %></p>
<p>Price: <%= tour.price %> THB</p> <p>Price: <%= tour.price %> THB</p>
<a href="/" class="btn-edit">ย้อนกลับ</a>
</section> </section>
<footer> <footer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment