From 599e7ee20a21e65a8ba2f1f7cb6dff3b5a3dec3f Mon Sep 17 00:00:00 2001 From: GokaPek Date: Sun, 28 Apr 2024 16:30:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B5=D0=B3=D0=BE=D1=80=20=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=D0=BB=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20?= =?UTF-8?q?=D1=81=20=D0=B2=D0=B5=D0=B1=20=D1=81=D0=B0=D0=B9=D1=82=D0=BE?= =?UTF-8?q?=D0=BC=20(=D0=B2=D1=80=D0=BE=D0=B4=D0=B5=20=D1=88=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 31 +++++++- .../Views/Home/Disciplines.cshtml | 68 ++++++++++++++++ .../Views/Home/Enter.cshtml | 20 +++++ .../Views/Home/Index.cshtml | 12 ++- .../Views/Home/Register.cshtml | 37 +++++++++ .../Views/Home/Report.cshtml | 40 ++++++++++ .../Views/Home/Statements.cshtml | 63 +++++++++++++++ .../Views/Home/Teachers.cshtml | 78 +++++++++++++++++++ 8 files changed, 346 insertions(+), 3 deletions(-) create mode 100644 University/UniversityClientApp/Views/Home/Disciplines.cshtml create mode 100644 University/UniversityClientApp/Views/Home/Enter.cshtml create mode 100644 University/UniversityClientApp/Views/Home/Register.cshtml create mode 100644 University/UniversityClientApp/Views/Home/Report.cshtml create mode 100644 University/UniversityClientApp/Views/Home/Statements.cshtml create mode 100644 University/UniversityClientApp/Views/Home/Teachers.cshtml diff --git a/University/UniversityClientApp/Controllers/HomeController.cs b/University/UniversityClientApp/Controllers/HomeController.cs index 0b2f4f8..8886000 100644 --- a/University/UniversityClientApp/Controllers/HomeController.cs +++ b/University/UniversityClientApp/Controllers/HomeController.cs @@ -23,7 +23,36 @@ namespace UniversityClientApp.Controllers return View(); } - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + public IActionResult Enter() + { + return View(); + } + + public IActionResult Disciplines() + { + return View(); + } + + public IActionResult Statements() + { + return View(); + } + + public IActionResult Teachers() + { + return View(); + } + + public IActionResult Report() { + return View(); + } + + public IActionResult Register() + { + return View(); + } + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); diff --git a/University/UniversityClientApp/Views/Home/Disciplines.cshtml b/University/UniversityClientApp/Views/Home/Disciplines.cshtml new file mode 100644 index 0000000..db29170 --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Disciplines.cshtml @@ -0,0 +1,68 @@ +@{ + ViewData["Title"] = "Manage Disciplines"; +} + +
+

@ViewData["Title"]

+
+ + +
+
+
Name:
+
+ +
+
+
+
Description:
+
+ +
+
+
+
Students:
+
+ +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + @* @foreach (var discipline in Model) + { + + + + + + + } *@ + +
NameDescriptionStudentsActions
@discipline.Name@discipline.Description + @foreach (var student in discipline.Students) + { + @student.Name + } + + Edit + Details + Delete +
+ + diff --git a/University/UniversityClientApp/Views/Home/Enter.cshtml b/University/UniversityClientApp/Views/Home/Enter.cshtml new file mode 100644 index 0000000..7754c3f --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Enter.cshtml @@ -0,0 +1,20 @@ +@{ + ViewData["Title"] = "Enter"; +} +
+

Вход в приложение

+
+
+
+
Логин:
+
+
+
+
Пароль:
+
+
+
+
+
+
+
diff --git a/University/UniversityClientApp/Views/Home/Index.cshtml b/University/UniversityClientApp/Views/Home/Index.cshtml index f8821f2..7c07625 100644 --- a/University/UniversityClientApp/Views/Home/Index.cshtml +++ b/University/UniversityClientApp/Views/Home/Index.cshtml @@ -3,6 +3,14 @@ }
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

+ + +
+ +
diff --git a/University/UniversityClientApp/Views/Home/Register.cshtml b/University/UniversityClientApp/Views/Home/Register.cshtml new file mode 100644 index 0000000..eb0880b --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Register.cshtml @@ -0,0 +1,37 @@ +@{ + ViewData["Title"] = "Register"; +} +
+

Регистрация

+
+
+
+
Логин:
+
+
+
+
Пароль:
+
+
+
+
Фамилия:
+
+
+
+
Имя:
+
+
+
+
Отчество:
+
+
+
+
Телефон:
+
+
+
+
+
+
+
diff --git a/University/UniversityClientApp/Views/Home/Report.cshtml b/University/UniversityClientApp/Views/Home/Report.cshtml new file mode 100644 index 0000000..45d00c0 --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Report.cshtml @@ -0,0 +1,40 @@ +@{ + ViewData["Title"] = "Student List by Teacher"; +} + +
+

@ViewData["Title"]

+
+ +
+
+
Teachers:
+
+ +
+
+
+
File Format:
+
+ +
+
+
+
File Name:
+
+ +
+
+
+
File Location:
+
+ +
+
+
+
+
+ +
+
+
diff --git a/University/UniversityClientApp/Views/Home/Statements.cshtml b/University/UniversityClientApp/Views/Home/Statements.cshtml new file mode 100644 index 0000000..f5f63db --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Statements.cshtml @@ -0,0 +1,63 @@ +@{ + ViewData["Title"] = "Manage Statement Records"; +} + +
+

@ViewData["Title"]

+
+ + + +
+
+
Title:
+
+ +
+
+
+
Date:
+
+ +
+
+
+
Teacher:
+
+ +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + @* @foreach (var record in Model) + { + + + + + + + } *@ + +
TitleDateTeacherActions
@record.Title@record.Date.ToString("d")@record.Teacher.Name + Edit + Details + Delete +
+ diff --git a/University/UniversityClientApp/Views/Home/Teachers.cshtml b/University/UniversityClientApp/Views/Home/Teachers.cshtml new file mode 100644 index 0000000..3668609 --- /dev/null +++ b/University/UniversityClientApp/Views/Home/Teachers.cshtml @@ -0,0 +1,78 @@ +@{ + ViewData["Title"] = "Manage Teachers"; +} + +
+

@ViewData["Title"]

+
+ + +
+
+
Name:
+
+ +
+
+
+
Academic Degree:
+
+ +
+
+
+
Position:
+
+ +
+
+
+
Disciplines:
+
+ +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + @* @foreach (var teacher in Model) + { + + + + + + + + + } *@ + +
NameAcademic DegreePositionDisciplinesActions
@teacher.Name@teacher.AcademicDegree@teacher.Position + @foreach (var discipline in teacher.Disciplines) + { + @discipline.Name + } + + Edit + Details + Delete +
+ +