diff --git a/cicm_web/Areas/Admin/Controllers/HomeController.cs b/cicm_web/Areas/Admin/Controllers/HomeController.cs new file mode 100644 index 00000000..1189c95b --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/HomeController.cs @@ -0,0 +1,41 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : HomeController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using Microsoft.AspNetCore.Mvc; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class HomeController : Controller + { + // GET + public IActionResult Index() => View(); + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/Home/Index.cshtml b/cicm_web/Areas/Admin/Views/Home/Index.cshtml new file mode 100644 index 00000000..6c51b561 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Home/Index.cshtml @@ -0,0 +1,59 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin page +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + + ViewData["Title"] = "Admin"; +} + +

Administration

+ + + +
+

User administrative pages

+ @* TODO *@ To be implemented +
\ No newline at end of file diff --git a/cicm_web/Views/Shared/_Layout.cshtml b/cicm_web/Views/Shared/_Layout.cshtml index 4961f562..34646f14 100644 --- a/cicm_web/Views/Shared/_Layout.cshtml +++ b/cicm_web/Views/Shared/_Layout.cshtml @@ -1,4 +1,7 @@ +@using Microsoft.AspNetCore.Identity @using Microsoft.Extensions.PlatformAbstractions +@inject SignInManager SignInManager +@inject UserManager UserManager @{ /****************************************************************************** // Canary Islands Computer Museum Website @@ -33,109 +36,122 @@ - + + name="viewport" /> Canary Islands Computer Museum - @ViewData["Title"] - - - + + + - - - + + +
@RenderBody() @@ -145,25 +161,25 @@
- - - - + + + + - - - - + @RenderSection("Scripts", false) diff --git a/cicm_web/cicm_web.csproj b/cicm_web/cicm_web.csproj index a7aaabd3..944e7b49 100644 --- a/cicm_web/cicm_web.csproj +++ b/cicm_web/cicm_web.csproj @@ -2,7 +2,7 @@ netcoreapp2.2 - 3.0.99.392 + 3.0.99.394 Canary Islands Computer Museum Copyright © 2003-2018 Natalia Portillo Canary Islands Computer Museum Website