Sha256: abb71f3278a16c6e827e628712d58d21c97d8fff76ace9dd7f30c2d4233eafc2

Contents?: true

Size: 865 Bytes

Versions: 7

Compression:

Stored size: 865 Bytes

Contents

<section id="products">
	<p><a href="create_product">Add New Product</a> <span id="navigate"><a href="entity_list">Back to List</a> | <a href="test_database">Logout</a></span></p>
	
	<hr/>
	
	<% if @products.length > 0 %>
		<table class="entity">
			<caption>
				<strong>Current Products</strong>
			</caption>
			<thead>
				<th id="productID">Product ID</th>
				<th id="productName">Product Name</th>
				<th id="productDescription">Product Description</th>
			</thead>
			<tbody>
				<% @products.each do |product| %>
					<tr>
						<td headers="productID"><%= product.product_id %></td>
						<td headers="productName"><%= product.name %></td>
						<td headers="productDescription"><%= product.description %></td>
					</tr>
				<% end %>
			</tbody>
		</table>
	<% else %>
		<p>No products in database.</p>
	<% end %>
</section>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
symbiont-0.1.7 app/views/db_products.erb
symbiont-0.1.6 app/views/db_products.erb
symbiont-0.1.5 app/views/db_products.erb
symbiont-0.1.4 app/views/db_products.erb
symbiont-0.1.3 app/views/db_products.erb
symbiont-0.1.2 app/views/db_products.erb
symbiont-0.1.1 app/views/db_products.erb