38 lines
888 B
Plaintext
38 lines
888 B
Plaintext
|
@{
|
||
|
ViewData["Title"] = "Create";
|
||
|
}
|
||
|
|
||
|
<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="client" name="client" class="form-control" asp-items="@(new SelectList(@ViewBag.Clients,"Id", "Name", "Surname", "Patronymic"))"></select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Дата открытия счёта:</div>
|
||
|
<div class="col-8">
|
||
|
<input type="text" id="dateOpen" name="dateOpen" readonly />
|
||
|
</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>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
$('#client').on('change', function () {
|
||
|
check();
|
||
|
});
|
||
|
|
||
|
function check() {
|
||
|
$("#dateOpen").val(today);
|
||
|
}
|
||
|
</script>
|