More Progress

This commit is contained in:
2012-12-12 21:41:38 -05:00
parent 14d8054f22
commit 260118ff90
23 changed files with 114 additions and 94 deletions
+5
View File
@@ -0,0 +1,5 @@
@if (Session["LogPage"] != null) {
<ul class="no-print breadcrumb">
<li><a href="@Session["LogPage"]">&larr; Back To Logs</a></li>
</ul>
}
+7 -7
View File
@@ -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>
}
+2 -2
View File
@@ -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 -2
View File
@@ -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>
+7 -8
View File
@@ -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 -10
View File
@@ -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>
+9 -10
View File
@@ -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>