More Progress
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
@if (Session["LogPage"] != null) {
|
||||
<ul class="no-print breadcrumb">
|
||||
<li><a href="@Session["LogPage"]">← Back To Logs</a></li>
|
||||
</ul>
|
||||
}
|
||||
@@ -14,19 +14,19 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
</div>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Create", "Log", FormMethod.Post, new { @class = "form-horizontal" })) {
|
||||
@Html.ValidationSummary(true)
|
||||
<fieldset>
|
||||
<legend>Log</legend>
|
||||
@Html.EditorForModel()
|
||||
<p>
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
ViewBag.Title = "Delete Log";
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<h3>Are you sure you wish to delete this log?</h3>
|
||||
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
ViewBag.Title = "Log Details";
|
||||
}
|
||||
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
|
||||
<div class="btn-toolbar">
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.LogId }, new { @class = "btn" })
|
||||
@Html.ActionLink("Delete", "Delete", new { id = Model.LogId }, new { @class = "btn" })
|
||||
</div>
|
||||
|
||||
@@ -14,22 +14,21 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
</div>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Edit", "Log", FormMethod.Post, new { @class = "form-horizontal" }))
|
||||
{
|
||||
@Html.ValidationSummary(true)
|
||||
<fieldset>
|
||||
<legend>Log</legend>
|
||||
|
||||
@Html.EditorForModel()
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Save" />
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -10,17 +10,17 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<p class="no-print btn-group">
|
||||
@Html.ActionLink("Logs", "Index", "Log", Model.Query, new { @class = "btn" })
|
||||
</p>
|
||||
@Html.DisplayFor(m => m.Query.Year)
|
||||
@Html.DisplayFor(m => m.Query.Month)
|
||||
@if (Model.Query.LogType.HasValue)
|
||||
{
|
||||
@Html.DisplayFor(m => m.Query.LogType)
|
||||
}
|
||||
@Html.DisplayFor(m => m.Query.Year)
|
||||
@Html.DisplayFor(m => m.Query.Month)
|
||||
@if (Model.Query.LogType.HasValue)
|
||||
{
|
||||
@Html.DisplayFor(m => m.Query.LogType)
|
||||
}
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@@ -48,7 +48,7 @@
|
||||
<td @if (item.LogPairs.Any(lp => lp.Item1 == null)){
|
||||
@:class="ui-state-error"
|
||||
}>
|
||||
<span class="report-miles">@Html.DisplayTextFor(i => item.Miles) <span class="ui-icon ui-icon-triangle-1-n"></span></span>
|
||||
<span class="report-miles">@Html.DisplayTextFor(i => item.Miles)</span>
|
||||
@Html.Partial("LogsSummary", item.LogPairs)
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -11,17 +11,16 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
@{ Html.RenderPartial("BackToLogs"); }
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<p class="no-print btn-group">
|
||||
@Html.ActionLink("Logs", "Index", "Log", Model.Query, new { @class = "btn" })
|
||||
</p>
|
||||
@Html.DisplayFor(m => m.Query.Year)
|
||||
@Html.DisplayFor(m => m.Query.Month)
|
||||
@if (Model.Query.LogType.HasValue)
|
||||
{
|
||||
@Html.DisplayFor(m => m.Query.LogType)
|
||||
}
|
||||
@Html.DisplayFor(m => m.Query.Year)
|
||||
@Html.DisplayFor(m => m.Query.Month)
|
||||
@if (Model.Query.LogType.HasValue)
|
||||
{
|
||||
@Html.DisplayFor(m => m.Query.LogType)
|
||||
}
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@@ -49,7 +48,7 @@
|
||||
<td @if (item.LogPairs.Any(lp => lp.Item1 == null)){
|
||||
@:class="ui-state-error"
|
||||
}>
|
||||
<span class="report-miles">@Html.DisplayTextFor(i => item.Miles) <span class="ui-icon ui-icon-triangle-1-n"></span></span>
|
||||
<span class="report-miles">@Html.DisplayTextFor(i => item.Miles) </span>
|
||||
@Html.Partial("LogsSummary", item.LogPairs)
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="content">
|
||||
<div class="container-fluid">
|
||||
@RenderBody()
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="content">
|
||||
<div class="container-fluid">
|
||||
@RenderBody()
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<ul class="no-print breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "Vehicle")">← Back to Vehicles</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -14,19 +14,20 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
@{ Html.RenderPartial("BackToVehicles"); }
|
||||
|
||||
<div class="btn-toolbar">
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
</div>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Create", "Vehicle", FormMethod.Post, new { @class = "form-horizontal" }))
|
||||
{
|
||||
@Html.ValidationSummary(true)
|
||||
<fieldset>
|
||||
<legend>Vehicle</legend>
|
||||
@Html.EditorForModel()
|
||||
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -8,10 +8,11 @@
|
||||
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
@{ Html.RenderPartial("BackToVehicles"); }
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<div class="btn-toolbar">
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.VehicleId }, new { @class = "btn" })
|
||||
</div>
|
||||
|
||||
|
||||
@@ -14,19 +14,20 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
@{ Html.RenderPartial("BackToVehicles"); }
|
||||
|
||||
<div class="btn-toolbar">
|
||||
@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
|
||||
</div>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Edit", "Vehicle", FormMethod.Post, new { @class = "form-horizontal" }))
|
||||
{
|
||||
@Html.ValidationSummary(true)
|
||||
<fieldset>
|
||||
<legend>Vehicle</legend>
|
||||
|
||||
@Html.EditorForModel()
|
||||
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user