45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
@model MileageTraker.Web.Models.Vehicle
|
|
|
|
@{
|
|
ViewBag.Title = "Vehicle Details " + (!Model.InactiveDate.HasValue ? "(Active)" : "(Inactive)");
|
|
}
|
|
|
|
@section Styles {
|
|
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
|
}
|
|
|
|
@Html.Partial("_StatusMessage")
|
|
|
|
@{ Html.RenderPartial("BackToVehicles"); }
|
|
|
|
<h2 class="center-content"><i class="fa fa-car"></i> @ViewBag.Title</h2>
|
|
<div class="center-content well">
|
|
@Html.DisplayForModel()
|
|
|
|
</div>
|
|
|
|
<div class="center-content btn-toolbar">
|
|
@Html.ActionLink("Edit", "Edit", new { id = Model.VehicleId }, new { @class = "btn" })
|
|
@if (!Model.InactiveDate.HasValue)
|
|
{
|
|
@Html.ActionLink("Set Inactive", "SetInactive", new {id = Model.VehicleId}, new {@class = "btn"})
|
|
}
|
|
else
|
|
{
|
|
@Html.ActionLink("Reactivate", "SetActive", new {id = Model.VehicleId}, new {@class = "btn"})
|
|
}
|
|
<div class="btn-group">
|
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
|
Services <i class="fa fa-caret-down"></i>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
@Html.ActionLink("View Reminders", "Index", "ServiceReminder", new { VehicleId = Model.VehicleId }, null)
|
|
</li>
|
|
<li>
|
|
@Html.ActionLink("Add Service", "Create", "VehicleService", new { VehicleId = Model.VehicleId }, null)
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.ActionLink("Logs", "Index", "Log", new { Model.VehicleId}, new { @class = "btn" })
|
|
</div> |