@using CD67.FicheCollege.MVC.Models @model TerritoireViewModel @{ ViewBag.Title = "Administration - Les Territoires"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; Territoire territoire = Model.Obj; } @if (Model.Acces == ModeAcces.Modification) {

@territoire.Libelle

} else {

Nouveau Territoire

} @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => territoire.Ordre) @if (Model.Acces == ModeAcces.Modification) { @Html.HiddenFor(model => territoire.Id) } else {
@Html.LabelFor(model => territoire.Id, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => territoire.Id, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => territoire.Id, "", new { @class = "text-danger" })
}
@Html.LabelFor(model => territoire.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => territoire.Libelle, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => territoire.Libelle, "", new { @class = "text-danger" })
@Html.Label("Référent", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.HiddenFor(model => territoire.Referent_SID, new { data_picker = "agent.id" }) @Html.HiddenFor(model => territoire.Referent_Nom, new { data_picker = "agent.nom" }) @Html.HiddenFor(model => territoire.Referent_Prenom, new { data_picker = "agent.prenom" }) @Html.HiddenFor(model => territoire.Referent_Structure, new { data_picker = "agent.chemin" }) @Html.HiddenFor(model => territoire.Referent_Login, new { data_picker = "agent.login" }) @Html.HiddenFor(model => territoire.Referent_Email, new { data_picker = "agent.mail" }) Sélectionner un référent

Agent

@territoire.Referent_Prenom @territoire.Referent_Nom
@territoire.Referent_Structure
Annuler
} @section Scripts { }