diff --git a/lib/osuuspuutarha_web/live/order_live/index.html.heex b/lib/osuuspuutarha_web/live/order_live/index.html.heex index e954dbb..4374766 100644 --- a/lib/osuuspuutarha_web/live/order_live/index.html.heex +++ b/lib/osuuspuutarha_web/live/order_live/index.html.heex @@ -22,11 +22,8 @@ Tilausmuoto Jakopaikka - Etunimi - Sukunimi + Tilaaja Osoite - Postinum. - T. paikka Puh. Säpö Jäsen? @@ -41,20 +38,17 @@ <%= for order <- @orders do %> - <%= 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) %>