-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from moonpatel/branch1
boilerplate added
- Loading branch information
Showing
8 changed files
with
39 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
<%= c.title %> | ||
</title> | ||
</head> | ||
|
||
<body> | ||
<h1><%= c.title %></h1> | ||
<p> | ||
Title: <%= c.title %> | ||
<% layout('layouts/boilerplate.ejs') %> | ||
<h1><%= c.title %></h1> | ||
<p> | ||
Title: <%= c.title %> | ||
<br> | ||
Location: <%= c.location %> | ||
</p> | ||
<p> | ||
<a href="/campgrounds">Back</a> | ||
<a href="/campgrounds/<%= c._id %>/edit">Edit campground</a> | ||
<form action="/campgrounds/<%= c._id %>?_method=DELETE" method="post"> | ||
<button>Delete Campground</button> | ||
</form> | ||
</p> | ||
</body> | ||
|
||
</html> | ||
Location: <%= c.location %> | ||
</p> | ||
<p> | ||
<a href="/campgrounds">Back</a> | ||
<a href="/campgrounds/<%= c._id %>/edit">Edit campground</a> | ||
<form action="/campgrounds/<%= c._id %>?_method=DELETE" method="post"> | ||
<button>Delete Campground</button> | ||
</form> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Edit campground</title> | ||
</head> | ||
<body> | ||
<% layout('layouts/boilerplate.ejs') %> | ||
|
||
|
||
<h1>Edit campground</h1> | ||
<form action="/campgrounds/<%= cg._id %>?_method=PUT" method="post"> | ||
<input type="text" name="campground[title]" value="<%=cg.title%>" placeholder="Title"> | ||
<input type="text" name="campground[location]" value="<%=cg.location%>" placeholder="Location"> | ||
<button>Edit campground</button> | ||
</form> | ||
</body> | ||
</html> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Home</title> | ||
</head> | ||
<body> | ||
<h1>YelpCamp</h1> | ||
</body> | ||
</html> | ||
<% layout('./layouts/boilerplate.ejs') %> | ||
<h1>YelpCamp</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> YelpCamp </title> | ||
</head> | ||
<body> | ||
<%- body -%> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>New Campground</title> | ||
<style> | ||
input, button { | ||
display: block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<% layout('layouts/boilerplate.ejs') %> | ||
|
||
|
||
<h1>Add a new Campground</h1> | ||
<form action="/campgrounds" method="post"> | ||
<input type="text" name="campground[title]" id="title" placeholder="Title"> | ||
<input type="text" name="campground[location]" id="location" placeholder="Location"> | ||
<button>Submit</button> | ||
</form> | ||
</body> | ||
</html> |