Sha256: 816a5d7d9a37cbc08bc8bfdc1e937a34ef49a46be7eedba5c4a840a2a0b7262e

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

<!-- page content -->
<div class="right_col" role="main">
  <div class="">
    <div class="page-title">
      <div class="title_left">
        <h3>All Products</h3>
      </div>

      <div class="title_right">
        <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
          <div class="input-group">
            <input type="text" class="form-control" placeholder="Search for...">
                    <span class="input-group-btn">
                              <button class="btn btn-default" type="button">Go!</button>
                          </span>
          </div>
        </div>
      </div>
    </div>
    <div class="clearfix"></div>

    <div class="row">

      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
          <div class="x_title">

			<p id="notice"><%= flash[:notice] %></p>

			<ul class="nav">
			<% @products.each do |product| %>
				
				<li style="float: left; padding-right: 120px;"><%= image_tag(product.images[0].small.url) %>
					<p><%= product.title %></p>
					<p>$<%= product.price %></p>
          <p><%= link_to "Edit", seller_edit_product_path(id: product.id) %></p>
          <p><%= link_to "Delete", seller_delete_product_path(id: product.id), 'data-method' => :delete, :class => "delete", data: {confirm: "Are you sure?"} %></p>
				</li>

			<% end %>
			</ul>

            <div class="clearfix"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- /page content -->





Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_marketplace-0.0.2 app/views/rails_marketplace/seller/products.html.erb
rails_marketplace-0.0.1 app/views/rails_marketplace/seller/products.html.erb