Добавление отображений Views
This commit is contained in:
parent
8dd9647739
commit
8a8d99a4e5
@ -22,6 +22,6 @@ app.UseAuthorization();
|
||||
|
||||
app.MapControllerRoute(
|
||||
name: "default",
|
||||
pattern: "{controller=Home}/{action=Index}/{id?}");
|
||||
pattern: "{controller=Home}/{action=Enter}/{id?}");
|
||||
|
||||
app.Run();
|
||||
|
23
Bank/BankClientApp/Views/Home/Enter.cshtml
Normal file
23
Bank/BankClientApp/Views/Home/Enter.cshtml
Normal file
@ -0,0 +1,23 @@
|
||||
@using BankClientApp
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Страница пользователя";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Страница пользователя</h1>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
@{
|
||||
<img src="~/lib/logo.png" style="width: 80%"/>
|
||||
|
||||
if (APIClient.Client == null)
|
||||
{
|
||||
<h3 class="display-4">Сначала авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
|
||||
<h3 class="display-4">Здравствуйтe, @APIClient.Client.Name @APIClient.Client.Patronymic</h3>
|
||||
}
|
||||
</div>
|
@ -1,8 +1,8 @@
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
ViewData["Title"] = "Добро пожаловать";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
||||
<h1 class="display-4">Добро пожаловать</h1>
|
||||
|
||||
</div>
|
||||
|
14
Bank/BankClientApp/Views/Home/Login.cshtml
Normal file
14
Bank/BankClientApp/Views/Home/Login.cshtml
Normal file
@ -0,0 +1,14 @@
|
||||
@{
|
||||
ViewData["Title"] = "Логин";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Вход в приложение</h2>
|
||||
</div>
|
||||
|
||||
<form class="form-signin text-center" method="post">
|
||||
<h1 class="h3 mb-3 font-weight-normal">Логин</h1>
|
||||
<input type="email" id="login" name="login" class="form-control" placeholder="Почта" required autofocus>
|
||||
<input type="password" id="password" name="password" class="form-control" placeholder="Пароль" required>
|
||||
<button class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="Login">Войти</button>
|
||||
</form>
|
@ -1,6 +1,35 @@
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
@model ClientViewModel
|
||||
|
||||
<p>Use this page to detail your site's privacy policy.</p>
|
||||
@{
|
||||
ViewData["Title"] = "Личный кабинет";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Личные данные</h2>
|
||||
</div>
|
||||
<form method="post" class="form-signin">
|
||||
<div class="row">
|
||||
<div class="col-4">Логин:</div>
|
||||
<input type="email" id="login" name="login" class="form-control" placeholder="Почта" value=@Html.DisplayFor(modelItem => Model.Email) required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<input type="password" id="password" name="password" class="form-control" placeholder="Пароль" value=@Html.DisplayFor(modelItem => Model.Password) required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Имя:</div>
|
||||
<input type="text" id="name" name="name" class="form-control" placeholder="Имя" value=@Html.DisplayFor(modelItem => Model.Name) required>
|
||||
<div class="col-4">Фамилия:</div>
|
||||
<input type="text" id="surname" name="surname" class="form-control" placeholder="Фамилия" value=@Html.DisplayFor(modelItem => Model.Surname) required>
|
||||
<div class="col-4">Отчество:</div>
|
||||
<input type="text" id="patronymic" name="patronymic" class="form-control" placeholder="Отчество" value=@Html.DisplayFor(modelItem => Model.Patronymic) required>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Телефон:</div>
|
||||
<input type="text" id="telephone" name="telephone" class="form-control" placeholder="Телефон" value=@Html.DisplayFor(modelItem => Model.Telephone) required>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<button class="btn btn-lg btn-warning btn-block mb-2" type="submit" asp-controller="Home" asp-action="Privacy">Coхранить</button>
|
||||
<button class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="Logout">Выйти из аккаунта</button>
|
||||
</div>
|
||||
</form>
|
||||
|
19
Bank/BankClientApp/Views/Home/Register.cshtml
Normal file
19
Bank/BankClientApp/Views/Home/Register.cshtml
Normal file
@ -0,0 +1,19 @@
|
||||
@{
|
||||
ViewData["Title"] = "Регистрация";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Регистрация</h2>
|
||||
</div>
|
||||
|
||||
<form class="form-signin text-center" method="post">
|
||||
<h1 class="h3 mb-3 font-weight-normal">Регистрация</h1>
|
||||
<input type="email" id="login" name="login" class="form-control" placeholder="Почта" required>
|
||||
<input type="password" id="password" name="password" class="form-control" placeholder="Пароль" required>
|
||||
<input type="text" id="name" name="name" class="form-control" placeholder="Имя" required>
|
||||
<input type="text" id="surname" name="surname" class="form-control" placeholder="Фамилия" required>
|
||||
<input type="text" id="patronymic" name="patronymic" class="form-control" placeholder="Отчество" required>
|
||||
<input type="text" id="telephone" name="telephone" class="form-control" placeholder="Телефон" required>
|
||||
|
||||
<button class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="Register">Регистрация</button>
|
||||
</form>
|
Loading…
x
Reference in New Issue
Block a user