diff --git a/src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js b/src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js new file mode 100644 index 000000000..2bbc33497 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js @@ -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 {% endif %} - {{ form_start(form) }} + {{ form_start(form, {'attr' : {'id' : 'create-form'}}) }} {{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }}