From 8a8d99a4e592b07efd45aed3a6bf125fd12f48e4 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Wed, 1 May 2024 04:18:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B9=20Views?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankClientApp/Program.cs | 2 +- Bank/BankClientApp/Views/Home/Enter.cshtml | 23 +++++++++++ Bank/BankClientApp/Views/Home/Index.cshtml | 6 +-- Bank/BankClientApp/Views/Home/Login.cshtml | 14 +++++++ Bank/BankClientApp/Views/Home/Privacy.cshtml | 39 ++++++++++++++++--- Bank/BankClientApp/Views/Home/Register.cshtml | 19 +++++++++ 6 files changed, 94 insertions(+), 9 deletions(-) create mode 100644 Bank/BankClientApp/Views/Home/Enter.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Login.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Register.cshtml diff --git a/Bank/BankClientApp/Program.cs b/Bank/BankClientApp/Program.cs index 559dd3a..59f49e1 100644 --- a/Bank/BankClientApp/Program.cs +++ b/Bank/BankClientApp/Program.cs @@ -22,6 +22,6 @@ app.UseAuthorization(); app.MapControllerRoute( name: "default", - pattern: "{controller=Home}/{action=Index}/{id?}"); + pattern: "{controller=Home}/{action=Enter}/{id?}"); app.Run(); diff --git a/Bank/BankClientApp/Views/Home/Enter.cshtml b/Bank/BankClientApp/Views/Home/Enter.cshtml new file mode 100644 index 0000000..e14b5ff --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Enter.cshtml @@ -0,0 +1,23 @@ +@using BankClientApp + +@{ + ViewData["Title"] = "Страница пользователя"; +} + +
+

Страница пользователя

+
+ +
+ @{ + + + if (APIClient.Client == null) + { +

Сначала авторизируйтесь

+ return; + } + +

Здравствуйтe, @APIClient.Client.Name @APIClient.Client.Patronymic

+ } +
diff --git a/Bank/BankClientApp/Views/Home/Index.cshtml b/Bank/BankClientApp/Views/Home/Index.cshtml index d2d19bd..458e04e 100644 --- a/Bank/BankClientApp/Views/Home/Index.cshtml +++ b/Bank/BankClientApp/Views/Home/Index.cshtml @@ -1,8 +1,8 @@ @{ - ViewData["Title"] = "Home Page"; + ViewData["Title"] = "Добро пожаловать"; }
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

+

Добро пожаловать

+
diff --git a/Bank/BankClientApp/Views/Home/Login.cshtml b/Bank/BankClientApp/Views/Home/Login.cshtml new file mode 100644 index 0000000..8fdbbc9 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Login.cshtml @@ -0,0 +1,14 @@ +@{ + ViewData["Title"] = "Логин"; +} + +
+

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

+
+ +
+

Логин

+ + + +
diff --git a/Bank/BankClientApp/Views/Home/Privacy.cshtml b/Bank/BankClientApp/Views/Home/Privacy.cshtml index af4fb19..78cc1ae 100644 --- a/Bank/BankClientApp/Views/Home/Privacy.cshtml +++ b/Bank/BankClientApp/Views/Home/Privacy.cshtml @@ -1,6 +1,35 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

+@model ClientViewModel -

Use this page to detail your site's privacy policy.

+@{ + ViewData["Title"] = "Личный кабинет"; +} + +
+

Личные данные

+
+
+
+
Логин:
+ Model.Email) required> +
+
+
Пароль:
+ Model.Password) required> +
+
+
Имя:
+ Model.Name) required> +
Фамилия:
+ Model.Surname) required> +
Отчество:
+ Model.Patronymic) required> +
+
+
Телефон:
+ Model.Telephone) required> +
+
+ + +
+
diff --git a/Bank/BankClientApp/Views/Home/Register.cshtml b/Bank/BankClientApp/Views/Home/Register.cshtml new file mode 100644 index 0000000..3573af3 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Register.cshtml @@ -0,0 +1,19 @@ +@{ + ViewData["Title"] = "Регистрация"; +} + +
+

Регистрация

+
+ +
+

Регистрация

+ + + + + + + + +