@model TrackerLibrary.Models.PrizeModel @{ ViewBag.Title = "Create"; }

Create A New Prize

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PlaceNumber, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.PlaceNumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PlaceNumber, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PlaceName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.PlaceName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PlaceName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PrizeAmount, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.PrizeAmount, new { htmlAttributes = new { @class = "form-control", @value = 0 } }) @Html.ValidationMessageFor(model => model.PrizeAmount, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PrizePercentage, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.PrizePercentage, new { htmlAttributes = new { @class = "form-control", @value = 0 } }) @Html.ValidationMessageFor(model => model.PrizePercentage, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }