Delete service reminder and vehicle service

This commit is contained in:
2016-08-24 08:02:29 -04:00
parent a9cb9d36b5
commit 5d6f060378
8 changed files with 89 additions and 8 deletions
+24
View File
@@ -0,0 +1,24 @@
@model MileageTraker.Web.ViewModels.VehicleService.VehicleServiceViewModel
@{
ViewBag.Title = "Delete Vehicle Service";
}
@Html.Partial("_StatusMessage")
<h2 class="center-content"><i class="fa fa-wrench"></i> @ViewBag.Title</h2>
<div class="center-content label label-warning">Are you sure you wish to delete this service?</div>
<div class="center-content well">
@Html.DisplayForModel()
@using (Html.BeginForm("Delete", "VehicleService", FormMethod.Post, new { @class = "form-horizontal" }))
{
<div class="form-actions">
<input type="submit" value="Delete" class="btn btn-warning" />
@Html.ActionLink("Cancel", "Details", new { id = Model.VehicleServiceId }, new { @class = "btn" })
</div>
}
</div>
+1
View File
@@ -13,5 +13,6 @@
<div class="center-content btn-toolbar">
@Html.ActionLink("Edit", "Edit", new { id = Model.VehicleServiceId }, new { @class = "btn" })
@Html.ActionLink("Delete", "Delete", new { id = Model.VehicleServiceId }, new { @class = "btn" })
@Html.ActionLink("Vehicle Details", "Details", "Vehicle", new { id = Model.VehicleId }, new{@class="btn"})
</div>
+1
View File
@@ -54,6 +54,7 @@
grid.Column(format:
@<div class='btn-group'>
@Html.ActionLink("Details", "Details", new { id = item.VehicleServiceId }, new { @class = "btn btn-mini" })
@Html.ActionLink("Delete", "Delete", new { id = item.VehicleServiceId }, new { @class = "btn btn-mini" })
</div>)
),
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"},