Sha256: c68243f06e2e998df1d85f432ebe9b3a52f5b7f6d5db81e8ac6a4f2bffd22c15
Contents?: true
Size: 925 Bytes
Versions: 10
Compression:
Stored size: 925 Bytes
Contents
<% content ||= local_assigns[:content] || local_assigns[:essence_spree_product_editor] %> <div class="content_editor essence_spree_product" id="<%= content.dom_id %>" data-content-id="<%= content.id %>"> <%= content_label(content) %> <%= text_field_tag( content.form_field_name, content.essence.spree_product_id, id: content.form_field_id, class: 'alchemy_selectbox full_width' ) %> </div> <script> $('#<%= content.form_field_id %>').alchemyProductSelect({ placeholder: "<%= Alchemy.t(:search_product, scope: 'solidus') %>", apiToken: "<%= current_alchemy_user.spree_api_key %>", baseUrl: "<%= spree.api_products_path %>", query_params: <%== content.settings[:query_params].to_json %>, <% if content.essence.product %> initialSelection: { id: <%= content.essence.spree_product_id %>, text: "<%= content.essence.product.name %>" } <% end %> }) </script>
Version data entries
10 entries across 10 versions & 1 rubygems