Sha256: c98a909692db6d282b2a6f564426bf2aa7fce7a1bbea26cbfa3636e29664e5b6

Contents?: true

Size: 986 Bytes

Versions: 21

Compression:

Stored size: 986 Bytes

Contents

<fieldset id="calculator_fields" data-hook class="no-border-bottom">
  <legend align="center"><%= Spree::Calculator.model_name.human %></legend>

  <div id="preference-settings" data-hook>
    <div class="field">
      <%= f.label(:calculator_type, Spree::Calculator.model_name.human, :for => 'calc_type') %>
      <%= f.select(:calculator_type, @calculators.map { |c| [c.description, c.name] }, {}, {:id => 'calc_type', :class => 'select2 fullwidth'}) %>
    </div>
    <% if !@object.new_record? %>
      <div class="field">
        <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>
</fieldset>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.3 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.4.2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.3.2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.4.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.1.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.4.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.3.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.3.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/shared/_calculator_fields.html.erb