Sha256: 2085d90d144ed7cf8c36d3948a7534d52f7f3cc018f5ce454e33431be007cbcb
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
<%= render 'spree/admin/shared/product_tabs', :current => 'Product Properties' %> <%= render 'spree/admin/shared/error_messages', :target => @product %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:add_product_properties), "javascript:;", { :icon => 'add', :'data-target' => "tbody#product_properties", :class => 'btn-success spree_add_fields' } %> <span class="js-new-ptype-link"><%= button_link_to Spree.t(:select_from_prototype), available_admin_prototypes_url, { :icon => 'properties', :remote => true, 'data-update' => 'prototypes', :class => 'btn-default' } %></span> <% end %> <%= form_for @product, :url => admin_product_url(@product), :method => :put do |f| %> <fieldset> <div id="prototypes" data-hook></div> <table class="table sortable" data-hook data-sortable-link="<%= update_positions_admin_product_product_properties_url %>"> <thead> <tr data-hook="product_properties_header"> <th colspan="2"><%= Spree.t(:property) %></th> <th><%= Spree.t(:value) %></th> <th class="actions"></th> </tr> </thead> <tbody id="product_properties" data-hook> <%= f.fields_for :product_properties do |pp_form| %> <%= render 'product_property_fields', :f => pp_form %> <% end %> </tbody> </table> <%= render 'spree/admin/shared/edit_resource_links' %> <%= hidden_field_tag 'clear_product_properties', 'true' %> </fieldset> <% end %> <%= javascript_tag do -%> var properties = <%= raw(@properties.to_json) %>; $('#product_properties').on('keydown', 'input.autocomplete', function() { already_auto_completed = $(this).is('ac_input'); if (!already_auto_completed) { $(this).autocomplete({source: properties}); $(this).focus(); } }); <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_backend-3.0.0.rc1 | app/views/spree/admin/product_properties/index.html.erb |