@model GreenTree.Strohrmann.ERP.Web.Models.Business.EmployeeModel

@{
    ViewData["Title"] = "Neuer Mitarbeiter";
}

<h1>Mitarbeiter erstellen</h1>

<h4>Neuer Mitarbeiter</h4>
<hr />

<form asp-action="Create">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <div class="card-deck">
        <div class="card card-maxw bg-light">
            <div class="card-header pb-1">
                <h6>Mitarbeiterdaten</h6>
            </div>
            <div class="card-body">
                <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="Lastname" class="control-label"></label>
                    <input asp-for="Lastname" class="form-control" />
                    <span asp-validation-for="Lastname" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Birthdate" class="control-label"></label>
                    <input asp-for="Birthdate" type="date" class="form-control" />
                    <span asp-validation-for="Birthdate" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="MailAddress" class="control-label"></label>
                    <input asp-for="MailAddress" class="form-control" />
                    <span asp-validation-for="MailAddress" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="EmployeeDegree" class="control-label"></label>
                    @Html.DropDownListFor(e => e.EmployeeDegree.Id, 
                        (IEnumerable<SelectListItem>)ViewData["AvailableDegrees"], 
                        new { @class = "form-control" })
                    <span asp-validation-for="EmployeeDegree" class="text-danger"></span>
                </div>
            </div>
        </div>
    </div>

    <hr />

    <div class="form-group d-flex mt-3">
        <input type="submit" value="Erstellen" class="btn btn-primary" />
        <div class="align-self-center ml-3">
            <a asp-action="Index">Zurück zur Liste</a>
        </div>
    </div>
</form>