CourseWork/University/UniversityClientAppWorker/Views/Home/InfoAttestation.cshtml

38 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-05-29 21:59:17 +04:00
@using UniversityContracts.ViewModels
@model AttestationViewModel
@{
ViewData["Title"] = "Аттестация";
}
<div class="text-center">
<h2 class="display-4">Аттестация</h2>
</div>
<form asp-action="UpdateAttestation" method="post">
<div class="row">
<div class="col-4">Форма оценивания:</div>
<div class="col-8">
<select name="formOfEvaluation" id="formOfEvaluation" class="form-control" value="@Model.FormOfEvaluation">
<option value="Зачёт">Зачёт</option>
<option value="Экзамен">Экзамен</option>
<option value="Дифферинцируемый зачёт">Дифферинцируемый зачёт</option>
</select>
</div>
</div>
<div class="row">
<div class="col-4">Студент:</div>
<div class="col-8">
<select name="student" id="student" class="form-control" asp-items="@(new SelectList(ViewBag.Students, "Id", "Name", Model.StudentId))"></select>
</div>
</div>
<div class="row">
<div class="col-4">Оценка:</div>
<div class="col-8">
<select id="score" name="score" class="form-control" asp-items="@(new SelectList(ViewBag.AttestationScore, "Score", Model.Score.ToString() ?? ""))"></select>
</div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4 mt-2">
<input type="submit" value="Сохранить" class="btn btn-primary" />
</div>
</div>
</form>