Created
February 11, 2013 18:47
-
-
Save thePunderWoman/4756583 to your computer and use it in GitHub Desktop.
Example form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="addAddress"> | |
<h2>Add an Address</h2> | |
<form class="admin_form" id="addressform" method="post" action="/Admin/Customer/AddAddress"> | |
<input type="hidden" name="id" value="@cust.ID" data-default="@cust.ID" /> | |
<label for="first"> | |
First Name | |
<input id="first" name="first" type="text" value="@cust.fname" data-default="@cust.fname" placeholder="Customer First Name" required title="Enter a First name" /> | |
</label> | |
<label for="last"> | |
Last Name | |
<input id="last" name="last" type="text" value="@cust.lname" data-default="@cust.lname" placeholder="Customer Last Name" required title="Enter a Last name" /> | |
</label> | |
<label for="street1"> | |
Street | |
<input id="street1" name="street1" type="text" placeholder="Street address" required title="Enter a Street address" /> | |
</label> | |
<label for="street2"> | |
Street 2 | |
<input id="street2" name="street2" type="text" placeholder="(Optional) Street Address Line 2" /> | |
</label> | |
<label for="city"> | |
City | |
<input id="city" name="city" type="text" placeholder="City" required title="Enter a City name" /> | |
</label> | |
<label for="state"> | |
State/Province | |
<select name="state" id="state" required="required" title="Select a State/Province"> | |
<option value="0">- Select State/Province -</option> | |
@foreach (Admin.Country country in countries) { | |
<optgroup label="@country.name"> | |
@foreach (Admin.State state in country.getProvinces()) { | |
<option value="@state.stateID">@(String.Format("{0} - {1}", state.abbr, state.state1))</option> | |
} | |
</optgroup> | |
} | |
</select> | |
</label> | |
<label for="postalcode"> | |
Postal Code | |
<input id="postalcode" name="postalcode" type="text" placeholder="Postal Code" required title="Enter a Postal code" /> | |
</label> | |
<label for="residential"> | |
<input type="checkbox" name="residential" id="residential" value="true" checked="checked" data-default="checked" /> | |
Residential Address? | |
</label> | |
<input type="submit" id="btnAddAddress" class="button" value="Save" /> | |
<input type="reset" id="btnResetAddress" class="button cancel" value="Cancel" /> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment