Disable order button after clicking it

This commit is contained in:
Wout Schellaert 2018-12-13 19:39:58 +01:00
parent 90505fd1e5
commit a68f6295b9
1 changed files with 1 additions and 1 deletions

View File

@ -38,5 +38,5 @@
%td.text-right
Total:
%td.total_price.euro
= f.submit "Order!", class: "btn btn-primary form-control"
= f.submit "Order!", class: "btn btn-primary form-control", data: { disable_with: "Please wait..." }
= render 'products_modal'