Sha256: 388c63604689be8cec0c4a988653faf1ecdbdc597239ba16db72eec47ed2fde5

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 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_suppliers') %></h4>
<table class="index">
	<thead>
		<tr>
			<th><%= t("name") %></th>
			<th><%= t("action") %></th>
		</tr>
	</thead>
	<tbody>
    <% @available_suppliers.each do |supplier| %>
      <tr id="<%= dom_id(supplier) %>">
        <td><%= supplier.name %></td>
		    <td class="actions">
          <%= image_tag "spinner.gif", :style => "display:none", :id => "#{dom_id(supplier, :spinner)}" %>		    
		      <%= link_to_remote icon('add') + ' ' + t('select'), 
		                         {:url => select_admin_product_supplier_path(@product, supplier),
		                         :loading => "jQuery('##{dom_id(supplier, :spinner)}').show()",
		                         :update => 'selected-supplier',
		                         :complete => "jQuery('##{dom_id(supplier)}').remove(); jQuery('##{dom_id(supplier, :spinner)}').hide();"}, :class => 'iconlink' %>
		    </td>        
      </tr>
    <% end %>
    <% if @available_suppliers.empty? %>
     <tr><td colspan="3"><%= t('no_match_found') %>.</td></tr>
    <% end %>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_suppliers-1.0.4 app/views/admin/suppliers/available.js.erb
spree_suppliers-1.0.3 app/views/admin/suppliers/available.js.erb
spree_suppliers-1.0.2 app/views/admin/suppliers/available.js.erb
spree_suppliers-1.0.1 app/views/admin/suppliers/available.js.erb
spree_suppliers-0.0.1 app/views/admin/suppliers/available.js.erb
spree_suppliers-0.60.3 app/views/admin/suppliers/available.js.erb