mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
Dodawanie/Usuwanie
Dodawanie/Usuwanie (nie chce tu przeklinać)
This commit is contained in:
36
WebApp/Views/Events/Create.cshtml
Normal file
36
WebApp/Views/Events/Create.cshtml
Normal file
@@ -0,0 +1,36 @@
|
||||
@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="Name"></label>
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Place"></label>
|
||||
<input asp-for="Place" class="form-control" />
|
||||
<span asp-validation-for="Place" 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="Date"></label>
|
||||
<input asp-for="Date" type="datetime-local" class="form-control" />
|
||||
<span asp-validation-for="Date" class="text-danger"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{
|
||||
await Html.RenderPartialAsync("_ValidationScriptsPartial");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user