Skip to content

Commit 0d0ffaf

Browse files
authored
Update README.md
1 parent ab141f7 commit 0d0ffaf

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,31 @@
2828

2929
</p>
3030
```HTML
31-
<h1>Hello</h1>
31+
<% include ../partials/header %>
32+
<div class="row">
33+
<h1 style="text-align: center">Create a New Campground</h1>
34+
<div style="width: 30%; margin: 25px auto;">
35+
<form action="/campgrounds" method="POST" enctype="multipart/form-data">
36+
<div class="form-group">
37+
<input class="form-control" type="text" name="campground[name]" placeholder="name">
38+
</div>
39+
<div class="form-group">
40+
<label for="image">Image</label>
41+
<input type="file" id="image" name="image" accept="image/*" required>
42+
</div>
43+
<div class="form-group">
44+
<input class="form-control" type="text" name="campground[description]" placeholder="description">
45+
</div>
46+
<div class="form-group">
47+
<button class="btn btn-lg btn-primary btn-block">Submit!</button>
48+
</div>
49+
</form>
50+
<a href="/campgrounds">Go Back</a>
51+
</div>
52+
</div>
53+
<% include ../partials/footer %>
54+
55+
3256
```
3357
<hr>
3458
<h6>Thanks</h6>

0 commit comments

Comments
 (0)