@model ParcelWeb.Core.Domain.Vehicle @{ ViewBag.Title = "Create"; }

Edit Vehicle

@using (Html.BeginForm("Edit", "Vehicle", FormMethod.Post, new { @class = "form form-horizontal", role = "form", })) { @Html.AntiForgeryToken() @Html.HiddenFor(m => m.Id)

Vehicle Detail

@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.VehicleName, "Vehicle Name", htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.VehicleName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.VehicleName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.RatePerKm, "Rate Per Kilometer", htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.RatePerKm, new { htmlAttributes = new { @class = "form-control" } }) $/kilomiter
@Html.ValidationMessageFor(model => model.RatePerKm, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.FlatCost, "Flat Cost", htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.FlatCost, new { htmlAttributes = new { @class = "form-control" } }) $
@Html.ValidationMessageFor(model => model.FlatCost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Active, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Active) @Html.ValidationMessageFor(model => model.Active, "", new { @class = "text-danger" })
Cancel
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }