mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
@model WebApp.Entities.Event
|
|
|
|
@{
|
|
ViewData["Title"] = "Create Event";
|
|
}
|
|
|
|
<h2>Create Event</h2>
|
|
|
|
<form asp-action="Create" method="post">
|
|
<div class="form-group">
|
|
<label asp-for="Title"></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="Location"></label>
|
|
<input asp-for="Location" class="form-control" />
|
|
<span asp-validation-for="Location" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Description"></label>
|
|
<textarea asp-for="Description" class="form-control"></textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="EventDate"></label>
|
|
<input asp-for="EventDate" type="datetime-local" class="form-control" />
|
|
<span asp-validation-for="EventDate" class="text-danger"></span>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
</form>
|
|
|
|
@section Scripts {
|
|
@{
|
|
await Html.RenderPartialAsync("_ValidationScriptsPartial");
|
|
}
|
|
}
|