@using CD67.FicheCollege.MVC.Models
@model ActionEduCollegeViewModel

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
    ActionEduCollege actionEduCollege = Model.Obj;
}

<header>
    <h2>Action Educative '@actionEduCollege.ActionEdu.Nom' à @actionEduCollege.College.Libelle</h2>
    
</header>

<fieldset>
    <legend>
        Informations
        @if (Model.Acces == ModeAcces.Lecture)
        {
            <span class="pull-right">
                @Html.ActionLink("Supprimer", "Delete", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-danger" })
                @Html.ActionLink("Modifier", "Edit", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-default" })
            </span>
        }
    </legend>
    <dl class="dl-horizontal">
        <dt>@Html.DisplayNameFor(model => actionEduCollege.NbEleves)</dt>
        <dd>@Html.DisplayFor(model => actionEduCollege.NbEleves)</dd>

        <dt>@Html.DisplayNameFor(model => actionEduCollege.Commentaire)</dt>
        <dd>@Html.DisplayFor(model => actionEduCollege.Commentaire)</dd>
    </dl>
</fieldset>


<a href="@Url.Action("Details", "ActionsEdu", new { id = actionEduCollege.ActionEdu.Id })">Retour à l'index</a>