Sha256: fcbde471088697b8b532d77e7b5beab9fbbd263fd5abbe5765dc0b3d9d07d7fe

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

- @page_title = t('kkt_shoppe.delivery_service_prices.delivery_services')

= content_for :header do
  %p.buttons
    = link_to t('kkt_shoppe.delivery_service_prices.new_price'), [:new, @delivery_service, :delivery_service_price], :class => 'button green'
    = link_to t('kkt_shoppe.delivery_service_prices.back_to_delivery_services'), :delivery_services, :class => 'button'
  %h2.delivery_services= t('kkt_shoppe.delivery_service_prices.pricing_for', delivery_name: @delivery_service.name)

.table
  %table.data
    %thead
      %tr
        %th= t('kkt_shoppe.delivery_service_prices.code')
        %th= t('kkt_shoppe.delivery_service_prices.weight_allowance')
        %th= t('kkt_shoppe.delivery_service_prices.price')
        %th= t('kkt_shoppe.delivery_service_prices.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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/delivery_service_prices/index.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/delivery_service_prices/index.html.haml