64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
@using UniversityContracts.ViewModels
|
|
@model List<PlanOfStudyViewModel>
|
|
@{
|
|
ViewData["Title"] = "Управление планами обучений";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h2 class="display-4">@ViewData["Title"]</h2>
|
|
</div>
|
|
|
|
<form asp-action="CreatePlanOfStudy" method="post">
|
|
<div class="row">
|
|
<div class="col-4">Профиль:</div>
|
|
<div class="col-8">
|
|
<input type="text" name="profile" id="profile" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-8"></div>
|
|
<div class="col-4 mt-2">
|
|
<input type="submit" value="Создать план обучения" class="btn btn-danger" />
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Profile</th>
|
|
<th>FormOfStudy</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var planOfStudy in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => planOfStudy.Id)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => planOfStudy.Profile)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => planOfStudy.FormOfStudy)
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
}
|
|
</tbody>
|
|
</table>
|