Sha256: c993d893823accbf792691658f566953fa97bce0940f3db76260e3d19f4bdb33

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

<%= render :partial => 'shared/product_sub_menu' %>
<div id="selected-options">
  <h1><%= t("Editing Product")%></h1>
  <%= render :partial => 'shared/product_tabs', :locals => {:current => "Option Types"} %>
  <table class="basic-table">
  	<thead>
  		<tr>
  			<th><%= t("Name") %></th>
  			<th><%= t("Presentation") %></th>
  			<th><%= t("Action") %></th>
  		</tr>
  	</thead>
  	<tbody>
      <% @option_types.each do |option_type| %>
        <tr>
          <td valign="top"><%= option_type.name %></td>
          <td valign="top"><%= option_type.presentation %></td>
  		    <td valign="top"><%= link_to "Remove", remove_admin_product_option_type_url(@product, option_type) %>

  		    </td>        
        </tr>
      <% end %>
      <% if @option_types.empty? %>
       <tr><td colspan="3">None.</td></tr>
      <% end %>
    </tbody>
  </table>
  <%= image_tag "spinner.gif", :style => "display:none", :id => 'busy_indicator' %>
  <div id="option-types"></div>
  <span id="new_opt_link">
    <%= link_to_remote t("Add Option Type"), 
                       :url => available_admin_product_option_types_url(@product),
                       :method => :get,
                       :update => "option-types",
                       :before => "Element.hide('new_opt_link');Element.show('busy_indicator')", 
                       :complete => "Element.hide('busy_indicator')" %>
  </span>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.0 app/views/admin/option_types/selected.html.erb
spree-0.4.1 app/views/admin/option_types/selected.html.erb
spree-0.5.0 app/views/admin/option_types/selected.html.erb
spree-0.5.1 app/views/admin/option_types/selected.html.erb