forked from Ada-C6/FarMarRails
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from alyssahursh/styles
Styles
- Loading branch information
Showing
6 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
<h1>Products#index</h1> | ||
<article> | ||
<ul> | ||
<% @products.each do |product| %> | ||
<h4><%= product.id %></h4> | ||
<li><%= link_to product.name, {controller: 'products', action: 'show', id: product.id} %></li> | ||
<li><%= product.vendor_id %></li> | ||
<section class="body"> | ||
|
||
<div class="search search-high"> | ||
<%= search_form_for @search_product do |f| %> | ||
<%= f.search_field :name_cont, placeholder: "Search Products"%> | ||
<%= f.submit "search", class:"search-button" %> | ||
<% end %> | ||
</ul> | ||
</article | ||
</div> | ||
|
||
<article> | ||
<ul> | ||
<% @products.each do |product| %> | ||
<h3><%= link_to product.name, {controller: 'products', action: 'show', id: product.id} %></h3> | ||
<h4>sold by <%= link_to product.vendor.name, {controller: 'vendors', action: 'show', id: product.vendor.id} %></h4> | ||
<h4>at <%= link_to product.vendor.market.name, {controller: 'markets', action: 'show', id: product.vendor.market.id}%></h4> | ||
<div class="list-break"></div> | ||
<% end %> | ||
</ul> | ||
|
||
</article> | ||
</section> |