Sha256: 246e43b801a28beeb2956125d0c1bfbb87a5d0b58b07b2bb2d8792538216a5d7

Contents?: true

Size: 958 Bytes

Versions: 99

Compression:

Stored size: 958 Bytes

Contents

<fieldset id="calculator_fields" data-hook class="no-border-bottom">
  <legend align="center"><%= Spree.t(:calculator) %></legend>

  <div id="preference-settings" data-hook>
    <div class="field">
      <%= 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 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

99 entries across 99 versions & 2 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.4 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.0.7 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.0.6 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.3 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.0.5 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.0.4 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.0.3 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.0 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/shared/_calculator_fields.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/shared/_calculator_fields.html.erb