This commit is contained in:
2012-11-30 21:35:06 -05:00
commit 3963d6363a
346 changed files with 351799 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
@model MileageTraker.Web.Models.Vehicle
@{
ViewBag.Title = "Create Vehicle";
}
<h2>@ViewBag.Title</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Vehicle</legend>
@Html.EditorForModel()
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
<p>
@Html.ActionLink("Back to List", "Index", null, new { @class = "ui-button" })
</p>
+20
View File
@@ -0,0 +1,20 @@
@model MileageTraker.Web.Models.Vehicle
@{
ViewBag.Title = "Vehicle Details";
}
@section Styles {
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
}
<h2>@ViewBag.Title</h2>
<fieldset>
<legend>Vehicle</legend>
@Html.DisplayForModel()
</fieldset>
<p>
@Html.ActionLink("Edit", "Edit", new { id = Model.VehicleId }, new { @class = "ui-button" })
@Html.ActionLink("Back to List", "Index", null, new { @class = "ui-button" })
</p>
+8
View File
@@ -0,0 +1,8 @@
@model MileageTraker.Web.ViewModels.VehiclePartialDetails
@{
Layout = null;
}
@Html.DisplayForModel()
<p>
@Html.ActionLink("Details", "Details", new { id = Model.VehicleId })
</p>
+26
View File
@@ -0,0 +1,26 @@
@model MileageTraker.Web.Models.Vehicle
@{
ViewBag.Title = "Edit Vehicle";
}
<h2>@ViewBag.Title</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Vehicle</legend>
@Html.EditorForModel()
<p>
<input type="submit" value="Save" />
</p>
</fieldset>
}
<p>
@Html.ActionLink("Back to List", "Index", null, new { @class = "ui-button" })
</p>
+94
View File
@@ -0,0 +1,94 @@
@model IEnumerable<MileageTraker.Web.Models.Vehicle>
@{
ViewBag.Title = "Vehicles";
}
@section Styles {
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
}
<h2>@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>
<tr>
<th>
Key
</th>
<th>
EthraId
</th>
<th>
Model Yr
</th>
<th>
Make
</th>
<th>
Model
</th>
<th>
Type
</th>
<th>
TagNumber
</th>
<th>
Prog
</th>
<th>
Assigned
</th>
<th>
ODO
</th>
<th></th><th></th><th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayTextFor(m => item.Key)
</td>
<td>
@Html.DisplayTextFor(m => item.VehicleId)
</td>
<td>
@Html.DisplayTextFor(m => item.ModelYear)
</td>
<td>
@Html.DisplayTextFor(m => item.Make)
</td>
<td>
@Html.DisplayTextFor(m => item.CarModel)
</td>
<td class="@item.Color">
@Html.DisplayTextFor(m => item.Type)
</td>
<td>
@Html.DisplayTextFor(m => item.TagNumber)
</td>
<td>
@Html.DisplayTextFor(m => item.Prog)
</td>
<td>
@Html.DisplayTextFor(m => item.Assigned) @if(!string.IsNullOrEmpty(item.Notes)) {
<span class="format-hint">@Html.DisplayTextFor(m => item.Notes)</span>
}
</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>
</tr>
}
</table>