Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into develop_akritikos
Browse files Browse the repository at this point in the history
  • Loading branch information
akritikos committed Nov 19, 2017
2 parents 7656d85 + af763d7 commit 96fd819
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
7 changes: 1 addition & 6 deletions EzPay.WebApp/Controllers/CitizenController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,10 @@ public async Task<IActionResult> Login(LoginViewModel model, string returnUrl =
}
else
{
ModelState.AddModelError(nameof(LoginViewModel.Password), "Password is invalid.");
ModelState.AddModelError(string.Empty, "ID or Password is invalid.");
return View(model);
}
}
else
{
ModelState.AddModelError(nameof(LoginViewModel.CitizenId), "Citizen ID is invalid.");
return View(model);
}
}

// If we got this far, something failed, redisplay form
Expand Down
3 changes: 1 addition & 2 deletions EzPay.WebApp/Views/Citizen/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
<div class="row">
<div class="col-xs-12 col-md-4 col-md-offset-4">
<form asp-controller="Citizen" asp-action="Login" method="post" accept-charset="UTF-8" id="login-nav">
<center><div asp-validation-summary="All" class="text-danger mp0"></div></center>
<div class="form-group">
<label asp-for="CitizenId" class="sr-only" for="CitizenId">Citizen Id</label>
<input asp-for="CitizenId" type="number" class="form-control" id="CitizenId" placeholder="Citizen ID" required>
<span asp-validation-for="CitizenId" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Password" class="sr-only" for="Password">Password</label>
<input asp-for="Password" type="password" class="form-control" id="Password" placeholder="Password" required>
<span asp-validation-for="Password" class="text-danger"></span>
<div class="help-block text-right">
<a href="">Forgot your password?</a>
</div>
Expand Down
7 changes: 5 additions & 2 deletions EzPay.WebApp/Views/Home/Contact.cshtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
@model EzPay.WebApp.Models.ContactViewModel

<center><h2>@ViewBag.Title</h2></center>
@{
ViewData["Title"] = "Contact";
}
<center><h2>@ViewData["Title"] Us</h2></center>

<center><h4>We are here for you! Please provide your comments or contact us for any issue:</h4></center>

<div class="row">
<div class="container">
<div class="col-xs-12 col-md-4 col-md-offset-4">
<form asp-action="SendForm" method="post">
<div class="form-group">
Expand Down
5 changes: 2 additions & 3 deletions EzPay.WebApp/Views/Shared/_LoginPartial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ else
<div class="row">
<div class="col-md-12">
<form asp-controller="Citizen" asp-action="Login" method="post" accept-charset="UTF-8" id="login-nav" novalidate>
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group">
<label asp-for="CitizenId" class="sr-only" for="CitizenId">Citizen Id</label>
<input asp-for="CitizenId" type="number" class="form-control" id="CitizenId" placeholder="Citizen ID" autofocus required>
<span asp-validation-for="CitizenId" class="text-danger lc"></span>
</div>
<div class="form-group">
<label asp-for="Password" class="sr-only" for="Password">Password</label>
<input asp-for="Password" type="password" class="form-control" id="Password" placeholder="Password" required>
<span asp-validation-for="Password" class="text-danger lc"></span>
<div class="help-block text-right">
<a href="" class="text-success lc">Forgot your password?</a>
<a asp-controller="Home" asp-action="Contact" class="text-success lc">Forgot your password?</a>
</div>
</div>
<div class="form-group">
Expand Down
4 changes: 2 additions & 2 deletions EzPay.WebApp/Views/Shared/_Main.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<div class="container body-content">
@RenderBody()

<footer class="fixed-bottom mtop20">
<hr />
<footer class="navbar-fixed-bottom">
<div class="col-xs-12 col-sm-12">
<hr />
<div class="container">
<center>
<p class="pull-left"><font color="#00BA75" style="font-weight:bold">EzPay</font> - &copy; @DateTime.Now.Year</p>
Expand Down
4 changes: 4 additions & 0 deletions EzPay.WebApp/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
padding: 10px 15px !important;
}

.navbar-fixed-bottom {
background-color: rgba(255, 255, 255, 0.8);
}

.jumbotron {
margin-top: -20px !important;
}
Expand Down

0 comments on commit 96fd819

Please sign in to comment.