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

@model FSI.Prj.Mgt.Models.Plant

<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" />

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

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

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

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

        <div class="form-group">
            <input type="submit" value="Submit" class="btn btn-primary btn-block" />
        </div>

    </form>

</div>