Files

28 lines
1.1 KiB
Plaintext

@using System.Activities.Expressions
@model MileageTraker.Web.ViewModels.VehicleRecall.VehicleRecallViewModel
@{
ViewBag.Title = "Vehicle Recall Details" ;
var completed = Model.CompletedService_VehicleServiceId > 0;
}
@Html.Partial("_StatusMessage")
<h2 class="center-content"><i class="fa fa-refresh"></i> @ViewBag.Title</h2>
<div class="center-content well">
@Html.DisplayForModel()
@if (completed)
{
@Html.DisplayFor(v => v.CompletedService_VehicleServiceId)
}
</div>
@if (!completed)
{
<div class="center-content">Completed? @Html.ActionLink("Add Service", "Create", "VehicleService", new { VehicleId = Model.VehicleId, VehicleRecallId = Model.VehicleRecallId}, new { @class = "btn" })</div>
}
<div class="center-content btn-toolbar">
@Html.ActionLink("Edit", "Edit", new { id = Model.VehicleRecallId }, new { @class = "btn" })
@Html.ActionLink("Delete", "Delete", new { id = Model.VehicleRecallId }, new { @class = "btn" })
@Html.ActionLink("Vehicle Details", "Details", "Vehicle", new { id = Model.VehicleId }, new{@class="btn"})
</div>