38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
@{
|
|
ViewData["Title"] = "CreateDiy";
|
|
}
|
|
<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 m-3">
|
|
<div class="col-4">Описание:</div>
|
|
<div class="col-8"><textarea cols="50" id="description" name="description" rows="5"></textarea>:</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Дата создания:</div>
|
|
<div class="col-8">@Html.TextBox("dateCreate" ,"" ,new {type="Date"})</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Задание:</div>
|
|
<div class="col-8">
|
|
<select id="task" name="task" class="form-control" asp-items="@(new SelectList(@ViewBag.Tasks,"Id", "Title"))"></select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Интересы:</div>
|
|
<div class="col-8">
|
|
@Html.ListBox("interests", (MultiSelectList)ViewBag.Interests)
|
|
</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> |