41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
|
@using UniversityContracts.ViewModels
|
||
|
@model StatementViewModel
|
||
|
@{
|
||
|
ViewData["Title"] = "Ведомость";
|
||
|
}
|
||
|
|
||
|
<div class="text-center">
|
||
|
<h2 class="display-4">@ViewData["Title"] - @Model.Id</h2>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<form asp-action="UpdateStatement" method="post">
|
||
|
<div class="row">
|
||
|
<div class="col-4">Название:</div>
|
||
|
<div class="col-8">
|
||
|
<input type="text" name="name" id="name" class="form-control" value="@Model.Name"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Дата:</div>
|
||
|
<div class="col-8">
|
||
|
<input type="datetime-local" name="date" id="date" class="form-control" value="@Model.Date"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Преподаватель:</div>
|
||
|
<div class="col-8">
|
||
|
<select id="teacher" name="teacher" class="form-control" asp-items="@(new SelectList(@ViewBag.Teachers,"Id", "Name"))" value="@Model.TeacherId"></select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-8"></div>
|
||
|
<div class="col-4 mt-2">
|
||
|
<form asp-action="Statements">
|
||
|
<input type="submit" value="Отмена" class="btn btn-primary" />
|
||
|
</form>
|
||
|
<input type="hidden" name="id" value="@Model.Id" />
|
||
|
<input type="submit" value="Сохранить" class="btn btn-danger" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|