Sha256: 1fdf8cb1f0158d677701e0abe9778f5815ea2579efb1e5373f9b9fcf2b9b93c1

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 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, :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

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.5.1 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.5.0 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/prices/_form.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/prices/_form.html.erb