Sha256: 481de58b0812907cb7a17b8fac839315a208451ddec51a639a8f1a0a795eb31f

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 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 => "jQuery('##{dom_id(taxon, :spinner)}').show()",
		                         :update => 'selected-taxons',
		                         :complete => "jQuery('##{dom_id(taxon)}').remove(); jQuery('##{dom_id(taxon, :spinner)}').hide();"}, :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

10 entries across 10 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree_core-0.30.0.beta1 app/views/admin/taxons/available.js.erb
spree-0.11.0 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.10.2 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.10.1 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.10.0 vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb
spree-0.10.0.beta vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb