Sha256: 52b7953af9b604ca98f781e99da4593b08679014cc62b999dac65b49d0b30c4b
Contents?: true
Size: 1.5 KB
Versions: 13
Compression:
Stored size: 1.5 KB
Contents
<h2><%= t("selected_option_types") %></h2> <table class="option-types"> <thead> <tr> <th><%= t("name") %></th> <th><%= t("display") %></th> <th><%= t("action") %></th> </tr> </thead> <tbody> <% @product.selected_options.each do |so| %> <tr> <td><%=so.option_type.name%></td> <td><%=so.option_type.presentation%></td> <td> <%= link_to_remote t("remove"), :url => {:action => 'remove_option_type', :id=> @product, :product_option_type_id => so}, :before => "Element.hide('select-link');Element.show('busy_indicator')", :complete => "Element.hide('busy_indicator')", :update => 'option-type-listing' %> </td> </tr> <% end %> <% if @product.selected_options.empty? %> <tr> <td colspan="3">None Selected.</td> </tr> <% end %> </tbody> </table> <% unless @product.new_record? %> <span id="select-link"> <%= link_to_remote icon('delete') + ' ' + t("select_option_type"), { :url => {:controller => 'option_types', :action => 'select', :id=> @product}, :before => "Element.hide('select-link');Element.show('busy_indicator')", :complete => "Element.hide('busy_indicator');", :update => 'new-option-type'}, :class => 'iconlink' %> </span> <%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %> <% end %> <br/> <div id="new-option-type"></div>
Version data entries
13 entries across 13 versions & 3 rubygems