Sha256: 65b9b117075713dcb99779023a01e406a8efca02b0cdcbd31dbe57f113f82513

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

<tr class="volume_price fields">
  <td>
    <%= error_message_on(f.object, :name) %>
    <%= f.text_field :name, size: 10, class: 'form-control' %>
  </td>
  <td>
    <%= error_message_on(f.object, :discount_type) %>
    <%= f.select :discount_type, [
        ["#{Spree.t(:total_price)}", 'price'],
        ["#{Spree.t(:percent_discount)}", 'percent'],
        ["#{Spree.t(:price_discount)}", 'dollar']
      ], { inlcude_blank: true }, class: 'select2' %>
  </td>
  <td>
    <%= error_message_on(f.object, :range) %>
    <%= f.text_field :range, size: 10, class: 'form-control' %>
  </td>
  <td>
    <%= error_message_on(f.object, :amount) %>
    <%= f.text_field :amount, size: 10, class: 'form-control' %>
  </td>
  <td>
    <%= error_message_on(f.object, :position) %>
    <%= f.text_field :position, size: 3, class: 'form-control' %>
  </td>
  <td>
    <%= error_message_on(f.object, :role_id) %>
    <%= f.collection_select(:role_id, Spree::Role.all, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2' }) %>
  </td>
  <td class="actions">
    <%= link_to_icon_remove_fields f %>
  </td>
</tr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_volume_pricing-0.2.0 app/views/spree/admin/volume_prices/_volume_price_fields.html.erb
solidus_volume_pricing-0.1.0 app/views/spree/admin/volume_prices/_volume_price_fields.html.erb