@using CD67.FicheCollege.MVC.Models @model CollegeViewModel @{ ViewBag.Title = "Details"; Layout = "~/Views/Shared/_Layout.cshtml"; College college = Model.Obj; }

@college.Libelle

@if(Model.Acces==ModeAcces.Suppression) {

Voulez-vous vraiment supprimer cet élément?

Le collège ainsi que toutes les informations liées seront supprimées.

}
Informations générales @if (Model.Acces == ModeAcces.Lecture) {
@Html.ActionLink("Supprimer", "Delete", "Colleges", new { Id = college.Id }, new { @class = "btn btn-danger" }) @Html.ActionLink("Modifier", "Edit", "Colleges", new { Id = college.Id }, new { @class = "btn btn-default" })
}
@Html.DisplayNameFor(model => college.TypeCollege.Libelle)
@Html.DisplayFor(model => college.TypeCollege.Libelle)
@Html.DisplayNameFor(model => college.Adresse)
@Html.DisplayFor(model => college.AdresseComplete)
@Html.DisplayNameFor(model => college.Tel)
@Html.DisplayFor(model => college.Tel)
@Html.DisplayNameFor(model => college.Fax)
@Html.DisplayFor(model => college.Fax)
@Html.DisplayNameFor(model => college.Email)
@Html.DisplayFor(model => college.Email)
@Html.DisplayNameFor(model => college.Commune)
@if (college.Commune != null) {

Localisation (commune)

@college.Commune Canton : @college.Canton TAD : @college.TAD CDC : @college.CDC
}
@Html.DisplayNameFor(model => college.Code_Postal)
@Html.DisplayFor(model => college.Code_Postal)
@if (Model.Acces == ModeAcces.Suppression) { using (Html.BeginForm()) { @Html.AntiForgeryToken()

@Html.ActionLink("Annuler", "Details", new { Id = college.Id })
} } else {
@Html.ActionLink("Retour à la liste", "Index", new { annee_id = college.Annee_Id })
}