File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
</p >
30
30
``` 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
+
32
56
```
33
57
<hr >
34
58
<h6 >Thanks</h6 >
You can’t perform that action at this time.
0 commit comments