Files
MileageTraker/Web/Views/VehicleRecall/Index.cshtml
T
2020-09-20 22:07:13 -04:00

30 lines
1.3 KiB
Plaintext

@model IEnumerable<MileageTraker.Web.ViewModels.VehicleRecall.VehicleRecallViewModel>
@{
ViewBag.Title = "Vehicle Recalls";
var grid = new WebGrid(Model, rowsPerPage: 45);
}
@Html.Partial("_StatusMessage")
<h2 id="vehicle-title"><i class="fa fa-refresh"></i> @ViewBag.Title</h2>
<div class="btn-toolbar pull-left">
@Html.ActionLink("Add Recall", "Create", null, new { @class = "btn" })
<a class="qtip-show-next-div btn">Open Recalls @Model.Count()</a>
</div>
@grid.GetHtml(columns:
grid.Columns(
grid.Column("VehicleId", "Vehicle ID", item => Html.ActionLink((string)item.VehicleId, "DetailsPartial", "Vehicle", new { id = item.VehicleId }, new { @class = "qtip-modal" })),
grid.Column("Identifier", "Identifier", item => item.Identifier),
grid.Column("Description", "Description"),
grid.Column(format:
@<div class='btn-group'>
@Html.ActionLink("Details", "Details", new { id = item.VehicleRecallId }, new { @class = "btn btn-mini" })
@Html.ActionLink("Delete", "Delete", new { id = item.VehicleRecallId }, new { @class = "btn btn-mini" })
</div>)
),
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"},
numericLinksCount: 20
)