34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
@using CaseAccountingContracts.ViewModels
|
|
|
|
@{
|
|
ViewData["Title"] = "Контракт";
|
|
}
|
|
|
|
@{
|
|
|
|
<h4 class="fw-bold" id="contr-id" data-id="@ViewBag.Contract.Id">Изменение данных контракта</h4>
|
|
|
|
if (ViewBag.Contract == 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.Contract.Service" type="text" id="service-input" name="service" class="form-control mb-3" />
|
|
<p class="mb-0">Цена:</p>
|
|
<input value="@ViewBag.Contract.Coast" type="number" id="coast-input" name="coast" class="form-control mb-3" step="0.01"/>
|
|
<p class="mb-0">Дата:</p>
|
|
<input value="@ViewBag.Contract.Date.ToString("yyyy-MM-dd")" type="date" id="date-input" name="date" class="form-control mb-3" />
|
|
|
|
<button id="update-button" type="button" class="button-primary text-button">
|
|
Сохранить изменения
|
|
</button>
|
|
}
|
|
|
|
<script src="~/js/Contracts/contract-update.js" asp-append-version="true"></script> |