Sha256: 6d528f70391b8d49007404167547308d394a74d853d0139ff09aa65febf075cb

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

<%= f.field_container save_to, class: ['form-group'] do %>
  <%= f.label save_to, Spree.t('admin.cms.link_to_taxon') %>
  <%= f.select save_to,
       options_from_collection_for_select([resource],
                                       save_to, save_to, resource.send(save_to) || nil),
       { include_blank: true },
       class: 'select2autocomplete',
       data: { autocomplete_placeholder_value: Spree.t('admin.navigation.seach_for_a_taxon'),
               autocomplete_clear_value: true,
               autocomplete_url_value: 'taxons_api_v2',
               autocomplete_return_attr_value: 'permalink',
               autocomplete_custom_return_id_value: 'permalink' } %>
  <%= f.error_message_on :save_to %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_backend-4.3.0.rc3 app/views/spree/admin/shared/cms/_spree_taxon.html.erb
spree_backend-4.3.0.rc2 app/views/spree/admin/shared/cms/_spree_taxon.html.erb
spree_backend-4.3.0.rc1 app/views/spree/admin/shared/cms/_spree_taxon.html.erb