Case_accounting/CaseAccounting/CaseAccountingCustomerView/Views/Lawyers/Update.cshtml

52 lines
1.8 KiB
Plaintext

@using CaseAccountingContracts.ViewModels
@{
ViewData["Title"] = "Юрист";
}
@{
<h4 class="fw-bold" id="lawyer-id" data-id="@ViewBag.Lawyer.Id">Изменение данных юриста</h4>
if (ViewBag.Lawyer == null)
{
<h3 class="display-4">Войдите в аккаунт</h3>
return;
}
<div id="error-div-shell" class="error-div-shell mb-2">
<div>
<p id="error-p" class="error-p"></p>
</div>
</div>
<p class="mb-0">Имя:</p>
<input value="@ViewBag.Lawyer.Name" type="text" id="name-input" name="name" class="form-control mb-3" />
<p class="mb-0">Фамилия:</p>
<input value="@ViewBag.Lawyer.Surname" type="text" id="surname-input" name="surname" class="form-control mb-3" />
<p class="mb-0">Отчество:</p>
<input value="@ViewBag.Lawyer.Patronymic" type="text" id="patronymic-input" name="patronymic" class="form-control mb-3" />
<p class="mb-0">Опыт работы:</p>
<input value="@ViewBag.Lawyer.Experience" type="number" id="experience-input" name="experience" class="form-control mb-3" />
<button id="create-button" type="button" class="btn btn-primary text-button">
Сохранить изменения
</button>
<div class="mt-4">
<div class="scrollable-table">
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th>Услуга</th>
<th>Цена</th>
<th>Дата</th>
</tr>
</thead>
<tbody id="scrollable-table__tbody">
</tbody>
</table>
</div>
</div>
}
<script src="~/js/Lawyers/lawyer-update.js" asp-append-version="true"></script>