Skip to content

Commit

Permalink
Add input fields to search form
Browse files Browse the repository at this point in the history
Enable zipcode field. Disable other fields until their logic is added to
server.js. Issue #7
  • Loading branch information
CodeWritingCow committed Dec 16, 2017
1 parent 6da9777 commit 77d0731
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions views/partials/searchForm.hbs
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
<form action="/search" method="POST">
<label for="zipcode">Zipcode</label>
<input type="text" name="zipcode" placeholder="zipcode">
<input type="text" name="borough" placeholder="borough">
<!-- <label for="borough">Borough</label>
<select id="borough" name="borough">
<option value="" disabled selected>None</option>
<option value="Bronx">Bronx</option>
<option value="Brooklyn">Brooklyn</option>
<option value="Manhattan">Manhattan</option>
<option value="Queens">Queens</option>
<option value="Staten Island">Staten Island</option>
</select> -->
<fieldset>
<label for="name">Business Name</label>
<input disabled type="text" name="street" placeholder="Business name">
</fieldset>

<fieldset>
<label for="zipcode">Zipcode</label>
<input type="text" name="zipcode" placeholder="zipcode">

<label for="street">Street</label>
<input disabled type="text" name="street" placeholder="street address">

<label for="city">City</label>
<input disabled type="text" name="city" placeholder="city">

<label for="borough">Borough</label>
<select disabled id="borough" name="borough">
<option value="" disabled selected>None</option>
<option value="Bronx">Bronx</option>
<option value="Brooklyn">Brooklyn</option>
<option value="Manhattan">Manhattan</option>
<option value="Queens">Queens</option>
<option value="Staten Island">Staten Island</option>
</select>
</fieldset>

<fieldset>
<label for="startDate">Start:</label>
<input disabled type="date" name="startDate">
<label for="endDate">End:</label>
<input disabled type="date" name="endDate">
</fieldset>

<input type="submit" value="Search">
</form>

0 comments on commit 77d0731

Please sign in to comment.