|
|
@@ -70,6 +70,14 @@ else
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="form-group">
|
|
|
+ @Html.LabelFor(model => college.Territoire_Id, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
|
+ <div class="col-md-10">
|
|
|
+ @Html.DropDownListFor(model => college.Territoire_Id, Model.Sel_Territoires, htmlAttributes: new { @class = "form-control" })
|
|
|
+ @Html.ValidationMessageFor(model => college.Territoire_Id, "", new { @class = "text-danger" })
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
@Html.HiddenFor(model => college.Commune_Insee, new { data_picker = "commune.insee" })
|
|
|
@Html.HiddenFor(model => college.Commune, new { data_picker = "commune.nom" })
|
|
|
@Html.HiddenFor(model => college.Canton, new { data_picker = "commune.canton" })
|
|
|
@@ -190,12 +198,12 @@ else
|
|
|
var code_postaux = $('#code_postaux').val();
|
|
|
if (code_postaux != '') {
|
|
|
//On vide la liste actuelle
|
|
|
- $('#contenu_Code_Postal').empty();
|
|
|
+ $('#college_Code_Postal').empty();
|
|
|
|
|
|
var liste = code_postaux.split(',');
|
|
|
liste.forEach(function (element) {
|
|
|
//On ajoute les choix
|
|
|
- $('#contenu_Code_Postal').append($('<option>', {
|
|
|
+ $('#college_Code_Postal').append($('<option>', {
|
|
|
value: element,
|
|
|
text: element
|
|
|
}));
|