@{
    ViewData["Title"] = "Porjekt erstellen/bearbeiten";
}

@model FSI.Prj.Mgt.Models.Project


<div class="card">

    <div class="card-header">
        <h5>Erstellen/Bearbeiten</h5>
    </div>

    <form asp-action="CreateEditProject" method="post">

        <div class="card-body">
            <div class="row">
                <div class="col mb-3">
                    <input hidden asp-for="Id" placeholder="ID" class="form-control" />
                </div>
            </div>

            <div class="row">
                <div class="col mb-3">
                    <input hidden asp-for="No" placeholder="Projekt-Nr." class="form-control" />
                </div>
            </div>

            <div class="row">
                <div class="col mb-3">
                    <select asp-for="PlantId" class="form-control" asp-items="@(new SelectList(@ViewBag.Plants, "Id", "OutSh"))"></select>
                </div>
            </div>

            <div class="row">
                <div class="col mb-3">
                    <input asp-for="Name" placeholder="Name" class="form-control" />
                </div>
            </div>

            <div class="row">
                <div class="col mb-3">
                    <input asp-for="Description" placeholder="Beschreibung" class="form-control" />
                </div>
            </div>

            <div class="row">
                <div class="col mb-3">
                    <select asp-for="Status" asp-items="Html.GetEnumSelectList<FSI.Prj.Mgt.Models.ProjectStatus>()" class="form-control"></select>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col mb-3">
                <select asp-for="PlantId" class="form-control" asp-items="@(new SelectList(@ViewBag.Plants, "Id", "OutSh"))"></select>
            </div>
        </div>

        <div class="card-footer">
            <button type="submit" class="btn btn-primary">Speichern</button>
        </div>

    </form>
</div>