Sha256: 9ec00a8ea119534373de2705676efe16b88f99486cc02faaa0f34c69d5c3965f

Contents?: true

Size: 1005 Bytes

Versions: 12

Compression:

Stored size: 1005 Bytes

Contents

<div id="calculator_fields" data-hook class="card mb-3">

  <div class="card-header">
    <h5 class="card-title mb-0 h6">
      <%= Spree.t(:calculator) %>
    </h5>
  </div>

  <div id="preference-settings" data-hook class="card-body">
    <div class="form-group">
      <%= f.label(:calculator_type, Spree.t(:calculator), for: 'calc_type') %>
      <%= f.select(:calculator_type, @calculators.map { |c| [c.description, c.name] }, {}, {id: 'calc_type', class: 'select2'}) %>
    </div>
    <% if !@object.new_record? %>
      <div class="form-group">
        <div class="calculator-settings">
          <%= f.fields_for :calculator do |calculator_form| %>
            <%= preference_fields @object.calculator, calculator_form %>
          <% end %>
        </div>
        <% if @object.calculator.respond_to?(:preferences) %>
          <span class="calculator-settings-warning info warning"><%= Spree.t(:calculator_settings_warning) %></span>
        <% end %>
      </div>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.8.3 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.8.2 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.8.1 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.7.2 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.6.2 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.7.1 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.7.0 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.6.1 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.6.0 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.5.1 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-4.5.0 app/views/spree/admin/shared/_calculator_fields.html.erb