mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
reorganization of files
This commit is contained in:
parent
ddbd6a9f23
commit
fb05d892a2
@ -0,0 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* Submit buttons are disabled as soon as submit button is clicked and form is submitted.
|
||||||
|
*/
|
||||||
|
|
||||||
|
var submitButtons = document.querySelectorAll("[type=submit]");
|
||||||
|
var form = document.getElementById('create-form');
|
||||||
|
|
||||||
|
for(var i=0; i<submitButtons.length; i++){
|
||||||
|
submitButtons[i].addEventListener("click", function(e){
|
||||||
|
form.submit();
|
||||||
|
e.target.disabled = true;
|
||||||
|
});
|
||||||
|
}
|
@ -58,6 +58,7 @@ module.exports = function(encore, entries)
|
|||||||
encore.addEntry('mod_forkawesome', __dirname + '/Resources/public/module/forkawesome/index.js');
|
encore.addEntry('mod_forkawesome', __dirname + '/Resources/public/module/forkawesome/index.js');
|
||||||
encore.addEntry('mod_bootstrap', __dirname + '/Resources/public/module/bootstrap/index.js');
|
encore.addEntry('mod_bootstrap', __dirname + '/Resources/public/module/bootstrap/index.js');
|
||||||
encore.addEntry('mod_ckeditor5', __dirname + '/Resources/public/module/ckeditor5/index.js');
|
encore.addEntry('mod_ckeditor5', __dirname + '/Resources/public/module/ckeditor5/index.js');
|
||||||
|
encore.addEntry('mod_disablebuttons', __dirname + '/Resources/public/module/disable-buttons/index.js');
|
||||||
|
|
||||||
// Vue entrypoints
|
// Vue entrypoints
|
||||||
encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js');
|
encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js');
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form, {'attr' : {'id' : 'create-form'}}) }}
|
||||||
|
|
||||||
|
|
||||||
{{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }}
|
{{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user