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

Version Path
solidus_backend-2.8.6 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.6.6 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.7.4 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.5 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.7.3 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.6.5 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.4 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.3 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.7.2 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.6.4 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.2 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.1 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.6.3 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.8.0 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.7.1 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.6.2 app/views/spree/admin/prices/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/prices/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/prices/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/prices/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/prices/_form.html.erb