Sha256: a10f96671f6993b362b54c16fa976ba994c273c452daef7a78e67979adb2b373
Contents?: true
Size: 822 Bytes
Versions: 6
Compression:
Stored size: 822 Bytes
Contents
<div class="content_editor essence_spree_variant" id="<%= content.dom_id %>" data-content-id="<%= content.id %>"> <%= content_label(content) %> <%= text_field_tag( content.form_field_name, content.essence.variant_id, id: content.form_field_id, class: 'alchemy_selectbox full_width' ) %> </div> <script> $('#<%= content.form_field_id %>').alchemyVariantSelect({ placeholder: "<%= Alchemy.t(:search_variant, scope: 'solidus') %>", apiToken: "<%= current_alchemy_user.spree_api_key %>", baseUrl: "<%= spree.api_variants_path %>", query_params: <%== content.settings[:query_params].to_json %>, <% if content.essence.variant %> initialSelection: { id: <%= content.essence.variant_id %>, text: "<%= content.essence.variant.name %>" } <% end %> }) </script>
Version data entries
6 entries across 6 versions & 1 rubygems