|
|
@@ -1,8 +1,10 @@
|
|
|
-@model CD67.FicheCollege.Entity.Territoire
|
|
|
+@using CD67.FicheCollege.MVC.Models
|
|
|
+@model TerritoireViewModel
|
|
|
|
|
|
@{
|
|
|
ViewBag.Title = "Modification";
|
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
|
+ Territoire territoire = Model.Obj;
|
|
|
}
|
|
|
|
|
|
<h2>Modification</h2>
|
|
|
@@ -16,37 +18,37 @@
|
|
|
<h4>Territoire</h4>
|
|
|
<hr />
|
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
|
- @Html.HiddenFor(model => model.Id)
|
|
|
- @Html.HiddenFor(model => model.Ordre)
|
|
|
+ @Html.HiddenFor(model => territoire.Id)
|
|
|
+ @Html.HiddenFor(model => territoire.Ordre)
|
|
|
|
|
|
<div class="form-group">
|
|
|
- @Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
+ @Html.LabelFor(model => territoire.Id, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
<div class="col-md-10">
|
|
|
- @Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control", @disabled = true } })
|
|
|
- @Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger" })
|
|
|
+ @Html.EditorFor(model => territoire.Id, new { htmlAttributes = new { @class = "form-control", @disabled = true } })
|
|
|
+ @Html.ValidationMessageFor(model => territoire.Id, "", new { @class = "text-danger" })
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
- @Html.LabelFor(model => model.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
+ @Html.LabelFor(model => territoire.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
<div class="col-md-10">
|
|
|
- @Html.EditorFor(model => model.Libelle, new { htmlAttributes = new { @class = "form-control" } })
|
|
|
- @Html.ValidationMessageFor(model => model.Libelle, "", new { @class = "text-danger" })
|
|
|
+ @Html.EditorFor(model => territoire.Libelle, new { htmlAttributes = new { @class = "form-control" } })
|
|
|
+ @Html.ValidationMessageFor(model => territoire.Libelle, "", new { @class = "text-danger" })
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
@Html.Label("Référent", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
<div class="col-md-4" data-picker-type="referent">
|
|
|
- @Html.HiddenFor(model => model.Referent_SID, new { data_picker = "agent.id" })
|
|
|
- @Html.HiddenFor(model => model.Referent_Nom, new { data_picker = "agent.nom" })
|
|
|
- @Html.HiddenFor(model => model.Referent_Prenom, new { data_picker = "agent.prenom" })
|
|
|
- @Html.HiddenFor(model => model.Referent_Structure, new { data_picker = "agent.chemin" })
|
|
|
- @Html.HiddenFor(model => model.Referent_Login, new { data_picker = "agent.login" })
|
|
|
- @Html.HiddenFor(model => model.Referent_Email, new { data_picker = "agent.mail" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_SID, new { data_picker = "agent.id" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_Nom, new { data_picker = "agent.nom" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_Prenom, new { data_picker = "agent.prenom" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_Structure, new { data_picker = "agent.chemin" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_Login, new { data_picker = "agent.login" })
|
|
|
+ @Html.HiddenFor(model => territoire.Referent_Email, new { data_picker = "agent.mail" })
|
|
|
<a class='modal-window' href="http://referentiel.bas-rhin.fr/picker/cd67/ad67/?type=referent" title="Selection d'un référent (nouvelle fenetre)">Sélectionner un référent</a>
|
|
|
<br />
|
|
|
- <div class="panel panel-default" id="Referent_Panel" name="Referent_Panel" style="@if (Model.Referent_SID == null) { <text>display: none;</text> }">
|
|
|
+ <div class="panel panel-default" id="Referent_Panel" name="Referent_Panel" style="@if (territoire.Referent_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>
|
|
|
@@ -57,8 +59,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="panel-body" style="text-align: center;">
|
|
|
- <b><span data-picker="agent.prenom">@Model.Referent_Prenom</span> <span data-picker="agent.nom">@Model.Referent_Nom</span></b>
|
|
|
- <br /><span data-picker="agent.chemin">@Model.Referent_Structure</span>
|
|
|
+ <b><span data-picker="agent.prenom">@territoire.Referent_Prenom</span> <span data-picker="agent.nom">@territoire.Referent_Nom</span></b>
|
|
|
+ <br /><span data-picker="agent.chemin">@territoire.Referent_Structure</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|