Skip to content

Commit

Permalink
Merge pull request #4 from GSA/ESCxxxx_change_navigation_header
Browse files Browse the repository at this point in the history
Add Login form
  • Loading branch information
LeoCYang authored Sep 5, 2018
2 parents a12e2b8 + a1e87e1 commit 5fb7110
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.1.1.1" />
</ItemGroup>

<ItemGroup>
<Folder Include="Views\Login\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace ASPCoreMVCTemplate.Controllers
{
public class LoginController : Controller
{
// GET: /<controller>/
public IActionResult Index()
{
return View();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
ViewData["Title"] = "WebBill";
}
<div class="usa-grid">
<form class="usa-form">
<fieldset>
<legend class="usa-legend usa-drop_text">Sign in</legend>
<span>or <a href="javascript:void(0);">create an account</a></span>
<label class="usa-label" for="username">Email address</label>
<input class="usa-input" id="username" name="username" type="text" autocapitalize="off" autocorrect="off">
<label class="usa-label" for="password-sign-in">Password</label>
<input class="usa-input" id="password-sign-in" name="password" type="password">
<p class="usa-form-note">
<a title="Show password" href="javascript:void(0);"
class="usa-show_password"
aria-controls="password-sign-in">Show password</a>
</p>
<input class="usa-button" type="submit" value="Sign in">
<p>
<a href="javascript:void(0);" title="Forgot username">
Forgot username?
</a>
</p>
<p>
<a href="javascript:void(0);" title="Forgot password">
Forgot password?
</a>
</p>
</fieldset>
</form>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</a>
</li>
<li>
<a class="usa-nav-link" href="javascript:void(0)">
<a class="usa-nav-link" href="/Login">
<span>WebBill</span>
</a>
</li>
Expand Down

0 comments on commit 5fb7110

Please sign in to comment.