Commit 8918241f authored by tguillon's avatar tguillon
Browse files

Correction : condition sur le champ vide ou pas décrivez la prise de décision.

Modification : des champs concernant le transfère hors ue
Ajout : partie sur les données sensibles
parent c6fe6812
......@@ -243,6 +243,8 @@ class FichesController extends AppController
$this->redirect($this->Referers->get());
}
// debug($this->request->data);die;
$success = true;
$this->Fiche->begin();
......
......@@ -326,6 +326,30 @@ msgstr "Prise de décision automatisée sur le traitement ?"
msgid "fiche.champDescriptionDecisionAutomatisee"
msgstr "Décrivez la prise de décision automatisée"
msgid "fiche.textInfoTransfereHorsUEComplementaire"
msgstr "Information complémentaire concernant le transfert hors UE :"
msgid "fiche.champOrganismeDestinataireHorsUe"
msgstr "Organisme destinataire 1"
msgid "fiche.champPaysDestinataireHorsUe"
msgstr "Pays destinataire 1"
msgid "fiche.champTypeGarantieHorsUe"
msgstr "Type de garanties 1"
msgid "fiche.textInfoDonneesSensiblesComplementaire"
msgstr "Information complémentaire concernant les données sensibles :"
msgid "fiche.champTypeDonneeSensible"
msgstr "Type de donnée sensible 1"
msgid "fiche.champDureeConservationDonneeSensible"
msgstr "Durée de conservation 1"
msgid "fiche.champDescriptionDonneeSensible"
msgstr "Description 1"
###############################################################################
......
......@@ -33,6 +33,239 @@ class Fiche extends AppModel {
public $name = 'Fiche';
const LISTE_PAYS_HORS_UE = [
"AFGHANISTAN" => "AFGHANISTAN",
"AFRIQUE DU SUD" => "AFRIQUE DU SUD",
"ALBANIE" => "ALBANIE",
"ALGERIE" => "ALGERIE",
"ANDORRA" => "ANDORRA",
"ANGOLA" => "ANGOLA",
"ANGUILLA" => "ANGUILLA",
"ANTARCTIQUE" => "ANTARCTIQUE",
"ANTIGUA ET BARBUDA" => "ANTIGUA ET BARBUDA",
"ANTILLES NERLANDAISES" => "ANTILLES NERLANDAISES",
"ARABIE SAOUDITE" => "ARABIE SAOUDITE",
"ARGENTINE" => "ARGENTINE",
"ARMENIE" => "ARMENIE",
"ARUBA" => "ARUBA",
"AUSTRALIE" => "AUSTRALIE",
"AZERBAIDJAN" => "AZERBAIDJAN",
"BAHAMAS" => "BAHAMAS",
"BAHREIN" => "BAHREIN",
"BANGLADESH" => "BANGLADESH",
"BARBADE" => "BARBADE",
"BIÉLORUSSIE" => "BIÉLORUSSIE",
"BELIZE" => "BELIZE",
"BENIN" => "BENIN",
"BERMUDES" => "BERMUDES",
"BHOUTAN" => "BHOUTAN",
"BOLIVIE" => "BOLIVIE",
"BOSNIE ET HERZEGOVINE" => "BOSNIE ET HERZEGOVINE",
"BOTSWANA" => "BOTSWANA",
"BOUVET, ILE" => "BOUVET, ILE",
"BRESIL" => "BRESIL",
"BRUNEI DARUSSALAM" => "BRUNEI DARUSSALAM",
"BURKINA FASO" => "BURKINA FASO",
"BURUNDI" => "BURUNDI",
"CAMBODGE" => "CAMBODGE",
"CAMEROUN" => "CAMEROUN",
"CANADA" => "CANADA",
"CAP VERT" => "CAP VERT",
"CAYMAN, ILES" => "CAYMAN, ILES",
"CENTRAFRICAINE, REPUBLIQUE" => "CENTRAFRICAINE, REPUBLIQUE",
"CEUTA" => "CEUTA",
"CHILI" => "CHILI",
"CHINE" => "CHINE",
"CHRISTMAS, ILE" => "CHRISTMAS, ILE",
"COCOS, ILES (KEELING)" => "COCOS, ILES (KEELING)",
"COLOMBIE" => "COLOMBIE",
"COMORES" => "COMORES",
"CONGO" => "CONGO",
"CONGO, REPUBLIQUE DEMOCRATIQUE DU" => "CONGO, REPUBLIQUE DEMOCRATIQUE DU",
"COOK, ILES" => "COOK, ILES",
"COREE DU NORD" => "COREE DU NORD",
"COREE DU SUD" => "COREE DU SUD",
"COSTA RICA" => "COSTA RICA",
"COTE D'IVOIRE" => "COTE D'IVOIRE",
"CUBA" => "CUBA",
"DJIBOUTI" => "DJIBOUTI",
"DOMINICAINE, REPUBLIQUE" => "DOMINICAINE, REPUBLIQUE",
"DOMINIQUE" => "DOMINIQUE",
"EGYPTE" => "EGYPTE",
"EMIRATS ARABES UNIS" => "EMIRATS ARABES UNIS",
"EQUATEUR" => "EQUATEUR",
"ERYTHREE" => "ERYTHREE",
"ETATS-UNIS" => "ETATS-UNIS",
"ETATS-UNIS, ILES MINEURS ELOIGNEES DES" => "ETATS-UNIS, ILES MINEURS ELOIGNEES DES",
"ETHIOPIE" => "ETHIOPIE",
"FEROE ILES" => "FEROE ILES",
"FIDJI" => "FIDJI",
"GABON" => "GABON",
"GAMBIE" => "GAMBIE",
"GEORGIE" => "GEORGIE",
"GEORGIE DU SUD ET ILES SANDWICH DU SUD" => "GEORGIE DU SUD ET ILES SANDWICH DU SUD",
"GHANA" => "GHANA",
"GIBRALTAR" => "GIBRALTAR",
"GRENADE" => "GRENADE",
"GROENLAND" => "GROENLAND",
"GUAM" => "GUAM",
"GUATEMALA" => "GUATEMALA",
"GUINEE" => "GUINEE",
"GUINEE EQUATORIALE" => "GUINEE EQUATORIALE",
"GUINEE-BISSAU" => "GUINEE-BISSAU",
"GUYANA" => "GUYANA",
"HAITI" => "HAITI",
"HEARD, ILE ET MC DONALD, ILES" => "HEARD, ILE ET MC DONALD, ILES",
"HONDURAS" => "HONDURAS",
"HONG KONG" => "HONG KONG",
"INDE" => "INDE",
"INDONESIE" => "INDONESIE",
"IRAK" => "IRAK",
"IRAN" => "IRAN",
"ISLANDE" => "ISLANDE",
"ISRAEL" => "ISRAEL",
"JAMAIQUE" => "JAMAIQUE",
"JAPON" => "JAPON",
"JORDANIE" => "JORDANIE",
"KAZAKHSTAN" => "KAZAKHSTAN",
"KENYA" => "KENYA",
"KIRGHIZSTAN" => "KIRGHIZSTAN",
"KIRIBATI" => "KIRIBATI",
"KOSOVO" => "KOSOVO",
"KOWEIT" => "KOWEIT",
"LAOS" => "LAOS",
"LESOTHO" => "LESOTHO",
"LIBAN" => "LIBAN",
"LIBERIA" => "LIBERIA",
"LIBYE" => "LIBYE",
"LIECHTENSTEIN" => "LIECHTENSTEIN",
"MACAO" => "MACAO",
"REPUBLIQUE DE MACEDOINE DU NORD" => "REPUBLIQUE DE MACEDOINE DU NORD",
"MADAGASCAR" => "MADAGASCAR",
"MALAISIE" => "MALAISIE",
"MALAWI" => "MALAWI",
"MALDIVES" => "MALDIVES",
"MALI" => "MALI",
"MALOUINES , ILES" => "MALOUINES , ILES",
"MARIANNE DU NORD, ILES" => "MARIANNE DU NORD, ILES",
"MAROC" => "MAROC",
"MARSHALL, ILES" => "MARSHALL, ILES",
"MAURICE" => "MAURICE",
"MAURITANIE" => "MAURITANIE",
"MELILLA" => "MELILLA",
"MEXIQUE" => "MEXIQUE",
"MICRONESIE, ETATS FEDERES DE" => "MICRONESIE, ETATS FEDERES DE",
"MOLDAVIE, REPUBLIQUE DE" => "MOLDAVIE, REPUBLIQUE DE",
"MONGOLIE" => "MONGOLIE",
"MONTENEGRO" => "MONTENEGRO",
"MONTSERRAT" => "MONTSERRAT",
"MOZAMBIQUE" => "MOZAMBIQUE",
"MYANMAR" => "MYANMAR",
"NAMIBIE" => "NAMIBIE",
"NAURU" => "NAURU",
"NEPAL" => "NEPAL",
"NICARAGUA" => "NICARAGUA",
"NIGER" => "NIGER",
"NIGERIA" => "NIGERIA",
"NIUE" => "NIUE",
"NORFOLK, ILES" => "NORFOLK, ILES",
"NORVEGE" => "NORVEGE",
"NOUVELLE- CALEDONIE" => "NOUVELLE- CALEDONIE",
"NOUVELLE- ZELANDE" => "NOUVELLE- ZELANDE",
"OCEAN INDIEN, TERRITOIRE BRITANNIQUE" => "OCEAN INDIEN, TERRITOIRE BRITANNIQUE",
"OMAN" => "OMAN",
"OUGANDA" => "OUGANDA",
"OUZBEKISTAN" => "OUZBEKISTAN",
"PAKISTAN" => "PAKISTAN",
"PALAOS" => "PALAOS",
"PALESTINE" => "PALESTINE",
"PANAMA" => "PANAMA",
"PAPOUASIE NOUVELLE-GUINEE" => "PAPOUASIE NOUVELLE-GUINEE",
"PARAGUAY" => "PARAGUAY",
"PEROU" => "PEROU",
"PHILIPPINES" => "PHILIPPINES",
"PITCAIRN, ILES" => "PITCAIRN, ILES",
"POLYNESIE FRANCAISE" => "POLYNESIE FRANCAISE",
"QATAR" => "QATAR",
"RUSSIE, FEDERATION" => "RUSSIE, FEDERATION",
"RWANDA" => "RWANDA",
"SAINT BARTHELEMY" => "SAINT BARTHELEMY",
"SAINT- CHRISTOPHE-ET-NEVIS" => "SAINT- CHRISTOPHE-ET-NEVIS",
"SAINTE-LUCIE" => "SAINTE-LUCIE",
"SAINT-HELENE (Y COMPRIS ILES ASCENSION ET TRISTAN DE CUNHA)" => "SAINT-HELENE (Y COMPRIS ILES ASCENSION ET TRISTAN DE CUNHA)",
"SAINT-MARIN" => "SAINT-MARIN",
"SAINT-PIERRE ET MIQUELON" => "SAINT-PIERRE ET MIQUELON",
"SAINT-VINCENT ET LES GRENADINES" => "SAINT-VINCENT ET LES GRENADINES",
"SALOMON, ILES" => "SALOMON, ILES",
"SALVADOR" => "SALVADOR",
"SAMOA" => "SAMOA",
"SAMOA AMERICAINE" => "SAMOA AMERICAINE",
"SAO TOME ET PRINCIPE" => "SAO TOME ET PRINCIPE",
"SENEGAL" => "SENEGAL",
"SERBIE" => "SERBIE",
"SEYCHELLES" => "SEYCHELLES",
"SIERRA LEONE" => "SIERRA LEONE",
"SINGAPOUR" => "SINGAPOUR",
"SOMALIE" => "SOMALIE",
"SOUDAN" => "SOUDAN",
"SRI LANKA" => "SRI LANKA",
"SUD SOUDAN" => "SUD SOUDAN",
"SUISSE" => "SUISSE",
"SURINAME" => "SURINAME",
"SWAZILAND" => "SWAZILAND",
"SYRIE" => "SYRIE",
"TADJIKISTAN" => "TADJIKISTAN",
"TAIWAN" => "TAIWAN",
"TANZANIE" => "TANZANIE",
"TCHAD" => "TCHAD",
"TERRES AUSTRALES ET ANTARCTIQUES" => "TERRES AUSTRALES ET ANTARCTIQUES",
"THAILANDE" => "THAILANDE",
"TIMOR ORIENTAL" => "TIMOR ORIENTAL",
"TOGO" => "TOGO",
"TOKELAU" => "TOKELAU",
"TONGA" => "TONGA",
"TRINIDAD ET TOBAGO" => "TRINIDAD ET TOBAGO",
"TUNISIE" => "TUNISIE",
"TURKMENISTAN" => "TURKMENISTAN",
"TURKS ET CAICOS, ILES" => "TURKS ET CAICOS, ILES",
"TURQUIE" => "TURQUIE",
"TUVALU" => "TUVALU",
"UKRAINE" => "UKRAINE",
"URUGUAY" => "URUGUAY",
"VANUATU" => "VANUATU",
"VATICAN, ETAT DE LA CITE DU (SAINT-SIEGE)" => "VATICAN, ETAT DE LA CITE DU (SAINT-SIEGE)",
"VENEZUELA" => "VENEZUELA",
"VIERGES, ILES (BRITANNIQUES)" => "VIERGES, ILES (BRITANNIQUES)",
"VIERGES, ILES (ETATS-UNIS" => "VIERGES, ILES (ETATS-UNIS",
"VIET NAM" => "VIET NAM",
"WALLIS ET FUTUNA, ILES" => "WALLIS ET FUTUNA, ILES",
"YEMEN" => "YEMEN",
"ZAMBIE" => "ZAMBIE",
"ZIMBABWE" => "ZIMBABWE"
];
const TYPE_GARANTIE_HORS_UE = [
"Clauses contractuelles types (CCT)" => "Clauses contractuelles types (CCT)",
"Règles d'entreprise contraignantes (BCR)" => "Règles d'entreprise contraignantes (BCR)",
"Pays adéquat" => "Pays adéquat",
"Privacy shield" => "Privacy shield",
"Code de conduite" => "Code de conduite",
"Certification" => "Certification",
"Dérogations (art 49)" => "Dérogations (art 49)"
];
const LISTE_DONNEES_SENSIBLES = [
"Données révélant l'origine raciale ou ethnique" => "Données révélant l'origine raciale ou ethnique",
"Données révélant les opinions politiques" => "Données révélant les opinions politiques",
"Données révélant les convictions religieuses ou philosophiques " => "Données révélant les convictions religieuses ou philosophiques ",
"Données révélant l'appartenance syndicale" => "Données révélant l'appartenance syndicale",
"Données génétiques" => "Données génétiques",
"Données biométriques aux fins d'identifier une personne physique de manière unique" => "Données biométriques aux fins d'identifier une personne physique de manière unique",
"Données concernant la santé" => "Données concernant la santé",
"Données concernant la vie sexuelle ou l'orientation sexuelle" => "Données concernant la vie sexuelle ou l'orientation sexuelle",
"Données relatives à des condamnations pénales ou infractions" => "Données relatives à des condamnations pénales ou infractions"
];
public $validate = [
'organisation_id' => [
'areUnique' => [
......@@ -456,7 +689,7 @@ class Fiche extends AppModel {
'conditions' => ['id' => $id]
]);
$typeChamps = ['deroulant', 'checkboxes', 'radios', 'multi-select'];
$typeChamps = ['deroulant', 'checkboxes', 'multi-select'];
$champs = ClassRegistry::init('FgChamp')->find('all', [
'conditions' => [
'formulaires_id' => $idForm['Fiche']['form_id'],
......
......@@ -129,7 +129,23 @@ class WebdpoFiche extends AppModel {
// ---------------------------------------------------------------------
'descriptionDecisionAutomatisee' => [
'checkNotBlankIf' => [
'rule' => ['checkNotBlankIf', 'decisionAutomatisee', true, ['1']]
'rule' => ['checkNotBlankIf', 'decisionAutomatisee', true, ['Oui']]
]
],
// ---------------------------------------------------------------------
'organismeDestinataireHorsUe' => [
'checkNotBlankIf' => [
'rule' => ['checkNotBlankIf', 'transfertHorsUe', true, ['Oui']]
]
],
'paysDestinataireHorsUe' => [
'checkNotBlankIf' => [
'rule' => ['checkNotBlankIf', 'transfertHorsUe', true, ['Oui']]
]
],
'typeGarantieHorsUe' => [
'checkNotBlankIf' => [
'rule' => ['checkNotBlankIf', 'transfertHorsUe', true, ['Oui']]
]
],
// ---------------------------------------------------------------------
......
......@@ -122,6 +122,138 @@ if ($this->request->params['action'] === 'show') {
?>
</div>
</div>
<!-- Information concernant le transfert hors UE -->
<div id="infoSupHorsUE">
<div class="col-md-12">
<span class='labelFormulaire'>
<?php
echo __d('fiche', 'fiche.textInfoTransfereHorsUEComplementaire');
?>
</span>
<div class="row row35"></div>
</div>
<div class="row">
<!-- Colonne de gauche -->
<div class="col-md-6">
<?php
echo $this->WebcilForm->inputs([
'organismeDestinataireHorsUe' => [
'id' => 'organismeDestinataireHorsUe',
'required' => true,
'placeholder' => false,
'name' => 'data[Fiche][horsue][1][organismeDestinataireHorsUe]',
],
'typeGarantieHorsUe' => [
'id' => 'typeGarantieHorsUe',
'required' => true,
'options' => Fiche::TYPE_GARANTIE_HORS_UE,
'class' => 'usersDeroulant transformSelect form-control',
'empty' => true,
'placeholder' => false,
'data-placeholder' => ' ',
'name' => 'data[Fiche][horsue][1][typeGarantieHorsUe]',
],
]);
?>
</div>
<!-- Colonne de droite -->
<div class="col-md-6">
<?php
echo $this->WebcilForm->input('paysDestinataireHorsUe', [
'id' => 'paysDestinataireHorsUe',
'class' => 'usersDeroulant transformSelect form-control',
'options' => Fiche::LISTE_PAYS_HORS_UE,
'required' => true,
'empty' => true,
'data-placeholder' => " ",
'placeholder' => false,
'name' => 'data[Fiche][horsue][1][paysDestinataireHorsUe]',
]);
?>
</div>
</div>
<div id="InputsHorsUE"></div>
<?php
if ($viewBtnAddSousFinalite === true) {
?>
<div id="AddOrganismeHorsUE">
<a id="AddOrganismeHorsUEFileBox" class="btn btn-info">Ajouter un organisme hors de l'UE</a>
<br><br>
</div>
<?php
}
?>
</div>
<!-- Information concernant les données sensibles -->
<div id="infoSupDonneesSensibles">
<div class="col-md-12">
<span class='labelFormulaire'>
<?php
echo __d('fiche', 'fiche.textInfoDonneesSensiblesComplementaire');
?>
</span>
<div class="row row35"></div>
</div>
<div class="row">
<!-- Colonne de gauche -->
<div class="col-md-6">
<?php
echo $this->WebcilForm->inputs([
'typeDonneeSensible' => [
'id' => 'typeDonneeSensible',
'required' => true,
'options' => Fiche::LISTE_DONNEES_SENSIBLES,
'class' => 'usersDeroulant transformSelect form-control',
'empty' => true,
'placeholder' => false,
'data-placeholder' => ' ',
'name' => 'data[Fiche][donneessensibles][1][typeDonneeSensible]',
],
'descriptionDonneeSensible' => [
'id' => 'descriptionDonneeSensible',
'type' => 'textarea',
'required' => true,
'placeholder' => false,
'name' => 'data[Fiche][donneessensibles][1][descriptionDonneeSensible]',
],
]);
?>
</div>
<!-- Colonne de droite -->
<div class="col-md-6">
<?php
echo $this->WebcilForm->input('dureeConservationDonneeSensible', [
'id' => 'dureeConservationDonneeSensible',
'type' => 'textarea',
'required' => true,
'placeholder' => false,
'name' => 'data[Fiche][donneessensibles][1][dureeConservationDonneeSensible]',
]);
?>
</div>
</div>
<div id="InputsDonneesSensibles"></div>
<?php
if ($viewBtnAddSousFinalite === true) {
?>
<div id="AddDonneesSensibles">
<a id="AddDonneesSensiblesFileBox" class="btn btn-info">Ajouter données sensibles</a>
<br><br>
</div>
<?php
}
?>
</div>
</div>
<script type="text/javascript">
......@@ -132,8 +264,8 @@ if ($this->request->params['action'] === 'show') {
var idField = 1; // to keep track of text box added
if (actionForm === 'edit') {
var key = <?php echo json_encode($idSousFinalite); ?>;
idField = key;
idField = <?php echo json_encode($idSousFinalite); ?>;
idField++;
}
//on add input button click
......@@ -197,6 +329,175 @@ if ($this->request->params['action'] === 'show') {
displayDescriptionDecisionAutomatisee(select);
});
// Partie concernant le transfere hors ue
var idHorsUE = 2; // to keep track of text box added
var optionPays = createOptions(<?php echo json_encode(Fiche::LISTE_PAYS_HORS_UE);?>);
var optionTypeGaranties = createOptions(<?php echo json_encode(Fiche::TYPE_GARANTIE_HORS_UE);?>);
displayInfoSupHorsUE($('#transfertHorsUe').val());
$('#transfertHorsUe').change(function () {
var select = $(this).val();
displayInfoSupHorsUE(select);
});
//on add input button click required="required"
$('#AddOrganismeHorsUEFileBox').click(function (e) {
$('#InputsHorsUE').append('<div class="row" id="HorsUe_'+idHorsUE+'">' +
'<hr>' +
'<div class="col-md-6">' +
'<div class="form-group">' +
'<label for="organismeDestinataireHorsUe" class="col-md-4 control-label">Organisme destinataire '+idHorsUE+'' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<input name="data[Fiche][horsue]['+idHorsUE+'][organismeDestinataireHorsUe]" id="organismeDestinataireHorsUe_'+ idHorsUE +'" class="form-control" type="text">' +
'</div>' +
'</div>' +
'<div class="form-group">' +
'<label for="typeGarantieHorsUe" class="col-md-4 control-label">Type de garanties '+idHorsUE+'' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<select name="data[Fiche][horsue]['+idHorsUE+'][typeGarantieHorsUe]" id="typeGarantieHorsUe_'+idHorsUE+'" required="required" class="transformSelect form-control" data-placeholder=" ">' +
optionTypeGaranties +
'</select>' +
'<a href="#" class="removeHorsUE">' +
'<span class="fa fa-trash fa-lg fa-danger"><!----></span>' +
'</a>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="col-md-6">' +
'<div class="form-group">' +
'<label for="paysDestinataireHorsUe" class="col-md-4 control-label">Pays destinataire '+idHorsUE+'' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<select name="data[Fiche][horsue]['+idHorsUE+'][paysDestinataireHorsUe]" id="paysDestinataireHorsUe_'+idHorsUE+'" required="required" class="transformSelect form-control" data-placeholder=" ">' +
optionPays +
'</select>' +
'</div>' +
'</div>' +
'</div>' +
'</div>');
idHorsUE++;
});
//user click on remove text
$("body").on("click",".removeHorsUE", function(e) {
var idInputDeleteHorsUE = $(this).siblings().first().attr('id');
var intIdInputDeleteHorsUE = parseInt(idInputDeleteHorsUE.substr(idInputDeleteHorsUE.indexOf("_") + 1));
var i = intIdInputDeleteHorsUE++;
$(this).parent('div').parent('div').parent('div').parent('div').remove();
while (i <= idHorsUE) {
var newValue = (i - 1);
$('#organismeDestinataireHorsUe_'+i).parent('div').siblings().first().text('Organisme destinataire '+ newValue);
$('#organismeDestinataireHorsUe_'+i).attr('id', 'organismeDestinataireHorsUe_'+newValue);
$('#paysDestinataireHorsUe_'+i).parent('div').siblings().first().text('Pays destinataire '+ newValue);
$('#paysDestinataireHorsUe_'+i).attr('id', 'paysDestinataireHorsUe_'+newValue);
$('#typeGarantieHorsUe_'+i).parent('div').siblings().first().text('Type de garanties '+ newValue);
$('#typeGarantieHorsUe_'+i).attr('id', 'typeGarantieHorsUe_'+newValue);
i++;
}
idHorsUE--;
});
// Partie concernant les données sensibles
var idDonneesSensibles = 2; // to keep track of text box added
var optionTypeDonneesSensibles = createOptions(<?php echo json_encode(Fiche::LISTE_DONNEES_SENSIBLES);?>);
displayInfoSupDonneesSensibles($('#donneesSensible').val());
$('#donneesSensible').change(function () {
var select = $(this).val();
displayInfoSupDonneesSensibles(select);
});
// on add input button click"
$('#AddDonneesSensibles').click(function (e) {
$('#InputsDonneesSensibles').append('<div class="row" id="DonneeSensible_'+idDonneesSensibles+'">' +
'<hr>' +
'<div class="col-md-6">' +
'<div class="form-group">' +
'<label for="typeDonneeSensible" class="col-md-4 control-label">Type de donnée sensible ' + idDonneesSensibles + '' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<select name="data[Fiche][donneessensibles][' + idDonneesSensibles + '][typeDonneeSensible]" id="typeDonneeSensible_' + idDonneesSensibles + '" required="required" class="usersDeroulant transformSelect form-control" data-placeholder=" ">' +
optionTypeDonneesSensibles +
'</select>' +
'</div>' +
'</div>' +
'<div class="form-group">' +
'<label for="typeGarantieHorsUe" class="col-md-4 control-label">Type de garanties ' + idHorsUE + '' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<select name="data[Fiche][horsue][' + idHorsUE + '][typeGarantieHorsUe]" id="typeGarantieHorsUe_' + idHorsUE + '" required="required" class="transformSelect form-control" data-placeholder=" ">' +
optionTypeGaranties +
'</select>' +
'<a href="#" class="removeDonneeSensible">' +
'<span class="fa fa-trash fa-lg fa-danger"><!----></span>' +
'</a>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="col-md-6">' +
'<div class="form-group">' +
'<label for="paysDestinataireHorsUe" class="col-md-4 control-label">Pays destinataire ' + idHorsUE + '' +
'<span class="requis"> *</span>' +
'</label>' +
'<div class="col-md-8">' +
'<select name="data[Fiche][horsue][' + idHorsUE + '][paysDestinataireHorsUe]" id="paysDestinataireHorsUe_' + idHorsUE + '" required="required" class="transformSelect form-control" data-placeholder=" ">' +
optionPays +