| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- @using CD67.FicheCollege.MVC.Models
- @model CollegeViewModel
- @{
- ViewBag.Title = "Details";
- Layout = "~/Views/Shared/_Layout.cshtml";
- College college = Model.Obj;
- }
- <header>
- <h2>@college.Libelle</h2>
- </header>
- @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 = college.Id }, new { @class = "btn btn-danger" })
- @Html.ActionLink("Modifier", "Edit", "Colleges", new { Id = college.Id }, new { @class = "btn btn-default" })
- @Html.ActionLink("(test) Dupliquer vers 2018", "Clone", "Colleges", new { Id = college.Id, annee_id = 18 }, new { @class = "btn btn-default" })
- </div>
- }
- </legend>
- <dl class="dl-horizontal">
- <dt>
- @Html.DisplayNameFor(model => college.CodeRne)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.CodeRne)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.TypeCollege.Libelle)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.TypeCollege.Libelle)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Adresse)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.AdresseComplete)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Tel)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.Tel)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Fax)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.Fax)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Email)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.Email)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Commune)
- </dt>
- <dd>
- @if (college.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>@college.Commune</b>
- Canton : @college.Canton
- TAD : @college.TAD
- CDC : @college.CDC
- </span>
- </div>
- </div>
- </div>
- }
- </dd>
- <dt>
- @Html.DisplayNameFor(model => college.Code_Postal)
- </dt>
- <dd>
- @Html.DisplayFor(model => college.Code_Postal)
- </dd>
- </dl>
- </fieldset>
- <legend>
- Personnel
- </legend>
- <div class="flex-list">
- @if (!String.IsNullOrEmpty(college.PrincipalSid))
- {
- <div style="width:400px !important">
- <div class="panel panel-default" style="overflow: hidden;">
- <div class="panel-heading clearfix">
- <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
- <i class="fa fa-user color1" aria-hidden="true"></i>
- @Html.LabelFor(model => college.PrincipalSid)
- </h4>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b>@Html.DisplayFor(model => college.principal.Prenom) @Html.DisplayFor(model => college.principal.Nom)</b><br />
- @Html.DisplayFor(model => college.principal.Organisation)<br />
- @Html.DisplayFor(model => college.principal.Mail)<br />
- Tel : @Html.DisplayFor(model => college.principal.Telephone)<br />
- </div>
- </div>
- </div>
- }
- @if (!String.IsNullOrEmpty(college.AdjointSid))
- {
- <div style="width:400px !important">
- <div class="panel panel-default" style="overflow: hidden;">
- <div class="panel-heading clearfix">
- <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
- <i class="fa fa-user color1" aria-hidden="true"></i>
- @Html.LabelFor(model => college.AdjointSid)
- </h4>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b>@Html.DisplayFor(model => college.adjoint.Prenom) @Html.DisplayFor(model => college.adjoint.Nom)</b><br />
- @Html.DisplayFor(model => college.adjoint.Organisation)<br />
- @Html.DisplayFor(model => college.adjoint.Mail)<br />
- Tel : @Html.DisplayFor(model => college.adjoint.Telephone)<br />
- </div>
- </div>
- </div>
- }
- @if (!String.IsNullOrEmpty(college.Gestionnaire1Sid))
- {
- <div style="width:400px !important">
- <div class="panel panel-default" style="overflow: hidden;">
- <div class="panel-heading clearfix">
- <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
- <i class="fa fa-user color1" aria-hidden="true"></i>
- @Html.LabelFor(model => college.Gestionnaire1Sid)
- </h4>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b>@Html.DisplayFor(model => college.gestionnaire1.Prenom) @Html.DisplayFor(model => college.gestionnaire1.Nom)</b><br />
- @Html.DisplayFor(model => college.gestionnaire1.Organisation)<br />
- @Html.DisplayFor(model => college.gestionnaire1.Mail)<br />
- Tel : @Html.DisplayFor(model => college.gestionnaire1.Telephone)<br />
- </div>
- </div>
- </div>
- }
- @if (!String.IsNullOrEmpty(college.Gestionnaire2Sid))
- {
- <div style="width:400px !important">
- <div class="panel panel-default" style="overflow: hidden;">
- <div class="panel-heading clearfix">
- <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
- <i class="fa fa-user color1" aria-hidden="true"></i>
- @Html.LabelFor(model => college.Gestionnaire2Sid)
- </h4>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b>@Html.DisplayFor(model => college.gestionnaire2.Prenom) @Html.DisplayFor(model => college.gestionnaire2.Nom)</b><br />
- @Html.DisplayFor(model => college.gestionnaire2.Organisation)<br />
- @Html.DisplayFor(model => college.gestionnaire2.Mail)<br />
- Tel : @Html.DisplayFor(model => college.gestionnaire2.Telephone)<br />
- </div>
- </div>
- </div>
- }
- </div>
- <legend>
- Educ'Facile
- </legend>
- <div>
- <table class="datatable table">
- @foreach(KeyValuePair<string, string> entry in college.educfData){
- <tr>
- <th>@entry.Key</th>
- <td>@entry.Value</td>
- </tr>
- }
- </table>
- </div>
- @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" />
- </div>
- <br/>
- <div>@Html.ActionLink("Annuler", "Details", new { Id = college.Id })</div>
- }
- }
- else
- {
- <div>
- @Html.ActionLink("Retour à la liste", "Index", new { annee_id = college.Annee_Id })
- </div>
- }
|