- @page_title = "Delivery Services" = content_for :header do %p.buttons = link_to "New price", [:new, @delivery_service, :delivery_service_price], :class => 'button green' = link_to "Back to delivery services", :delivery_services, :class => 'button' %h2.delivery_services Delivery Pricing for #{@delivery_service.name} .table %table.data %thead %tr %th Code %th Weight Allowance %th Price %th Cost %tbody - for price in @delivery_service_prices %tr %td= link_to price.code, [:edit, @delivery_service, price] %td #{number_to_weight price.min_weight} → #{number_to_weight price.max_weight} %td= number_to_currency(price.price) %td= number_to_currency price.cost_price