Y2S1-Web_Apps_and_Services/ThAmCo.Events/Views/Events/Create.cshtml
2020-06-07 22:36:12 +01:00

49 lines
1.7 KiB
Plaintext

@model ThAmCo.Events.Models.EventCreateModel
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>Event</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="Title" class="control-label"></label>
<input asp-for="Title" class="form-control" />
<span asp-validation-for="Title" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Date" class="control-label"></label>
<input type="date" asp-for="Date" class="form-control" />
<span asp-validation-for="Date" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Duration" class="control-label"></label>
<input type="time" asp-for="Duration" class="form-control" />
<span asp-validation-for="Duration" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="TypeId" class="control-label"></label>
<input asp-for="TypeId" class="form-control"></input>
<span asp-validation-for="TypeId" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Continue" class="btn btn-default" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}