Sha256: 0ec26e31bbacf82e2c776f649472e04324b27c4b1a0bbca432363f55cb436794

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

- @condition_is = Hash[ I18n.t('conditions.is'), "==" ]
- @conditions_is = Hash[ I18n.t('conditions.is'), "==", I18n.t('conditions.is_not'), "not==" ]
- @conditions =  Hash[ I18n.t('conditions.is_not'), "not==", I18n.t('conditions.is_equals_or_greater_than'), ">=", I18n.t('conditions.is_equals_or_less_than'), "<=", I18n.t('conditions.is_greater_than'), ">", I18n.t('conditions.is_less_than'), "<" ]
- @delivery_types = Hash[ I18n.t('shipping_method.rule.type.weight').capitalize, 'weight', I18n.t('shipping_method.rule.type.geographic_zone').capitalize, 'geo_zone', I18n.t('shipping_method.rule.type.product_type').capitalize, 'product_type', I18n.t('shipping_method.rule.type.product').capitalize, 'product' ]

= render :partial => 'tabs'
.backgrounds.big-header
  %h1= @transporter.name
  .interact-links
    = link_to I18n.t('transporter.update.action').capitalize, [forgeos_commerce, :edit, :admin, @transporter], :class => 'backgrounds interact-button'
    = I18n.t('or')
    = link_to I18n.t('back_to_catalog').capitalize, [forgeos_commerce, :admin, :transporters], :class => 'back-link'

#content.grid_16.alpha.omega
  .grid_16.alpha
    #transporter.grid_12.alpha
      .inner-content
        = label_tag :description, I18n.t(:description).capitalize
        = @transporter.description
      .padding-wrap.grid_10.omega.alpha
        .type-of-delivery.grid_10
          %span.type-delivery-title= "#{I18n.t('transporter.delivery_type').capitalize}:"
          %div= select_tag 'delivery_type', options_for_select(@delivery_types, ( @delivery_type.nil? ? 'weight' : @delivery_type)), { :onchange => "change_rule_for(this)" }
      .clear

      = render :partial => 'delivery_rules', :locals => { :transporter => @transporter }

    /= render :partial => 'sidebar', :locals => { :f => f, :transporter => transporter }

.clear

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/views/admin/transporter_rules/show.html.haml
forgeos_commerce-1.9.0 app/views/admin/transporter_rules/show.html.haml