Sha256: 6eab003eeb3b9bb2a0dcd540888468e8cd1044bb5c523b2e82f5ca7e2f85ad5c
Contents?: true
Size: 1.5 KB
Versions: 6
Compression:
Stored size: 1.5 KB
Contents
<%= render "spree/admin/shared/preference_fields/#{calculator.preference_type(:base_percent)}", name: "#{prefix}[calculator_attributes][preferred_base_percent]", value: calculator.preferred_base_percent, label: calculator.class.human_attribute_name(:preferred_base_percent) %> <div class="field"> <%= label_tag( "#{prefix}[calculator_attributes][preferred_currency]", t('spree.currency') ) %> <%= select_tag( "#{prefix}[calculator_attributes][preferred_currency]", options_for_select( Spree::Config.available_currencies, calculator.preferred_currency || Spree::Config[:currency] ), { class: 'custom-select fullwidth' } ) %> </div> <div class="field"> <%= label_tag nil, calculator.class.human_attribute_name(:tiers) %> <div data-controller="calculator-tiers"> <template data-calculator-tiers-target="template"> <%= render "solidus_friendly_promotions/admin/promotion_actions/calculators/tiered_percent/tier_fields", tier: [nil, nil], form: form %> </template> <% form.object.calculator.preferred_tiers.each do |tier| %> <%= render "solidus_friendly_promotions/admin/promotion_actions/calculators/tiered_percent/tier_fields", tier: tier, form: form %> <% end %> <div class="mb-3" data-calculator-tiers-target="links"> <%= link_to t(:add_tier, scope: [:solidus_friendly_promotions, :admin, :promotions, :calculator]), "#", class: "btn btn-outline-primary", data: { action: "click->calculator-tiers#add_association" } %> </div> </div> </div>
Version data entries
6 entries across 3 versions & 1 rubygems