Sha256: 775272698fb7f23fa8bed862c2b5f82e4c56e3ed2ba4769aa00c9dc40b94b194

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <p><%= button_link_to "New Retailer", new_object_url, :icon => 'add' %></p>
    </li>
  </ul>
  <br class='clear' />
</div>


<h1>Listing Retailers</h1>

<table class="index">
  <thead>
	<tr>
    	<th><%= sort_link @search, :name %></th>
    	<th><%= sort_link @search, :address %></th>
    	<th><%= sort_link @search, :state %></th>
    	<th><%= sort_link @search, :email %></th>
    	<th><%= sort_link @search, :phone %></th>
    	<th><%= t("action") %></th>
	</tr>
  </thead>
  <tbody>
    <%- @collection.each do |retailer|%>
    <tr id="<%= dom_id retailer %>">
      <td width="200px"><%= link_to retailer.name, object_url(retailer) %></td>
      <td><%= retailer.address %></td>
      <td><%= retailer.state %></td>
      <td><%= retailer.email %></td>
      <td><%= retailer.phone %></td>
      <td>
      	<%= link_to_edit retailer %> &nbsp;
      	<%= link_to_delete retailer %> &nbsp;
      </td>
    </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate(:prev => "&#171; #{t('previous')}", :next => "#{t('next')} &#187;") %>




<% content_for :sidebar do %>
<div class="box">
  <h3><%= t(:search) %></h3>

  <% @retailer = Retailer.metasearch %>
  <%= form_for [:admin, @retailer] do |f| %>
    <%- locals = {:f => f} %>
    <%= hook :admin_pages_index_search, locals do %>
      <p>
        <label><%= t '.name_contains' %></label><br />
        <%= f.text_field :name_contains, :size => 25 %>
      </p>      
    <% end %>
    <%= hook :admin_pages_index_search_buttons, locals do %>
      <p><%= button t("search") %></p>
    <% end %>
  <% end %>
</div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_retailers-0.50.0.0 app/views/admin/retailers/index.html.erb