-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.ejs
43 lines (36 loc) · 1.68 KB
/
new.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<%layout("/layouts/boilerPlate.ejs")%>
<div class="row">
<div class="col-8 offset-2" >
<br></br>
<body>
<h3>Create A New Listing</h3>
<form method="POST" action="/listings">
<div class="mb-3 " >
<label for="title" class="form-label">Title</label>
<input id="title" name="listing[title]" placeholder="Add a catchy title" type="text" class="form-control">
</div>
<div class="mb-3 ">
<label for="description" class="form-label">Description</label>
<textarea id="description" name="listing[description]" placeholder="Enter description" class="form-control"></textarea>
</div>
<div class="mb-3">
<label for="image" class="form-label">Image</label>
<input id="image" name="listing.image.url" placeholder="Enter image URL/Link" type="text" class="form-control">
</div>
<div class="mb-3 col-4">
<label for="price" class="form-label">Price</label>
<input id="price" name="listing[price]" placeholder="eg.1200" type="number" class="form-control">
</div>
<div class="mb-3 col-8">
<label for="country" class="form-label">Country</label>
<input id="country" name="listing[country]" placeholder="India" type="text" class="form-control">
</div>
<div class="mb-3">
<label for="location" class="form-label">Location</label>
<input id="location" name="listing[location]" placeholder="Pune" type="text" class="form-control">
</div>
<button class="btn btn-dark add-btn mt-3">ADD</button>
</form>
</body>
</div>
</div>