Sha256: 7753c7d38037dbef7a007700c40afb4dc7f0ecaa912966d082b20689314ab343

Contents?: true

Size: 1.46 KB

Versions: 50

Compression:

Stored size: 1.46 KB

Contents

<div class="panel-body calculator-fields">
  <div class="row no-marginb">
    <div class="form-group col-xs-12 col-md-6 no-marginb">
      <% field_name = "#{param_prefix}[calculator_type]" %>
      <%= label_tag field_name, Spree.t(:calculator) %>
      <%= select_tag field_name,
                     options_from_collection_for_select(@calculators, :to_s, :description, promotion_action.calculator.type),
                     class: 'type-select select2' %>
    </div>
    <% unless promotion_action.new_record? %>
      <div class="form-group col-xs-12 col-md-6 no-marginb settings">
        <% type_name = promotion_action.calculator.type.demodulize.underscore %>
        <% if lookup_context.exists?("fields",
            ["spree/admin/promotions/calculators/#{type_name}"], true) %>
          <%= render "spree/admin/promotions/calculators/#{type_name}/fields",
            calculator: promotion_action.calculator, prefix: param_prefix %>
        <% else %>
          <%= render "spree/admin/promotions/calculators/default_fields",
            calculator: promotion_action.calculator, prefix: param_prefix %>
        <% end %>
        <%= hidden_field_tag "#{param_prefix}[calculator_attributes][id]", promotion_action.calculator.id %>
      </div>
    <% end %>
  </div>
  <% if promotion_action.calculator.respond_to?(:preferences) %>
    <div class="alert alert-info js-warning margint no-marginb">
      <%= Spree.t(:calculator_settings_warning) %>
    </div>
  <% end %>
</div>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.14 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.13 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.12 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.11 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.4.6 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.10 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.9 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.8 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.7 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.6 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.5 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.4 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.3 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.2 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.1 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.0 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/promotions/actions/_create_adjustment.html.erb