CourseWork_SchoolStudyAgain/SchoolAgainStudy/TeacherWebClient/Views/Home/CreateLesson.cshtml
2023-05-18 20:00:05 +04:00

35 lines
1.0 KiB
Plaintext

@{
ViewData["Title"] = "CreateLesson";
}
<div class="text-center">
<h2 class="display-4">Создание занятия</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Название:</div>
<div class="col-8"><input type="text" name="title" id="title" /></div>
</div>
<div class="row">
<div class="col-4">Дата проведения:</div>
<div class="col-8">@Html.TextBox("dateEvent" ,"" ,new {type="Date"})</div>
</div>
<div class="row">
<div class="col-4">Изделие:</div>
<div class="col-8">
<select id="product" name="product" class="form-control" asp-items="@(new SelectList(@ViewBag.Products,"Id", "Title"))"></select>
</div>
</div>
<div class="row">
<div class="col-4">Материалы:</div>
<div class="col-8">
@Html.ListBox("materials", (MultiSelectList)ViewBag.Materials)
</div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4"><input type="submit" value="Создать" class="btn btn-primary" /></div>
</div>
</form>