Sha256: 20d2c98ea46ee23e3ef16082c2fe55bf35df4d33e4727ff86cb8d1495dcefebd

Contents?: true

Size: 1020 Bytes

Versions: 34

Compression:

Stored size: 1020 Bytes

Contents

<div id="calculator_fields" data-hook class="panel panel-default">

  <div class="panel-heading">
    <h1 class="panel-title">
      <%= Spree.t(:calculator) %>
    </h1>
  </div>

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

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.13 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.12 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.11 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.10 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.9 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.8 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.7 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.6 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.5 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.4 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.3 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.2 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.0.10 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.1 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.0 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.0.9 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/shared/_calculator_fields.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/shared/_calculator_fields.html.erb