JPHD-2021-backend/Pages/Sessions/Create.cshtml

65 lines
2.5 KiB
Plaintext

@page
@model _2021_backend.Pages.Sessions.CreateModel
@{
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h4>InterviewTime</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="InterviewTime.Day" class="control-label"></label>
<input asp-for="InterviewTime.Day" class="form-control" />
<span asp-validation-for="InterviewTime.Day" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="InterviewTime.BeginTime" class="control-label"></label>
<input asp-for="InterviewTime.BeginTime" class="form-control" />
<span asp-validation-for="InterviewTime.BeginTime" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="InterviewTime.Place" class="control-label"></label>
<select asp-for="InterviewTime.Place" class="form-control">
<option value="200">200</option>
<option value="204">204</option>
</select>
<span asp-validation-for="InterviewTime.Place" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="InterviewTime.Capacity" class="control-label"></label>
<input asp-for="InterviewTime.Capacity" class="form-control" />
<span asp-validation-for="InterviewTime.Capacity" class="text-danger"></span>
</div>
<div class="form-group form-check">
<label class="form-check-label">
<input class="form-check-input" asp-for="InterviewTime.SendSMS" /> @Html.DisplayNameFor(model => model.InterviewTime.SendSMS)
</label>
</div>
<div class="form-group form-check">
<label class="form-check-label">
<input class="form-check-input" asp-for="CreateTwo" /> @Html.DisplayNameFor(model => model.CreateTwo)
</label>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-page="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}