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

Add Vehicle

@using (Html.BeginForm("Create", "Vehicle", FormMethod.Post, new { @class = "form form-horizontal", role = "form", })) { @Html.AntiForgeryToken()

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.CheckBoxFor(model => model.Active, htmlAttributes: new { @checked = true}) @Html.ValidationMessageFor(model => model.Active, "", new { @class = "text-danger" })
Cancel
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }