| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- @using CD67.FicheCollege.MVC.Models
- @model IdentiteViewModel
- @{
- ViewBag.Title = "Edit";
- Layout = "~/Views/Shared/_Layout.cshtml";
- Identite identite = Model.Obj;
- }
- <h1>@identite.College.Libelle</h1>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <fieldset>
- <legend>
- Identité du collège - @Model.Acces.ToString()
- </legend>
- <div class="form-horizontal">
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => identite.College_Id)
- <div class="form-group">
- @Html.Label("Principal et ajoint", htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-4" data-picker-type="principal">
- @Html.HiddenFor(model => identite.Principal_SID, new { data_picker = "agent.id" })
- @Html.HiddenFor(model => identite.Principal_Login, new { data_picker = "agent.login" })
- @Html.HiddenFor(model => identite.Principal_Nom, new { data_picker = "agent.nom" })
- @Html.HiddenFor(model => identite.Principal_Prenom, new { data_picker = "agent.prenom" })
- @Html.HiddenFor(model => identite.Principal_Email, new { data_picker = "agent.mail" })
- @Html.HiddenFor(model => identite.Principal_Structure, new { data_picker = "agent.chemin" })
- @Html.HiddenFor(model => identite.Principal_Tel, new { data_picker = "agent.telephone" })
- <a class='modal-window' href="http://referentiel.bas-rhin.fr/picker/cd67/ad67/?type=principal" title="Selection du principal (nouvelle fenetre)">Sélectionner un principal</a>
- <br />
- <div class="panel panel-default" id="Principal_Panel" name="Principal_Panel" style="@if (identite.Principal_SID == null) { <text>display: none;</text> }">
- <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>
- Principal
- </h4>
- <div class="pull-right">
- <span class="glyphicon glyphicon-trash removeItem btn btn-danger btn-sm" aria-hidden="true" data-type="principal"></span>
- </div>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b><span data-picker="agent.prenom">@identite.Principal_Prenom</span> <span data-picker="agent.nom">@identite.Principal_Nom</span></b>
- <br /><span data-picker="agent.chemin">@identite.Principal_Structure</span>
- <br /><span data-picker="agent.mail">@identite.Principal_Email</span>
- <br />Tel : <span data-picker="agent.telephone">@identite.Principal_Tel</span>
- </div>
- </div>
- </div>
- <div class="col-md-4" data-picker-type="adjoint">
- @Html.HiddenFor(model => identite.Adjoint_SID, new { data_picker = "agent.id" })
- @Html.HiddenFor(model => identite.Adjoint_Login, new { data_picker = "agent.login" })
- @Html.HiddenFor(model => identite.Adjoint_Nom, new { data_picker = "agent.nom" })
- @Html.HiddenFor(model => identite.Adjoint_Prenom, new { data_picker = "agent.prenom" })
- @Html.HiddenFor(model => identite.Adjoint_Email, new { data_picker = "agent.mail" })
- @Html.HiddenFor(model => identite.Adjoint_Structure, new { data_picker = "agent.chemin" })
- @Html.HiddenFor(model => identite.Adjoint_Tel, new { data_picker = "agent.telephone" })
- <a class='modal-window' href="http://referentiel.bas-rhin.fr/picker/cd67/ad67/?type=adjoint" title="Selection du principal adjoint (nouvelle fenetre)">Sélectionner un principal adjoint</a>
- <br />
- <div class="panel panel-default" id="Adjoint_Panel" name="Adjoint_Panel" style="@if (identite.Adjoint_SID == null) { <text>display: none;</text> }">
- <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>
- Principal adjoint
- </h4>
- <div class="pull-right">
- <span class="glyphicon glyphicon-trash removeItem btn btn-danger btn-sm" aria-hidden="true" data-type="adjoint"></span>
- </div>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b><span data-picker="agent.prenom">@identite.Adjoint_Prenom</span> <span data-picker="agent.nom">@identite.Adjoint_Nom</span></b>
- <br /><span data-picker="agent.chemin">@identite.Adjoint_Structure</span>
- <br /><span data-picker="agent.mail">@identite.Adjoint_Email</span>
- <br />Tel : <span data-picker="agent.telephone">@identite.Adjoint_Tel</span>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- @Html.Label("Gestionnaire et ajoint", htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-4" data-picker-type="gestionnaire">
- @Html.HiddenFor(model => identite.Gestionnaire_SID, new { data_picker = "agent.id" })
- @Html.HiddenFor(model => identite.Gestionnaire_Login, new { data_picker = "agent.login" })
- @Html.HiddenFor(model => identite.Gestionnaire_Nom, new { data_picker = "agent.nom" })
- @Html.HiddenFor(model => identite.Gestionnaire_Prenom, new { data_picker = "agent.prenom" })
- @Html.HiddenFor(model => identite.Gestionnaire_Email, new { data_picker = "agent.mail" })
- @Html.HiddenFor(model => identite.Gestionnaire_Structure, new { data_picker = "agent.chemin" })
- @Html.HiddenFor(model => identite.Gestionnaire_Tel, new { data_picker = "agent.telephone" })
- <a class='modal-window' href="http://referentiel.bas-rhin.fr/picker/cd67/ad67/?type=gestionnaire" title="Selection du gestionnaire (nouvelle fenetre)">Sélectionner un gestionnaire</a>
- <br />
- <div class="panel panel-default" id="Gestionnaire_Panel" name="Gestionnaire_Panel" style="@if (identite.Gestionnaire_SID == null) { <text>display: none;</text> }">
- <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>
- Gestionnaire
- </h4>
- <div class="pull-right">
- <span class="glyphicon glyphicon-trash removeItem btn btn-danger btn-sm" aria-hidden="true" data-type="gestionnaire"></span>
- </div>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b><span data-picker="agent.prenom">@identite.Gestionnaire_Prenom</span> <span data-picker="agent.nom">@identite.Gestionnaire_Nom</span></b>
- <br /><span data-picker="agent.chemin">@identite.Gestionnaire_Structure</span>
- <br /><span data-picker="agent.mail">@identite.Gestionnaire_Email</span>
- <br />Tel : <span data-picker="agent.telephone">@identite.Gestionnaire_Tel</span>
- </div>
- </div>
- </div>
- <div class="col-md-4" data-picker-type="gestionnaire2">
- @Html.HiddenFor(model => identite.Gestionnaire2_SID, new { data_picker = "agent.id" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Login, new { data_picker = "agent.login" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Nom, new { data_picker = "agent.nom" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Prenom, new { data_picker = "agent.prenom" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Email, new { data_picker = "agent.mail" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Structure, new { data_picker = "agent.chemin" })
- @Html.HiddenFor(model => identite.Gestionnaire2_Tel, new { data_picker = "agent.telephone" })
- <a class='modal-window' href="http://referentiel.bas-rhin.fr/picker/cd67/ad67/?type=gestionnaire2" title="Selection du gestionnaire n°2 (nouvelle fenetre)">Sélectionner un gestionnaire n°2</a>
- <br />
- <div class="panel panel-default" id="Gestionnaire2_Panel" name="Gestionnaire2_Panel" style="@if (identite.Gestionnaire2_SID == null) { <text>display: none;</text> }">
- <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>
- Gestionnaire n°2
- </h4>
- <div class="pull-right">
- <span class="glyphicon glyphicon-trash removeItem btn btn-danger btn-sm" aria-hidden="true" data-type="gestionnaire2"></span>
- </div>
- </div>
- <div class="panel-body" style="text-align: center;">
- <b><span data-picker="agent.prenom">@identite.Gestionnaire2_Prenom</span> <span data-picker="agent.nom">@identite.Gestionnaire2_Nom</span></b>
- <br /><span data-picker="agent.chemin">@identite.Gestionnaire2_Structure</span>
- <br /><span data-picker="agent.mail">@identite.Gestionnaire2_Email</span>
- <br />Tel : <span data-picker="agent.telephone">@identite.Gestionnaire2_Tel</span>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="@Model.Acces.EnumDisplayNameFor(MvcHtmlHelpers.DisplayValue.Prompt)" class="btn btn-default" /> |
- @Html.ActionLink("Annuler", "Details", new { Id = identite.College.Id })
- </div>
- </div>
- </div>
- </fieldset>
- }
- @section Scripts {
- <script type="text/javascript">
- $(".removeItem").click(function () {
- switch ($(this).data("type")) {
- case 'principal':
- $('#contenu_Principal_SID').val(null);
- $('#contenu_Principal_Login').val(null);
- $('#contenu_Principal_Nom').val(null);
- $('#contenu_Principal_Prenom').val(null);
- $('#contenu_Principal_Email').val(null);
- $('#contenu_Principal_Structure').val(null);
- $('#contenu_Principal_Tel').val(null);
- $('#Principal_Panel').hide();
- break;
- case 'adjoint':
- $('#contenu_Adjoint_SID').val(null);
- $('#contenu_Adjoint_Login').val(null);
- $('#contenu_Adjoint_Nom').val(null);
- $('#contenu_Adjoint_Prenom').val(null);
- $('#contenu_Adjoint_Email').val(null);
- $('#contenu_Adjoint_Structure').val(null);
- $('#contenu_Adjoint_Tel').val(null);
- $('#Adjoint_Panel').hide();
- break;
- case 'gestionnaire':
- $('#contenu_Gestionnaire_SID').val(null);
- $('#contenu_Gestionnaire_Login').val(null);
- $('#contenu_Gestionnaire_Nom').val(null);
- $('#contenu_Gestionnaire_Prenom').val(null);
- $('#contenu_Gestionnaire_Email').val(null);
- $('#contenu_Gestionnaire_Structure').val(null);
- $('#contenu_Gestionnaire_Tel').val(null);
- $('#Gestionnaire_Panel').hide();
- break;
- case 'gestionnaire2':
- $('#contenu_Gestionnaire2_SID').val(null);
- $('#contenu_Gestionnaire2_Login').val(null);
- $('#contenu_Gestionnaire2_Nom').val(null);
- $('#contenu_Gestionnaire2_Prenom').val(null);
- $('#contenu_Gestionnaire2_Email').val(null);
- $('#contenu_Gestionnaire2_Structure').val(null);
- $('#contenu_Gestionnaire2_Tel').val(null);
- $('#Gestionnaire2_Panel').hide();
- break;
- default:
- return false;
- }
- });
- </script>
- }
|