Administrateur can be select dynamically the activation of api carto modules
This commit is contained in:
parent
8130e7d155
commit
0e3bec7f9f
17 changed files with 186 additions and 25 deletions
12
app/assets/javascripts/procedure.js
Normal file
12
app/assets/javascripts/procedure.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
$(document).on('page:load', buttons_api_carto);
|
||||
$(document).ready(buttons_api_carto);
|
||||
|
||||
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();
|
||||
}
|
|
@ -91,6 +91,10 @@ input#nom_projet {
|
|||
max-width: 27px;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div.pagination {
|
||||
padding-top: 20px;
|
||||
display: block;
|
||||
|
|
3
app/assets/stylesheets/procedure.scss
Normal file
3
app/assets/stylesheets/procedure.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
#modules_api_carto {
|
||||
display: none;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue