New style partially complete
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Confirm";
|
||||
ViewBag.PageStyle = "~/Content/CreateLog/Index.css";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
var endOdometerStyle = Model.PreviousOdometer != null ? "style=padding-bottom:0px;" : "";
|
||||
}
|
||||
@section Styles
|
||||
{
|
||||
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/Content/CreateLog.Index.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("Action", "CreateLog", FormMethod.Post))
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
@{
|
||||
|
||||
ViewBag.Title = "Enter Mileage Log";
|
||||
ViewBag.PageStyle = "~/Content/CreateLog.Index.css";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
@section Styles
|
||||
{
|
||||
<link href="@Url.Content("~/Content/jquery.qtip.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/Content/jquery.qtip.min.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
@section Scripts
|
||||
{
|
||||
@@ -16,14 +15,16 @@
|
||||
<script src="@Url.Content("~/Scripts/jquery.qtip.min.js")" type="text/javascript"></script>
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("Index", "CreateLog", FormMethod.Post))
|
||||
@using (Html.BeginForm("Index", "CreateLog", FormMethod.Post, new { @class = "form-horizontal" }))
|
||||
{
|
||||
@:<fieldset>
|
||||
<fieldset>
|
||||
<legend>@ViewBag.Title</legend>
|
||||
@Html.ValidationSummary(true)
|
||||
@Html.EditorForModel()
|
||||
<div class="submit">
|
||||
<input type="submit" value="Submit" />
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="submit" value="Submit" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
@:</fieldset>
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
@if (Model.Any())
|
||||
{
|
||||
<h4>Recent Logs for @ViewData["employeeName"]</h4>
|
||||
<table>
|
||||
<h5>Recent Logs for @ViewData["employeeName"]</h5>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@@ -43,5 +43,12 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<h4>Mileage history not found for for "@ViewData["employeeName"]"</h4>
|
||||
if (!string.IsNullOrEmpty(ViewData["employeeName"].ToString()))
|
||||
{
|
||||
<h5>Mileage history not found for employee "@ViewData["employeeName"]"</h5>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h5>Please enter employee name</h5>
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,14 @@
|
||||
@{
|
||||
|
||||
ViewBag.Title = "Success";
|
||||
ViewBag.PageStyle = "~/Content/CreateLog/Index.css";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@section Styles
|
||||
{
|
||||
<link href="@Url.Content("~/Content/CreateLog.Index.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
@{
|
||||
@:<fieldset>
|
||||
<legend>@ViewBag.Title</legend>
|
||||
@@ -16,7 +21,7 @@
|
||||
in VehicleId <strong>@Html.Encode(Model.VehicleId)</strong>
|
||||
</p>
|
||||
<p>
|
||||
@Html.ActionLink("Create another", "Index", null, new { @class = "ui-button" })
|
||||
@Html.ActionLink("Create another", "Index", null, new { @class = "btn" })
|
||||
</p>
|
||||
|
||||
@:</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user