New style partially complete
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@model IEnumerable<MileageTraker.Web.Models.Vehicle>
|
||||
@using MileageTraker.Web.Utility
|
||||
@model IEnumerable<MileageTraker.Web.Models.Vehicle>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Vehicles";
|
||||
@@ -8,13 +9,13 @@
|
||||
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<h2><img src="/Content/images/glyphicons_005_car.png"/> @ViewBag.Title</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Add another vehicle", "Create", null, new{@class="ui-button"})
|
||||
@Html.ActionLink("Export", "Export", null, new { @class = "ui-button" })
|
||||
</p>
|
||||
<table>
|
||||
<div class="btn-toolbar">
|
||||
@Html.ActionLink("Add another vehicle", "Create", null, new{@class="btn"})
|
||||
@Html.ActionLink("Export", "Export", null, new { @class = "btn" })
|
||||
</div>
|
||||
<table class="table table-striped table-bordered table-hover table-condensed">
|
||||
<tr>
|
||||
<th>
|
||||
Key
|
||||
@@ -46,7 +47,7 @@
|
||||
<th>
|
||||
ODO
|
||||
</th>
|
||||
<th></th><th></th><th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
@@ -77,17 +78,19 @@
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayTextFor(m => item.Assigned) @if(!string.IsNullOrEmpty(item.Notes)) {
|
||||
<span class="format-hint">@Html.DisplayTextFor(m => item.Notes)</span>
|
||||
<small class="muted"><em>@Html.DisplayTextFor(m => item.Notes)</em></small>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayTextFor(m => item.CurrentOdometer)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.VehicleId }) </td>
|
||||
<td> @Html.ActionLink("Details", "Details", new { id=item.VehicleId }) </td>
|
||||
<td> @Html.ActionLink("New log", "Create", "Log", new { vehicleId = item.VehicleId }, null)
|
||||
</td>
|
||||
@(new MvcHtmlString("<div class='btn-group'>")
|
||||
.Concat(Html.ActionLink("Edit", "Edit", new { id = item.VehicleId }, new { @class = "btn btn-mini" }))
|
||||
.Concat(Html.ActionLink("Details", "Details", new { id = item.VehicleId }, new { @class = "btn btn-mini" }))
|
||||
//.Concat(Html.ActionLink("New log", "Create", new { id = item.VehicleId }, new { @class = "btn btn-mini" }))
|
||||
.Concat("</div>"))
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user