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 +
+ +