2024-05-26 22:28:34 +04:00
|
|
|
@using UniversityContracts.ViewModels
|
|
|
|
@model List<StatementViewModel>
|
|
|
|
@{
|
2024-05-30 02:30:33 +04:00
|
|
|
ViewData["Title"] = "Управление ведомостями";
|
2024-04-28 16:30:27 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h2 class="display-4">@ViewData["Title"]</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
<div class="row">
|
2024-05-30 02:30:33 +04:00
|
|
|
<div class="col-4">Название:</div>
|
2024-04-28 16:30:27 +04:00
|
|
|
<div class="col-8">
|
2024-05-27 10:21:44 +04:00
|
|
|
<input type="text" name="name" id="name" class="form-control" />
|
2024-04-28 16:30:27 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-05-30 02:30:33 +04:00
|
|
|
<div class="col-4">Дата:</div>
|
2024-04-28 16:30:27 +04:00
|
|
|
<div class="col-8">
|
2024-05-27 10:21:44 +04:00
|
|
|
<input type="datetime-local" name="date" id="date" class="form-control" />
|
2024-04-28 16:30:27 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-05-30 02:30:33 +04:00
|
|
|
<div class="col-4">Преподаватель:</div>
|
2024-04-28 16:30:27 +04:00
|
|
|
<div class="col-8">
|
2024-05-27 10:21:44 +04:00
|
|
|
<select id="teacher" name="teacher" class="form-control" asp-items="@(new SelectList(@ViewBag.Teachers,"Id", "Name"))"></select>
|
2024-04-28 16:30:27 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-8"></div>
|
|
|
|
<div class="col-4">
|
|
|
|
<input type="submit" value="Create Statement Record" class="btn btn-primary" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-05-26 22:28:34 +04:00
|
|
|
<th>Id</th>
|
2024-05-30 02:30:33 +04:00
|
|
|
<th>Название</th>
|
|
|
|
<th>Дата</th>
|
|
|
|
<th>Преподаватель</th>
|
2024-04-28 16:30:27 +04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2024-05-26 22:28:34 +04:00
|
|
|
<tbody>@foreach (var item in Model)
|
2024-04-28 16:30:27 +04:00
|
|
|
{
|
2024-05-26 22:28:34 +04:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Date)
|
|
|
|
</td>
|
2024-04-28 16:30:27 +04:00
|
|
|
<td>
|
2024-05-27 20:10:56 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.TeacherName)
|
2024-04-28 16:30:27 +04:00
|
|
|
</td>
|
2024-05-26 22:28:34 +04:00
|
|
|
</tr>
|
|
|
|
}
|
2024-04-28 16:30:27 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|