- | <%= order.order_type %> |
- <%= order.location %> |
- <%= order.fname %> |
- <%= order.lname %> |
- <%= order.address %> |
- <%= order.pcode %> |
- <%= order.city %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_order_type(order.order_type) %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_location(order.location) %> |
+ <%= "#{order.fname} #{order.lname}" %> |
+ <%= order.address %>, <%= order.pcode %>, <%= order.city %> |
<%= order.phone %> |
<%= order.email %> |
- <%= order.is_member %> |
- <%= order.split_invoice %> |
- <%= order.even_weeks %> |
- <%= order.inserted_at.day %>.<%= order.inserted_at.month %>.<%= order.inserted_at.year %> |
- <%= order.updated_at.day %>.<%= order.updated_at.month %>.<%= order.updated_at.year %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_boolean(order.is_member) %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_boolean(order.split_invoice) %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_boolean(order.even_weeks) %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_date(order.inserted_at) %> |
+ <%= Osuuspuutarha.Orders.Parser.parse_date(order.updated_at) %> |
<%= live_redirect "Näytä", to: Routes.order_show_path(@socket, :show, order) %>
|