2016-08-24 11:40:53 +02:00
|
|
|
$(document).on('page:load', button_edit_procedure_init);
|
|
|
|
$(document).ready(button_edit_procedure_init);
|
|
|
|
|
|
|
|
function button_edit_procedure_init(){
|
|
|
|
buttons_api_carto();
|
|
|
|
button_cerfa();
|
2016-10-05 10:48:11 +02:00
|
|
|
button_individual();
|
2016-08-24 11:40:53 +02:00
|
|
|
}
|
2015-12-08 10:11:58 +01:00
|
|
|
|
|
|
|
function buttons_api_carto () {
|
|
|
|
|
|
|
|
$("#procedure_module_api_carto_use_api_carto").on('change', function() {
|
|
|
|
$("#modules_api_carto").toggle()
|
|
|
|
});
|
|
|
|
|
|
|
|
if ($('#procedure_module_api_carto_use_api_carto').is(':checked'))
|
|
|
|
$("#modules_api_carto").show();
|
2016-08-24 11:40:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function button_cerfa () {
|
|
|
|
|
|
|
|
$("#procedure_cerfa_flag").on('change', function() {
|
|
|
|
$("#procedure_lien_demarche").toggle()
|
|
|
|
});
|
|
|
|
|
|
|
|
if ($('#procedure_cerfa_flag').is(':checked'))
|
|
|
|
$("#procedure_lien_demarche").show();
|
2016-10-05 10:48:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function button_individual () {
|
|
|
|
|
|
|
|
$("#procedure_for_individual").on('change', function() {
|
|
|
|
$("#individual_with_siret").toggle()
|
|
|
|
});
|
|
|
|
|
|
|
|
if ($('#procedure_for_individual').is(':checked'))
|
|
|
|
$("#individual_with_siret").show();
|
2015-12-08 10:11:58 +01:00
|
|
|
}
|