| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- @using CD67.FicheCollege.MVC.Models
- @model CollegeViewModel
- @{
- ViewBag.Title = "Details";
- Layout = "~/Views/Shared/_Layout.cshtml";
- College contenu = Model.Contenu as College;
- }
- <!-- Menu de niveau 2 -->
- <div>
- <ul id="menu-l2">
- <li id="li-menu-l2"><a id="a-li-menu-l2-active" class="btn-sm" href="@Url.Action("Details", "Colleges", new { Id = Model.College_Id })">Général</a></li>
- <li id="li-menu-l2"><a id="a-li-menu-l2" class="btn-sm" href="@Url.Action("Details", "Identites", new { Id = Model.College_Id })/">Identité</a></li>
- <li id="li-menu-l2"><a id="a-li-menu-l2" class="btn-sm" href="@Url.Action("Details", "ActionsCLAS", new { Id = Model.College_Id })/">Actions</a></li>
- </ul>
- </div>
- <h1>@Model.College_Libelle</h1>
- @if(Model.Acces==ModeAcces.Suppression) {
- <h2 class="text-danger">Voulez-vous vraiment supprimer cet élément?</h2>
- <p class="text-danger">
- Le collège ainsi que toutes les informations liées seront supprimées.
- </p>
- }
- <fieldset>
- <legend>
- Informations générales
- @if (Model.Acces == ModeAcces.Lecture)
- {
- <div class="pull-right">
- @Html.ActionLink("Supprimer", "Delete", "Colleges", new { Id = Model.College_Id }, new { @class = "btn btn-danger" })
- @Html.ActionLink("Modifier", "Edit", "Colleges", new { Id = Model.College_Id }, new { @class = "btn btn-default" })
- </div>
- }
- </legend>
- <dl class="dl-horizontal">
- <dt>
- @Html.DisplayNameFor(model => contenu.TypeCollege.Libelle)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.TypeCollege.Libelle)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Adresse)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.AdresseComplete)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Tel)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.Tel)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Fax)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.Fax)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Email)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.Email)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Commune)
- </dt>
- <dd>
- @if (contenu.Commune != null)
- {
- <div class="col-sm-8 col-md-4">
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
- <i class="fa fa-map-marker color1" aria-hidden="true"></i>
- Localisation (commune)
- </h4>
- </div>
- <div class="panel-body" style="text-align: center;">
- <span style="white-space: pre-line;"><b>@contenu.Commune</b>
- Canton : @contenu.Canton
- TAD : @contenu.TAD
- CDC : @contenu.CDC
- </span>
- </div>
- </div>
- </div>
- }
- </dd>
- <dt>
- @Html.DisplayNameFor(model => contenu.Code_Postal)
- </dt>
- <dd>
- @Html.DisplayFor(model => contenu.Code_Postal)
- </dd>
- </dl>
- </fieldset>
- @if (Model.Acces == ModeAcces.Suppression)
- {
- using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-actions no-color">
- <input type="submit" value="@Model.Acces.EnumDisplayNameFor(MvcHtmlHelpers.DisplayValue.Prompt)" class="btn btn-danger" /> |
- @Html.ActionLink("Annuler", "Details", new { Id = Model.College_Id })
- </div>
- }
- }
|