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

36 lines
1.3 KiB
Plaintext

@using CaseAccountingContracts.ViewModels
@{
ViewData["Title"] = "Юрист";
}
@{
<h4 class="fw-bold" id="vb-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="update-button" type="button" class="button-primary text-button">
Сохранить изменения
</button>
}
<script src="~/js/Lawyers/lawyer-update.js" asp-append-version="true"></script>