@model Yavsc.Server.Models.Access.CircleAuthorizationToFile

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

<h2>Edit</h2>

<form asp-action="Edit">
    <div class="form-horizontal">
        <h4>@SR["Autorisation au fichier"]</h4>
        <hr />
        <div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
        <input type="hidden" asp-for="FullPath" />
        <input type="hidden" name="oldcid" value="@Model.CircleId" />
        <div class="form-group">
            <label asp-for="FullPath" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                @Html.DisplayFor(m=>m.FullPath)
                <span asp-validation-for="FullPath" class="text-danger" ></span>
            </div>
        </div>

        <div class="form-group">
            <label asp-for="CircleId" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <select asp-for="CircleId" 
                class="form-control" asp-items="@ViewBag.CircleId" >
                    </select>
                <span asp-validation-for="CircleId" 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>

