Upcoming Service Reminders
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
ViewBag.Title = "Manage Account";
|
||||
}
|
||||
|
||||
<h2 class="center-content">@ViewBag.Title</h2>
|
||||
<h2 class="center-content"><i class="fa fa-user"></i> @ViewBag.Title</h2>
|
||||
|
||||
@Html.Partial("_StatusMessage")
|
||||
|
||||
<div class="center-content well">
|
||||
|
||||
<p>You're logged in as <strong>@User.Identity.Name</strong>.
|
||||
Your name is <strong>@Model.FullName</strong> and
|
||||
email is <strong>@Model.Email</strong>.
|
||||
<p>You're logged in as <strong>@User.Identity.Name</strong>.<br/>
|
||||
Your name is <strong>@Model.FullName</strong>.<br/>
|
||||
Your email is <strong>@Model.Email</strong>.
|
||||
</p>
|
||||
|
||||
@Html.Partial("_ChangePasswordPartial")
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
@Html.ActionLink("Export", "Export", queryParams, new { @class = "btn" })
|
||||
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Report <span class="caret"></span></a>
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Report <i class="fa fa-caret-down"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
@Html.ActionLink("Vehicle Mileage", "MonthlyVehicleMileage", queryParams)
|
||||
|
||||
@@ -37,16 +37,16 @@
|
||||
{
|
||||
<li id="log-nav">@Html.ActionLink("Logs", "Index", "Log")</li>
|
||||
<li id="vehicle-nav" class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Vehicles <span class="caret"></span></a>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span>Vehicles</span> <i class="fa fa-caret-down"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>@Html.ActionLink("Vehicles", "Index", "Vehicle")</li>
|
||||
<li>@Html.ActionLink("Vehicle Service", "Index", "VehicleService")</li>
|
||||
<li>@Html.ActionLink("Vehicle Service", "Index", "VehicleService")</li>
|
||||
<li>@Html.ActionLink("Fuel Logs", "Index", "FuelLog")</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="fuellog-nav">@Html.ActionLink("Fuel Logs", "Index", "FuelLog")</li>
|
||||
<li id="user-nav">@Html.ActionLink("Users", "Index", "User")</li>
|
||||
<li id="config-nav" class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Config <span class="caret"></span></a>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span>Config</span> <i class="fa fa-caret-down"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>@Html.ActionLink("Cities", "Index", "City")</li>
|
||||
<li>@Html.ActionLink("Purposes", "Index", "Purpose")</li>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<ul class="nav pull-right">
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
<li>
|
||||
<li id="account-nav">
|
||||
@Html.ActionLink(User.Identity.Name, "Manage", "Account", null, new {@class = "username", title = "Manage"})
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.UserId }, new { @class = "btn" })
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
Password <span class="caret"></span>
|
||||
Password <i class="fa fa-caret-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
@Html.Partial("_StatusMessage")
|
||||
|
||||
<h2 id="user-title"><i class="fa fa-user"></i> @ViewBag.Title</h2>
|
||||
<h2 id="user-title"><i class="fa fa-users"></i> @ViewBag.Title</h2>
|
||||
|
||||
<div class="btn-toolbar pull-right">
|
||||
@using (Html.BeginForm("DetailsFullName", "User", FormMethod.Get, new {@class = "navbar-search form-inline" }))
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
}
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
Services <span class="caret"></span>
|
||||
Services <i class="fa fa-caret-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
|
||||
@@ -26,45 +26,21 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="pull-right" style="width:400px">
|
||||
<h4>Upcoming Services</h4>
|
||||
<table class="table table-striped table-bordered table-hover table-condensed">
|
||||
<tr>
|
||||
<th>Vehicle ID</th>
|
||||
<th>ODO</th>
|
||||
<th>Next Service</th>
|
||||
<th>Description</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach (var sr in Model.UpcomingServiceReminders)
|
||||
{
|
||||
<tr>
|
||||
<td>@Html.DisplayTextFor(m => sr.VehicleId)</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.CurrentOdometer)</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.TargetOdometer)
|
||||
@if (sr.IsServiceOverdue)
|
||||
{
|
||||
<span class="badge badge-warning" title="overdue @(-sr.ServiceDueInMiles) miles">!</span>
|
||||
}
|
||||
</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.Description)</td>
|
||||
<td>@Html.ActionLink("Add Service", "Create", "VehicleService", new { vehicleId = sr.VehicleId }, new { @class = "btn btn-mini" })</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2 id="vehicle-title"><i class="fa fa-wrench"></i> @ViewBag.Title</h2>
|
||||
|
||||
<div class="btn-toolbar pull-left">
|
||||
@Html.ActionLink("Add Service", "Create", null, new { @class = "btn" })
|
||||
@Html.ActionLink("Export", "Export", queryParams, new { @class = "btn" })
|
||||
<a class="qtip-show-next-div btn">Upcoming Services <span class="badge">@Model.UpcomingServiceReminders.Count</span></a>
|
||||
<div class="hidden">
|
||||
@Html.Partial("UpcomingServiceReminders", Model.UpcomingServiceReminders)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@grid.GetHtml(columns:
|
||||
grid.Columns(
|
||||
grid.Column("InvoiceDate", "Invoice Date", item => item.InvoiceDate.ToString("d")),
|
||||
grid.Column("VehicleID", "Vehicle Id"),
|
||||
grid.Column("VehicleId", "Vehicle ID", item => Html.ActionLink((string)item.VehicleId, "DetailsPartial", "Vehicle", new { id = item.VehicleId }, new { @class = "qtip-modal" })),
|
||||
grid.Column("ServiceCenterName", "Service Center Name"),
|
||||
grid.Column("Price", "Price"),
|
||||
grid.Column("Description", "Description"),
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@model IList<MileageTraker.Web.ViewModels.ServiceReminder.ServiceReminderViewModel>
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed">
|
||||
<tr>
|
||||
<th>Vehicle ID</th>
|
||||
<th>Driver</th>
|
||||
<th>ODO</th>
|
||||
<th>Next Service</th>
|
||||
<th>Description</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach (var sr in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>@Html.ActionLink(sr.VehicleId, "DetailsPartial", "Vehicle", new { id = sr.VehicleId }, new { @class = "qtip-modal" })</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.AssignedDriver)</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.CurrentOdometer)</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.TargetOdometer)
|
||||
@if (sr.IsServiceOverdue)
|
||||
{
|
||||
<span class="badge badge-warning" title="overdue @(-sr.ServiceDueInMiles) miles">!</span>
|
||||
}
|
||||
</td>
|
||||
<td>@Html.DisplayTextFor(m => sr.Description)</td>
|
||||
<td>@Html.ActionLink("Add Service", "Create", "VehicleService", new { vehicleId = sr.VehicleId }, new { @class = "btn btn-mini" })</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
@@ -7,7 +7,7 @@
|
||||
@Html.Partial("_StatusMessage")
|
||||
|
||||
<h2 class="center-content"><i class="fa fa-clock-o"></i> @ViewBag.Title</h2>
|
||||
<h5 class="center-content">Add the next service for this vehicle and remove existing reminders.</h5>
|
||||
<p class="center-content">Add the next service for this vehicle and remove existing reminders.</p>
|
||||
|
||||
@using (Html.BeginForm("UpdateServiceReminders", "VehicleService", FormMethod.Post, new { @class = "form-horizontal well center-content" }))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user