Sha256: 5710fa9887d8700a469c25e469c8a1d9940c2e907d1686f187d7de9179ab6063

Contents?: true

Size: 1.28 KB

Versions: 13

Compression:

Stored size: 1.28 KB

Contents

<script type="text/javascript">
  function displayRow(){
    var row = document.getElementById("captionRow");
    if (row.style.display == '') row.style.display = 'none';
    else row.style.display = '';
  }
</script>
<h4><%= t('available_taxons') %></h4>
<table class="index">
	<thead>
		<tr>
			<th><%= t("name") %></th>
			<th><%= t("path") %></th>
			<th><%= t("action") %></th>
		</tr>
	</thead>
	<tbody>
    <% @available_taxons.each do |taxon| %>
      <tr id="<%= dom_id(taxon) %>">
        <td><%= taxon.name %></td>
        <td><%= taxon_path taxon %></td>
		    <td class="actions">
          <%= image_tag "spinner.gif", :style => "display:none", :id => "#{dom_id(taxon, :spinner)}" %>		    
		      <%= link_to_remote icon('add') + ' ' + t('select'), 
		                         {:url => select_admin_product_taxon_path(@product, taxon),
		                         :loading => "Element.show(#{dom_id(taxon, :spinner)})",
		                         :update => 'selected-taxons',
		                         :complete => "$('#{dom_id(taxon)}').remove(); Element.hide(#{dom_id(taxon, :spinner)});"}, :class => 'iconlink' %>
		    </td>        
      </tr>
    <% end %>
    <% if @available_taxons.empty? %>
     <tr><td colspan="3"><%= t('no_match_found') %>.</td></tr>
    <% end %>
  </tbody>
</table>

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 app/views/admin/taxons/available.js.erb
spree-enriquez-0.9.4 app/views/admin/taxons/available.js.erb
spree-0.9.4 app/views/admin/taxons/available.js.erb
spree-0.9.3 app/views/admin/taxons/available.js.erb
spree-0.9.2 app/views/admin/taxons/available.js.erb
spree-0.9.1 app/views/admin/taxons/available.js.erb
spree-0.9.0 app/views/admin/taxons/available.js.erb
spree-0.8.4 app/views/admin/taxons/available.js.erb
spree-0.8.5 app/views/admin/taxons/available.js.erb
spree-0.8.0 app/views/admin/taxons/available.js.erb
spree-0.8.1 app/views/admin/taxons/available.js.erb
spree-0.8.2 app/views/admin/taxons/available.js.erb
spree-0.8.3 app/views/admin/taxons/available.js.erb