Zakharov_Rostislav 2024-05-01 13:30:28 +04:00
commit 980013165b
6 changed files with 130 additions and 2 deletions

View File

@ -9,6 +9,8 @@
<ItemGroup>
<Content Remove="Views\Home\CardCreate.cshtml" />
<Content Remove="Views\Home\Operation.cshtml" />
<Content Remove="Views\Home\Register.cshtml" />
<Content Remove="Views\Home\Requests.cshtml" />
</ItemGroup>
<ItemGroup>
@ -27,6 +29,8 @@
<ItemGroup>
<_ContentIncludedByDefault Remove="Views\Home\CardCreate.cshtml" />
<_ContentIncludedByDefault Remove="Views\Home\Register.cshtml" />
<_ContentIncludedByDefault Remove="Views\Home\Requests.cshtml" />
</ItemGroup>
<ItemGroup>
@ -35,6 +39,16 @@
<ItemGroup>
<None Include="Views\Home\CardCreate.cshtml" />
<None Include="Views\Home\Register.cshtml" />
<None Include="Views\Home\Requests.cshtml" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="Views\Home\Requests.cshtml" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="Views\Home\Register.cshtml" />
</ItemGroup>
</Project>

View File

@ -8,7 +8,7 @@
<div class="row">
<div class="col-4">Сумма:</div>
<div class="col-8">
<input type="text" name="number" id="number" />
<input type="text" name="sum" id="sum" />
</div>
</div>
<div class="row">

View File

@ -17,7 +17,7 @@
<div class="row">
<div class="col-4">Пароль:</div>
<div class="col-8">
<input type="password" name="password"
<input type="text" name="password"
value="@Model.Password" />
</div>
</div>

View File

@ -0,0 +1,28 @@
@{
ViewData["Title"] = "Register";
}
<div class="text-center">
<h2 class="display-4">Регистрация</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Email:</div>
<div class="col-8"><input type="text" name="email" /></div>
</div>
<div class="row">
<div class="col-4">Пароль:</div>
<div class="col-8"><input type="password" name="password" /></div>
</div>
<div class="row">
<div class="col-4">ФИО:</div>
<div class="col-8"><input type="text" name="fio" /></div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4">
<input type="submit" value="Регистрация"
class="btn btn-primary" />
</div>
</div>
</form>

View File

@ -0,0 +1,32 @@
@{
ViewData["Title"] = "CardCreate";
}
<div class="text-center">
<h2 class="display-4">Создание карты</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Номер:</div>
<div class="col-8">
<input type="text" name="number" id="number" />
</div>
</div>
<div class="row">
<div class="col-4">CVV:</div>
<div class="col-8">
<input type="text" name="cvv" id="cvv" />
</div>
</div>
<div class="row">
<div class="col-4">PIN:</div>
<div class="col-8">
<input type="text" name="pin" id="pin" />
</div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4">
<input type="submit" value="Создать" class="btn btn-primary" />
</div>
</div>
</form>

View File

@ -0,0 +1,54 @@
@using BankContracts.ViewModels
@model List<RequestViewModel>
@{
ViewData["Title"] = "Requests";
}
<div class="text-center">
<h1 class="display-4">Запросы</h1>
</div>
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
<a asp-action="OperationCreate">Создать запрос</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
Сумма
</th>
<th>
Время выполнения
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem =>
item.Id)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.Sum)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.RequestTime)
</td>
</tr>
}
</tbody>
</table>
}
</div>