@{
    ViewData["Title"] = "Projekt erstellen/bearbeiten";
    Layout = null;
}

@model FSI.Prj.Mgt.Models.Project

<div class="row">

    <div asp-validation-summary="All" class="text-danger"></div>

    <form asp-action="AddOrEdit" asp-route-id="@Model.Id" onsubmit="return jQueryAjaxPost(this);">

        <input hidden asp-for="Id" placeholder="ID" class="form-control" />
        <input hidden asp-for="CreationTimeStamp" class="form-control" />
        <input hidden asp-for="ModificationTimeStamp" class="form-control" />
        <input hidden asp-for="No" placeholder="Projekt-Nr." class="form-control" />
        

        <div class="form-group">
            <label asp-for="Name" class="control-label"></label>
            <input asp-for="Name" class="form-control" id="ctrlToFocus"/>
            <span asp-validation-for="Name" class="text-danger"></span>
        </div>

        <div class="form-group">
            <label asp-for="Description" class="control-label"></label>
            <input asp-for="Description" class="form-control" />
            <span asp-validation-for="Description" class="text-danger"></span>
        </div>

        <div class="form-group">
            <label asp-for="Status" class="control-label"></label>
            <select asp-for="Status" asp-items="Html.GetEnumSelectList<FSI.Prj.Mgt.Models.ProjectStatus>()" class="form-control"></select>
            <span asp-validation-for="Status" class="text-danger"></span>
        </div>

     @*    <div class="form-group">
            <label asp-for="OrganizationId" class="control-label"></label>
            <select asp-for="OrganizationId" asp-items="@(new SelectList(Model.Organizations, "Id", "FullShortName"))" class="form-control"></select>
        </div>
              *@
        <hr />
        <div class="form-group">
            <input type="submit" value="Submit" class="btn btn-primary btn-block" />
        </div>

    </form>

</div>

