Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created February 13, 2017 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcnzer/aa7726a02a58687f7a389b995208f8d7 to your computer and use it in GitHub Desktop.
Save bcnzer/aa7726a02a58687f7a389b995208f8d7 to your computer and use it in GitHub Desktop.
<form asp-controller="BookDetails" asp-action="BookDetail" id="bookForm" method="post">
@Html.AntiForgeryToken()
<!-- all my other form controls would be somewhere in here -->
<fieldset>
<label asp-for="IsHardcover" class="label"></label>
<label class="select">
<select asp-for="IsHardcover">
<option value="true">Yes</option>
<option value="false">No</option>
</select> <i></i>
</label>
<span asp-validation-for="IsHardcover" class="text-danger"></span>
</fieldset>
<fieldset>
<label asp-for="StorageLocations" class="label"></label>
<label class="select" >
<select asp-for="StorageLocations">
</select> <i></i>
</label>
</fieldset>
<button id="btnSave" type="submit" class="btn btn-primary">Save</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment