@model Yavsc.Server.Models.IT.Project

@{
    ViewData["Title"] = "Edit";
}

<h2>Edit</h2>

<form asp-action="Edit">
    <div class="form-horizontal">
        <h4>Project</h4>
        <hr />
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <input type="hidden" asp-for="Id" />
        <div class="form-group">
            <label asp-for="Name" class="control-label col-md-2">Nom</label>
            <div class="col-md-10">
                  <input asp-for="Name" class="form-control" />
                <span asp-validation-for="Name" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Description" class="col-md-2 control-label">Description</label>
            <div class="col-md-10">
                <input asp-for="Description" class="form-control" />
                <span asp-validation-for="Description" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Repository" class="col-md-2 control-label">Repository</label>
            <div class="col-md-10">
                <select asp-for="Repository" class="form-control"
                asp-items="@ViewBag.Repository" >
                    </select>
                <span asp-validation-for="Repository" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Previsional" class="col-md-2 control-label">Prévisionel</label>
            <div class="col-md-10">
                <input asp-for="Previsional" class="form-control" />
                <span asp-validation-for="Previsional" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <div class="checkbox">
                    <input asp-for="Decided" />
                    <label asp-for="Decided"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Status" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <select asp-for="Status" class="form-control" asp-items="@ViewBag.Status"></select>
                <span asp-validation-for="Status" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Version" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <input asp-for="Version" class="form-control" />
                <span asp-validation-for="Version" class="text-danger"  ></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
</form>

<div>
    <a asp-action="Index">Back to List</a>
</div>

