2024-05-27 17:32:21 +04:00
|
|
|
@using UniversityContracts.ViewModels
|
|
|
|
@model PlanOfStudyViewModel
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "План обучения";
|
|
|
|
}
|
|
|
|
<div class="text-center">
|
2024-05-30 00:22:02 +04:00
|
|
|
<h2 class="display-4">@ViewData["Title"] - @Model.Id</h2>
|
2024-05-27 17:32:21 +04:00
|
|
|
</div>
|
2024-05-28 17:08:06 +04:00
|
|
|
<form asp-action="UpdatePlanOfStudy" method="post">
|
2024-05-27 17:32:21 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Профиль:</div>
|
|
|
|
<div class="col-8"><input type="text" name="profile" value="@Model.Profile" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Форма обучения:</div>
|
|
|
|
<div class="col-8"><input type="text" name="formOfStudy" value="@Model.FormOfStudy" /></div>
|
|
|
|
</div>
|
2024-05-28 17:08:06 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Преподаватели:</div>
|
|
|
|
<div class="col-8">
|
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="teacher-@teacher.Id"
|
|
|
|
checked="@(Model.PlanOfStudyTeachers.ContainsKey(teacher.Id))">
|
|
|
|
<label class="form-check-label" for="teacher-@teacher.Id">
|
|
|
|
@teacher.Name
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
}
|
2024-05-28 17:08:06 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-27 17:32:21 +04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-8"></div>
|
2024-05-28 17:08:06 +04:00
|
|
|
<div class="col-4">
|
2024-05-30 00:22:02 +04:00
|
|
|
<form asp-action="Index">
|
|
|
|
<input type="submit" value="Отмена" class="btn btn-primary" />
|
|
|
|
</form>
|
2024-05-28 17:08:06 +04:00
|
|
|
<input type="hidden" name="id" value="@Model.Id" />
|
|
|
|
<input type="submit" value="Сохранить" class="btn btn-danger" />
|
|
|
|
</div>
|
2024-05-27 17:32:21 +04:00
|
|
|
</div>
|
|
|
|
</form>
|