Skip to content

Commit

Permalink
aligned sell form
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranErry committed Apr 14, 2019
1 parent 44bd7cc commit 1cdb52c
Showing 1 changed file with 44 additions and 27 deletions.
71 changes: 44 additions & 27 deletions views/sellForm.hbs
Original file line number Diff line number Diff line change
@@ -1,44 +1,61 @@
<br>
<h3>Start Selling</h3>
<form action="/sell/insert" method="post" enctype="multipart/form-data">

<!-- Title Input -->
<div class="input">
<label for="title">Title</label>
<input type="text" id="title" name="title">
<div class="form-group row">
<label for="title" class="col-sm-2 col-form-label">Title</label>
<div class="col-sm-10">
<input type="textf" id="title" name="title">
</div>
</div>

<!-- Price Input -->
<div class="input">
<label for="content">Price</label>
<input type="number" id="price" name="price">
<div class="form-group row">
<label for="content" class="col-sm-2 col-form-label">Price</label>
<div class="col-sm-10">
<input type="number" id="price" name="price">
</div>
</div>

<!-- Item Description Input -->
<div class="input">
<label for="author">Description</label>
<input type="text" id="description" name="description">
<div class="form-group row">
<label for="author" class="col-sm-2 col-form-label">Description</label>
<div class="col-sm-10">
<input type="text" id="description" name="description">
</div>
</div>

<!-- Image Input -->
<div class="input">
<label for="image">Image</label>
<input type="file" id="image" name="image">
<div class="form-group row">
<label for="image" class="col-sm-2 col-form-label">Image</label>
<div class="col-sm-10">
<input type="file" id="image" name="image">
</div>
</div>

<!-- Condition Dropdown -->
<div class="input">
<label for="condition"><strong>Book Condition</strong></label>
<select class="form-control" id="condition" name="condition">
<option value="new">New</option>
<option value="used-vg">Used - Very Good</option>
<option value="used-gd">Used - Good</option>
<option value="used-ac">Used - Acceptable</option>
</select>
<div class="form-group row">
<label for="condition" class="col-sm-2 col-form-label">Book Condition</label>
<div class="col-sm-5">
<select class="form-control" id="condition" name="condition">
<option value="new">New</option>
<option value="used-vg">Used - Very Good</option>
<option value="used-gd">Used - Good</option>
<option value="used-ac">Used - Acceptable</option>
</select>
</div>
</div>
<!-- Book Type Dropdown -->
<div class="input">
<label for="booktype"><strong>Book Type</strong></label>
<select class="form-control" id="booktype" name="booktype">
<option value="textbook">Textbook</option>
<option value="course-rr">Required Course Reading (non-textbook)</option>
<option value="other">Other (non-textbook)</option>
</select>
<div class="form-group row">
<label for="booktype" class="col-sm-2 col-form-label">Book Type</label>
<div class="col-sm-5">
<select class="form-control" id="booktype" name="booktype">
<option value="textbook">Textbook</option>
<option value="course-rr">Required Course Reading (non-textbook)</option>
<option value="other">Other (non-textbook)</option>
</select>
</div>
</div>
<button class="btn btn-primary" type="submit">Start Selling</button>
</form>

0 comments on commit 1cdb52c

Please sign in to comment.