51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
@model ThAmCo.Events.Data.Staff
|
|
|
|
@{
|
|
ViewData["Title"] = "Create";
|
|
}
|
|
|
|
<h2>Create</h2>
|
|
|
|
<h4>Staff</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="Surname" class="control-label"></label>
|
|
<input asp-for="Surname" class="form-control" />
|
|
<span asp-validation-for="Surname" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="FirstName" class="control-label"></label>
|
|
<input asp-for="FirstName" class="form-control" />
|
|
<span asp-validation-for="FirstName" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Email" class="control-label"></label>
|
|
<input asp-for="Email" class="form-control" />
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input asp-for="FirstAid" /> @Html.DisplayNameFor(model => model.FirstAid)
|
|
</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");}
|
|
}
|