Y2S1-Web_Apps_and_Services/ThAmCo.Events/Views/GuestBookings/Create.cshtml

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2020-06-07 21:36:12 +00:00
@model ThAmCo.Events.Data.GuestBooking
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>GuestBooking</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="CustomerId" class="control-label"></label>
<select asp-for="CustomerId" class ="form-control" asp-items="ViewBag.CustomerId"></select>
</div>
<div class="form-group">
<label asp-for="EventId" class="control-label"></label>
<select asp-for="EventId" class ="form-control" asp-items="ViewBag.EventId"></select>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input asp-for="Attended" /> @Html.DisplayNameFor(model => model.Attended)
</label>
</div>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}