Cleanup and fixes

This commit is contained in:
2013-01-12 14:58:33 -05:00
parent bc019923d2
commit e50052d41e
27 changed files with 240 additions and 156 deletions
+4 -1
View File
@@ -9,7 +9,10 @@
<div class="center-content well">
<p>You're logged in as <strong>@User.Identity.Name</strong>.</p>
<p>You're logged in as <strong>@User.Identity.Name</strong>.
Your name is <strong>@Model.FullName</strong> and
email is <strong>@Model.Email</strong>.
</p>
@Html.Partial("_ChangePasswordPartial")
+1
View File
@@ -15,6 +15,7 @@
<div class="header"></div>
<h2>@ViewBag.Title</h2>
<p>Hello <strong>@Model.Username</strong>, please enter a new password below.</p>
@Html.AntiForgeryToken()
@Html.Partial("_ValidationSummary")
-33
View File
@@ -1,33 +0,0 @@
@model MileageTraker.Web.ViewModels.Account.RegisterModel
@{
ViewBag.Title = "Register";
}
<hgroup class="title">
<h1>@ViewBag.Title</h1>
<h2>Create a new account.</h2>
</hgroup>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.Partial("_ValidationSummary")
<fieldset>
<legend>Registration Form</legend>
<ol>
<li>
@Html.LabelFor(m => m.UserName)
@Html.TextBoxFor(m => m.UserName)
</li>
<li>
@Html.LabelFor(m => m.Password)
@Html.PasswordFor(m => m.Password)
</li>
<li>
@Html.LabelFor(m => m.ConfirmPassword)
@Html.PasswordFor(m => m.ConfirmPassword)
</li>
</ol>
<input type="submit" value="Register" />
</fieldset>
}
+1 -1
View File
@@ -32,7 +32,7 @@
@Html.ActionLink("Vehicle Mileage", "MonthlyVehicleMileage", new { Year = Model.SelectedYear, Month = Model.SelectedMonth, LogType = Model.SelectedLogType })
</li>
<li>
@Html.ActionLink("Employee Mileage", "MonthlyEmployeeMileage", new { Year = Model.SelectedYear, Month = Model.SelectedMonth, LogType = Model.SelectedLogType })
@Html.ActionLink("Driver Mileage", "MonthlyDriverMileage", new { Year = Model.SelectedYear, Month = Model.SelectedMonth, LogType = Model.SelectedLogType })
</li>
</ul>
</div>
@@ -1,6 +1,6 @@
@model MileageTraker.Web.ViewModels.EmployeeMileageViewModel
@model MileageTraker.Web.ViewModels.DriverMileageViewModel
@{
ViewBag.Title = "Employee Mileage Report";
ViewBag.Title = "Driver Mileage Report";
}
@{ Html.RenderPartial("BackToLogs"); }
@@ -30,7 +30,7 @@
<table class="table">
<tr>
<th>
Employee
Driver
</th>
<th>
Trips
+1
View File
@@ -19,6 +19,7 @@
<div class="btn-toolbar pull-left">
@Html.ActionLink("Add new User", "Create", null, new{@class="btn"})
@Html.ActionLink("Export", "Export", null, new{@class="btn"})
</div>
<div id="users-online">Users online now: <span class="badge badge-info">@Membership.GetNumberOfUsersOnline()</span></div>