tap/app/views/orders/_order.html.haml

14 lines
433 B
Plaintext
Raw Normal View History

2015-09-17 12:05:33 +00:00
%tr
%td.order_date
= order.created_at.strftime("%d %b %Y at %H:%M")
%tr
%td
= order.to_sentence
%td
= euro_from_cents(order.price_cents)
2015-10-26 17:57:59 +00:00
%td
- if order.deletable
= button_to "Cancel order (until #{(order.created_at + Rails.application.config.call_api_after).strftime("%H:%M")})", user_order_path(@user, order), method: :delete,
class: "btn btn-danger", data: { remove: order.sec_until_remove }