diff --git a/School/SchoolApp/Controllers/HomeController.cs b/School/SchoolApp/Controllers/HomeController.cs index 5f77735..3607560 100644 --- a/School/SchoolApp/Controllers/HomeController.cs +++ b/School/SchoolApp/Controllers/HomeController.cs @@ -12,6 +12,10 @@ namespace SchoolApp.Controllers { _logger = logger; } + public IActionResult Enter() + { + return View(); + } public IActionResult Register() { diff --git a/School/SchoolApp/Views/Home/Enter.cshtml b/School/SchoolApp/Views/Home/Enter.cshtml new file mode 100644 index 0000000..ccbdde2 --- /dev/null +++ b/School/SchoolApp/Views/Home/Enter.cshtml @@ -0,0 +1,35 @@ + +@{ + ViewData["Title"] = "Enter"; +} + +
+

Вход

+
+
+
+
+
+
+
+

Введите имя

+
+ + +
+

Введите пароль

+
+ + +
+
+ + +
+
+
+
+
+
+
+ diff --git a/School/SchoolApp/Views/Home/Index.cshtml b/School/SchoolApp/Views/Home/Index.cshtml index d2d19bd..bca84a4 100644 --- a/School/SchoolApp/Views/Home/Index.cshtml +++ b/School/SchoolApp/Views/Home/Index.cshtml @@ -1,8 +1,63 @@ -@{ - ViewData["Title"] = "Home Page"; +@using SchoolContracts.ViewModels + +@model List + +@{ + ViewData["Title"] = "Home Page"; }
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

+

Занятия

+
+ +
+ @{ + if (Model == null) + { +

Авторизируйтесь

+ return; + } +

+ Редактировать занятие + Удалить занятие + Связать занятие и интерес +

+

+ Создать занятие +

+ + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + } + +
+ Номер + + Начало занятия + + Конец занятия +
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.TimeStart) + + @Html.DisplayFor(modelItem => item.TimeEnd) +
+ }
diff --git a/School/SchoolApp/Views/Home/Register.cshtml b/School/SchoolApp/Views/Home/Register.cshtml index 7376979..020ff8f 100644 --- a/School/SchoolApp/Views/Home/Register.cshtml +++ b/School/SchoolApp/Views/Home/Register.cshtml @@ -42,6 +42,10 @@ +
+ + +
diff --git a/School/SchoolApp/wwwroot/css/site.css b/School/SchoolApp/wwwroot/css/site.css index 26de935..2e92922 100644 --- a/School/SchoolApp/wwwroot/css/site.css +++ b/School/SchoolApp/wwwroot/css/site.css @@ -29,7 +29,6 @@ body { flex-direction: column; padding: 15px 20px; margin: 20px 0; - ; background: linear-gradient(135deg, #161616, #fff); border-radius: 20px; }