Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model MaterialSolutions.Models.ViewModels.ForkliftViewModel
- @{
- ViewBag.Title = "Edit";
- }
- <br />
- @*<h2>Edit</h2>*@
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <br />
- <h3>Attributes/Properties</h3>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => model.Forklift.ForkliftID)
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.SerialNumber, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.SerialNumber, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.SerialNumber, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.ModelNumber, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.ModelNumber, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.ModelNumber, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Manufacturer, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @{
- List<SelectListItem> test = new List<SelectListItem>();
- test.Add(new SelectListItem
- {
- Text = "Test",
- Value = "1"
- });
- }
- @Html.DropDownListFor(model => model.Forklift.ManufacturerID, Model.ManufacturerDropdownList, "-- Select Location --", new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.Forklift.ManufacturerID, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Power, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EnumDropDownListFor(model => model.Forklift.Power, "-- Select Power --", new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.Forklift.Power, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Capacity, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.Capacity, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.Capacity, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Year, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.Year, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.Year, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.LoweredHeight, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.LoweredHeight, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.LoweredHeight, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.RaisedHeight, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.RaisedHeight, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.RaisedHeight, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Location, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.DropDownListFor(model => model.Forklift.LocationID, Model.LocationDropdownList, "-- Select Location --", new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.Forklift.LocationID, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.Comments, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.TextAreaFor(model => model.Forklift.Comments, 5, 20, new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.Forklift.Comments, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- </div>
- <br />
- <h3>Pricing Information</h3>
- <hr />
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.PurchasedPrice, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.PurchasedPrice, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.PurchasedPrice, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.WholesalePrice, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.WholesalePrice, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.WholesalePrice, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="form-group">
- @Html.LabelFor(model => model.Forklift.RetailPrice, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-12">
- @Html.EditorFor(model => model.Forklift.RetailPrice, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Forklift.RetailPrice, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- </div>
- <br />
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Save" class="btn btn-primary" />
- </div>
- </div>
- </div>
- }
- <br />
- <div>
- @Html.ActionLink("Back to List", "Index")
- </div>
- @section Scripts {
- @Scripts.Render("~/bundles/jqueryval")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement