From a68f6295b9942851c007b45bc94fb2c4bce0a1e4 Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Thu, 13 Dec 2018 19:39:58 +0100 Subject: [PATCH] Disable order button after clicking it --- app/views/orders/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/orders/new.html.haml b/app/views/orders/new.html.haml index 6771d96..fcfeaf3 100644 --- a/app/views/orders/new.html.haml +++ b/app/views/orders/new.html.haml @@ -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'