From a1e87e144f57682f941ebf1cfa2719b9a8d3768f Mon Sep 17 00:00:00 2001 From: LeoCYang Date: Wed, 5 Sep 2018 13:56:26 -0500 Subject: [PATCH] Add Login form --- .../ASP Core MVC Template.csproj | 3 ++ .../Controllers/LoginController.cs | 19 +++++++++++ .../Views/Login/Index.cshtml | 34 +++++++++++++++++++ .../Views/Shared/_Layout.cshtml | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 ASP Core MVC Template/ASP Core MVC Template/Controllers/LoginController.cs create mode 100644 ASP Core MVC Template/ASP Core MVC Template/Views/Login/Index.cshtml diff --git a/ASP Core MVC Template/ASP Core MVC Template/ASP Core MVC Template.csproj b/ASP Core MVC Template/ASP Core MVC Template/ASP Core MVC Template.csproj index 2374479..7b28cd8 100644 --- a/ASP Core MVC Template/ASP Core MVC Template/ASP Core MVC Template.csproj +++ b/ASP Core MVC Template/ASP Core MVC Template/ASP Core MVC Template.csproj @@ -9,4 +9,7 @@ + + + diff --git a/ASP Core MVC Template/ASP Core MVC Template/Controllers/LoginController.cs b/ASP Core MVC Template/ASP Core MVC Template/Controllers/LoginController.cs new file mode 100644 index 0000000..b02a221 --- /dev/null +++ b/ASP Core MVC Template/ASP Core MVC Template/Controllers/LoginController.cs @@ -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: // + public IActionResult Index() + { + return View(); + } + } +} diff --git a/ASP Core MVC Template/ASP Core MVC Template/Views/Login/Index.cshtml b/ASP Core MVC Template/ASP Core MVC Template/Views/Login/Index.cshtml new file mode 100644 index 0000000..4cb8cd4 --- /dev/null +++ b/ASP Core MVC Template/ASP Core MVC Template/Views/Login/Index.cshtml @@ -0,0 +1,34 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ + ViewData["Title"] = "WebBill"; +} +
+
+
+ Sign in + or create an account + + + + +

+ Show password +

+ +

+ + Forgot username? + +

+

+ + Forgot password? + +

+
+
+
\ No newline at end of file diff --git a/ASP Core MVC Template/ASP Core MVC Template/Views/Shared/_Layout.cshtml b/ASP Core MVC Template/ASP Core MVC Template/Views/Shared/_Layout.cshtml index 7f5f83d..be9fffa 100644 --- a/ASP Core MVC Template/ASP Core MVC Template/Views/Shared/_Layout.cshtml +++ b/ASP Core MVC Template/ASP Core MVC Template/Views/Shared/_Layout.cshtml @@ -108,7 +108,7 @@
  • - + WebBill