2024-05-27 00:50:40 +04:00
|
|
|
@using UniversityContracts.ViewModels
|
|
|
|
@model List<PlanOfStudyViewModel>
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Управление планами обучений";
|
2024-04-29 19:06:11 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2024-05-27 00:50:40 +04:00
|
|
|
<h2 class="display-4">@ViewData["Title"]</h2>
|
|
|
|
</div>
|
2024-05-30 00:22:02 +04:00
|
|
|
<div class="btn-group">
|
|
|
|
<form asp-action="ReportPlanOfStudys" method="get">
|
|
|
|
<input type="submit" value="Отчёт по планам обучения" class="btn btn-info" />
|
|
|
|
</form>
|
|
|
|
<form asp-action="ReportPlanOfStudyAndStudents" method="get">
|
|
|
|
<input type="submit" value="Сведения по планам обучения" class="btn btn-secondary" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-05-27 00:50:40 +04:00
|
|
|
<form asp-action="CreatePlanOfStudy" method="post">
|
2024-05-30 00:22:02 +04:00
|
|
|
<div class="row mt-2">
|
2024-05-27 00:50:40 +04:00
|
|
|
<div class="col-4">Профиль:</div>
|
|
|
|
<div class="col-8">
|
|
|
|
<input type="text" name="profile" id="profile" class="form-control" />
|
|
|
|
</div>
|
2024-04-29 19:06:11 +04:00
|
|
|
</div>
|
2024-05-27 00:50:40 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Форма обучения:</div>
|
|
|
|
<div class="col-8">
|
|
|
|
<input name="formOfStudy" id="formOfStudy" class="form-control" multiple asp-items="ViewBag.PlanOfStudys"></input>
|
|
|
|
</div>
|
2024-04-29 19:06:11 +04:00
|
|
|
</div>
|
2024-05-28 19:50:44 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Преподаватели:</div>
|
|
|
|
<div class="col-8">
|
2024-05-29 02:49:07 +04:00
|
|
|
<div class="scrollable-list">
|
2024-05-28 19:50:44 +04:00
|
|
|
@foreach (var teacher in ViewBag.Teachers)
|
|
|
|
{
|
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="checkbox" name="teacherIds" value="@teacher.Id" id="student-@teacher.Id">
|
|
|
|
<label class="form-check-label" for="teacher-@teacher.Id">
|
|
|
|
@teacher.Name
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
}
|
2024-05-29 02:49:07 +04:00
|
|
|
</div>
|
2024-05-28 19:50:44 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-27 00:50:40 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-8"></div>
|
|
|
|
<div class="col-4 mt-2">
|
2024-05-27 22:35:38 +04:00
|
|
|
<input type="submit" value="Создать план обучения" class="btn btn-primary" />
|
2024-05-27 00:50:40 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-05-27 01:11:57 +04:00
|
|
|
<th>Id</th>
|
2024-05-30 00:22:02 +04:00
|
|
|
<th>Профиль</th>
|
|
|
|
<th>Форма обучения</th>
|
|
|
|
<th>Действия</th>
|
2024-05-27 00:50:40 +04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var planOfStudy in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => planOfStudy.Id)
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-05-27 17:32:21 +04:00
|
|
|
@Html.DisplayFor(modelItem => planOfStudy.Profile)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => planOfStudy.FormOfStudy)
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-05-27 22:35:38 +04:00
|
|
|
<div class="btn-group">
|
|
|
|
<a asp-controller="Home" asp-action="InfoPlanOfStudy" asp-route-id="@planOfStudy.Id" class="btn btn-warning">Изменить</a>
|
|
|
|
<form asp-controller="Home" asp-action="DeletePlanOfStudy" method="post">
|
|
|
|
<input type="hidden" name="id" value="@planOfStudy.Id" />
|
|
|
|
<button type="submit" class="btn btn-danger">Удалить</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-05-27 00:50:40 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2024-05-27 17:32:21 +04:00
|
|
|
}
|
2024-05-27 00:50:40 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|