Add popup confirmation on update button

Popup is added so user can confirm the changes
Closes https://github.com/openSUSE/osem/issues/1687
This commit is contained in:
rahul 2017-10-17 20:01:15 +05:30
parent 0e16b5d0ae
commit 7d5e42ef75

View file

@ -29,4 +29,4 @@
= f.inputs name: 'Booths' do
= f.input :booth_limit, as: :number, in: 0..9999,
hint: 'Booth limit is the maximum number of booths that you can accept for this conference. By setting this number (0 no limit) you can be sure that you are not going to accept more booths than the conference can accommodate. You currently have ' + pluralize(@conference.booths.accepted.count, 'accepted booth') +'.'
= f.action :submit, as: :button, button_html: {class: 'btn btn-primary'}
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary', data: { confirm: 'Are you sure you want to proceed?' } }