Исполнитель: фиксим ошибки

This commit is contained in:
Yunusov_Niyaz 2024-05-01 18:50:08 +04:00
parent 1665eb8585
commit e2da5a56ab
5 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,18 @@
@{
ViewData["Title"] = "DeleteVisit";
}
<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">
<select id="visit" name="visit" class="form-control" asp-items="@(new SelectList(@ViewBag.Visits, "Id", "VisitName"))"></select>
</div>
</div>
<div class="row">
<div class="col-4"></div>
<div class="col-8"><input type="submit" value="Удалить" class="btn btn-danger" /></div>
</div>
</form>

View File

@ -6,7 +6,7 @@
</div>
<form method="post">
<div class="row">
<div class="col-4">Login:</div>
<div class="col-4">Логин:</div>
<div class="col-8"><input type="text" name="login" /></div>
</div>
<div class="row">

View File

@ -0,0 +1,25 @@
@using VeterinaryContracts.ViewModels;
@{
ViewData["Title"] = "UpdateVisit";
}
<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">
<select id="visit" name="visit" class="form-control" asp-items="@(new SelectList(@ViewBag.Visits, "Id", "VisitName"))"></select>
</div>
</div>
<div class="row">
<div class="col-4">Название:</div>
<div class="col-8"><input type="text" name="name" id="name" class="form-control" /></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

@ -15,6 +15,8 @@
}
<p>
<a asp-action="CreateVisit">Создать визит</a>
<a asp-action="UpdateVisit">Изменить визит</a>
<a asp-action="DeleteeVisit">Удалить визит</a>
</p>
<table class="table">
<thead>

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - VeterinaryShowOwnerApp</title>
<title>@ViewData["Title"] - Ветеринарная клиника</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/VeterinaryShowOwnerApp.styles.css" asp-append-version="true" />