Sha256: 89dac6476fd0302c55aa9ba729cabc868ba70bbe23fffc12e9c0b4426bee5ece
Contents?: true
Size: 1016 Bytes
Versions: 5
Compression:
Stored size: 1016 Bytes
Contents
<%= render "spree/admin/shared/preference_fields/#{calculator.preference_type(:base_amount)}", name: "#{prefix}[calculator_attributes][preferred_base_amount]", value: calculator.preferred_base_amount, label: Spree.t(:base_amount) %> <div class="field"> <%= label_tag( "#{prefix}[calculator_attributes][preferred_currency]", Spree.t(:currency) ) %> <%= select_tag( "#{prefix}[calculator_attributes][preferred_currency]", options_for_select( Money::Currency.all, calculator.preferred_currency || Spree::Config[:currency] ), { class: 'custom-select fullwidth' } ) %> </div> <div class="field"> <%= label_tag nil, Spree.t(:tiers) %> <div class="js-tiered-calculator"> <%= content_tag :div, nil, class: "js-tiers", data: { 'original-tiers' => Hash[calculator.preferred_tiers.sort], 'form-prefix' => prefix, 'calculator' => 'tiered_flat_rate' } %> <button class="button js-add-tier"><%= Spree.t('actions.add') %></button> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems