Sha256: 244bbefb390f4fdb5abe325b1a4b623bd29ebf03868bb23a75fc7e3568634648
Contents?: true
Size: 1.44 KB
Versions: 33
Compression:
Stored size: 1.44 KB
Contents
<div data-hook="admin_product_price_fields"> <div data-hook="admin_product_price_form"> <div data-hook="admin_product_price_form_variant" class="col-12"> <%= f.field_container :variant do %> <%= f.label :variant %> <%= f.select :variant_id, @product.variants_including_master.map { |v| [v.descriptive_name, v.id] }, {}, class: "custom-select fullwidth", disabled: !f.object.new_record? %> <% end %> </div> <div data-hook="admin_product_price_form_country" class="col-12"> <%= f.field_container :country do %> <%= f.label :country %> <%= f.field_hint :country %> <%= f.collection_select :country_iso, available_countries(restrict_to_zone: nil), :iso, :name, { include_blank: t(:any_country, scope: [:spree, :admin, :prices]) }, { class: 'custom-select fullwidth', disabled: !f.object.new_record? } %> <% end %> </div> <div data-hook="admin_product_price_form_amount" class="col-4"> <%= f.field_container :price do %> <%= f.label :price %> <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :price, currency_attr: :currency %> <% end %> </div> </div> </div> <div class="clear"></div>
Version data entries
33 entries across 33 versions & 2 rubygems