From 2db8aec0e598498e92b717a6d197c8d8c9a5333f Mon Sep 17 00:00:00 2001 From: sandoz Date: Wed, 25 Mar 2009 05:57:24 +0800 Subject: [PATCH] Improved warning message when finishing an order. * Hope this makes unwanted ending of an order like last week less possible. * Finally Closes #159 Signed-off-by: bennibu --- app/views/orders/index.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/orders/index.haml b/app/views/orders/index.haml index 388e4171..b2f7bade 100644 --- a/app/views/orders/index.haml +++ b/app/views/orders/index.haml @@ -27,7 +27,7 @@ %td=h order.name %td=h format_time(order.ends) unless order.ends.nil? %td=h truncate(order.note) - %td= link_to "Beenden", finish_order_path(order), :confirm => "Willst Du wirklich die Bestellung beenden?\nEs gibt kein zurück..", :method => :post + %td= link_to "Beenden", finish_order_path(order), :confirm => "Willst Du wirklich die Bestellung \"#{order.name}\" beenden?\nEs gibt kein zurück.", :method => :post %td = link_to "Anzeigen", order = link_to icon(:edit), edit_order_path(order)