42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
@using System.Configuration
|
|
@model MileageTraker.Web.ViewModels.Account.LoginViewModel
|
|
|
|
@{
|
|
ViewBag.Title = "Log in";
|
|
Layout = "~/Views/Shared/_Layout.login.cshtml";
|
|
}
|
|
@section Styles
|
|
{
|
|
<link href="@Url.Content("~/Content/Account.Login.css")" rel="stylesheet" type="text/css" />
|
|
}
|
|
|
|
@if (DateTime.Now <= new DateTime(2013, 4, 1))
|
|
{
|
|
<p class="alert alert-info center-content"><button type="button" class="close" data-dismiss="alert">×</button>
|
|
<strong>Welcome</strong>. Mileage Traker now requires all users
|
|
to log in before entering mileage. Emails containing instructions
|
|
to initialize a password have been sent to all drivers - please
|
|
check your inbox for a message titled "<strong>@ConfigurationManager.AppSettings["InitializePasswordSubject"]</strong>".
|
|
If you have not received this email, please contact your administrator.
|
|
</p>
|
|
}
|
|
|
|
@using (Html.BeginForm("Login", "Account", new { ViewBag.ReturnUrl }, FormMethod.Post, new {@class = "form-login"})) {
|
|
|
|
@Html.Partial("_StatusMessage")
|
|
|
|
<div class="header"></div>
|
|
|
|
<h2>@ViewBag.Title</h2>
|
|
|
|
@Html.AntiForgeryToken()
|
|
@Html.Partial("_ValidationSummary")
|
|
|
|
<fieldset>
|
|
<legend></legend>
|
|
@Html.EditorForModel()
|
|
<input type="submit" value="Log in" class="btn btn-primary" />
|
|
@Html.ActionLink("Forgot Password?", "ResetPassword", new { Model.Username }, new { @class = "pull-right" })
|
|
</fieldset>
|
|
}
|