Sha256: 81de72585bc5f0da885b98b4aac9ad2c310583bccb1c02a9727f2a4cf8cacd00

Contents?: true

Size: 1.67 KB

Versions: 4

Compression:

Stored size: 1.67 KB

Contents

<%= render :partial => 'shared/product_sub_menu' %>
<h1><%= t("Listing Products") %></h1>
<table>
	<tr>
		<td valign="top">
			<table class="admin-report" width="545">
			  <tr>
			    <td><b><%= t("Image") %></b></td>
			    <td><b><%= t("Name") %></b></td>
			    <td><b><%= t("Master Price") %></b></td>
			    <td/>
			  </tr>
			<% @products.each do |product| %>
			  <tr>
			    <td><%= mini_image(product) %></td>
			    <td valign="top"><%=product.name%></td>
			    <td valign="top"><%=product.master_price%></td>
			    <td valign="top">
			      <%= link_to_edit product %>
			      &nbsp;
			      <%= link_to_delete product %>
			    </td>
			  </tr>
			<% end %>
			</table>
			<%= render :partial => 'shared/paginate', :locals => {:collection => @collection, :options => search_options} -%>						
		</td>
    <td valign="top">
      <form action="/admin/products" method="GET">
        <div id="search-col">
          <table class="admin-search">
            <thead>
              <tr>
                <th colspan="2">Product Details</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>Name</td>
                <td>
                  <input name="name" size="15" value="<%=@name%>"/>
                </td>
              </tr>
              <tr>
                <td>Sku</td>
                <td>
                  <input name="sku" size="15" value="<%=@sku%>"/>
                </td>
              </tr>
            </tbody>
          </table>
          <%=submit_tag "Search"%>
        </div>
      </form>
    </td>		
	</tr>
</table>

<%= link_to t("New Product"), new_object_url %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.0 app/views/admin/products/index.html.erb
spree-0.4.1 app/views/admin/products/index.html.erb
spree-0.5.0 app/views/admin/products/index.html.erb
spree-0.5.1 app/views/admin/products/index.html.erb