initial add
This commit is contained in:
68
Fab2ApprovalSystem/Views/Account/Login.cshtml
Normal file
68
Fab2ApprovalSystem/Views/Account/Login.cshtml
Normal file
@ -0,0 +1,68 @@
|
||||
@model Fab2ApprovalSystem.Models.LoginModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Mesa Approval System";
|
||||
}
|
||||
@if (GlobalVars.DBConnection == "PROD")
|
||||
{
|
||||
<h2>@ViewBag.Title (Production)</h2>
|
||||
}
|
||||
else if (GlobalVars.DBConnection == "TEST")
|
||||
{
|
||||
<h2><font color="RED">@ViewBag.Title - TEST ENVIRONMENT </font></h2>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h2><font color="Green">@ViewBag.Title - QUALITY ENVIRONMENT </font></h2>
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<section id="loginForm">
|
||||
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<h3><font color="green">Use your Windows Account to log in</font></h3>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true)
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.LoginID, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.TextBoxFor(m => m.LoginID, new { @class = "form-control", style = "width: 280px;" })
|
||||
@Html.ValidationMessageFor(m => m.LoginID)
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.Password, new { @class = "form-control", style = "width: 280px;" })
|
||||
@Html.ValidationMessageFor(m => m.Password)
|
||||
</div>
|
||||
</div>
|
||||
@*<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
@Html.CheckBoxFor(m => m.RememberMe)
|
||||
@Html.LabelFor(m => m.RememberMe)
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Log in" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
@*<p>
|
||||
@Html.ActionLink("Register", "Register") if you don't have a local account.
|
||||
</p>*@
|
||||
}
|
||||
</section>
|
||||
</div>
|
||||
@*<div class="col-md-4">
|
||||
<section id="socialLoginForm">
|
||||
@Html.Partial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })
|
||||
</section>
|
||||
</div>*@
|
||||
</div>
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
Reference in New Issue
Block a user