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 #14 from alyssahursh/styles
Styles
- Loading branch information
Showing
11 changed files
with
208 additions
and
80 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<h1>Market#index</h1> | ||
<article> | ||
<ol> | ||
<section class="body"> | ||
|
||
<% @markets.each do |market| %> | ||
<h4><%= market.id %></h4> | ||
<li><%= link_to market.name, {controller: 'markets', action: 'show', id: market.id}, method: :get %></li> | ||
<ul> | ||
<li><%= market.address %></li> | ||
<li><%= market.city %></li> | ||
<li><%= market.county %></li> | ||
<li><%= market.state %></li> | ||
<li><%= market.zip %></li> | ||
</ul> | ||
<article class="entity-display"> | ||
<img src="../assets/Market-logo-white.png" alt="vendor placeholder logo" class="market"/> | ||
<ul class="address-block"> | ||
<h3><%= link_to market.name, {action: 'show', id: market}, method: :get %></li></h3> | ||
<li><%= market.address %></li> | ||
<li><%= "#{market.city}, #{market.state} #{market.zip}" %></li> | ||
</ul> | ||
</article> | ||
<div class="list-break"></div> | ||
<% end %> | ||
</ol> | ||
</article> | ||
|
||
</section> |
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,24 +1,27 @@ | ||
<h1>Markets#show</h1> | ||
<article> | ||
<ul> | ||
<li><%= @market.name %></li> | ||
<li><%= @market.address %></li> | ||
<li><%= @market.city %></li> | ||
<li><%= @market.county %></li> | ||
<li><%= @market.state %></li> | ||
<li><%= @market.zip %></li> | ||
</ul> | ||
</article> | ||
<section class="body"> | ||
|
||
<article> | ||
<!-- need to someway set market_id to default with current market? --> | ||
<%= button_to "Add Vendor", {controller: 'vendors', action: 'new'}, method: :get %> | ||
<ul> | ||
<% @market.vendors.each do |vendor| %> | ||
<li> | ||
<%= link_to vendor.name, {controller: 'vendors', action: 'show', id: vendor.id}, method: :get %> | ||
<%= button_to "Edit", {controller: 'vendors', action: 'edit', id: vendor.id}, method: :get %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
<article class="entity-display"> | ||
<img src="../assets/Market-logo-white.png" alt="vendor placeholder logo" class="market"/> | ||
<ul class="address-block"> | ||
<h3><%= @market.name %></li></h3> | ||
<li><%= @market.address %></li> | ||
<li><%= "#{@market.city}, #{@market.state} #{@market.zip}" %></li> | ||
</ul> | ||
<%= button_to "Edit Profile", {controller: 'markets', action: 'edit', id: @market.id }, method: :get %> | ||
</article> | ||
|
||
|
||
<article> | ||
<!-- need to someway set market_id to default with current market? --> | ||
<%= button_to "Add Vendor", {controller: 'vendors', action: 'new'}, method: :get %> | ||
<ul> | ||
<% @market.vendors.each do |vendor| %> | ||
<li> | ||
<%= link_to vendor.name, {controller: 'vendors', action: 'show', id: vendor.id}, method: :get %> | ||
<%= button_to "Edit", {controller: 'vendors', action: 'edit', id: vendor.id}, method: :get %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
|
||
</section> |
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,6 +1,21 @@ | ||
<%= form_tag '/search', method: :get do %> | ||
<%= text_field_tag :search, params[:search], placeholder: 'Search for Markets' %> | ||
<%= submit_tag "search", class: "submit" %> | ||
<% end %> | ||
<div class="search"> | ||
<%= form_tag '/search', method: :get do %> | ||
<%= text_field_tag :search, params[:search], placeholder: 'Search for Markets' %> | ||
<%= submit_tag "search", class: "search-button" %> | ||
<% end %> | ||
</div> | ||
|
||
<div class="see-all"> | ||
<h5>— OR —</h5> | ||
<h5>See All</h5> | ||
<ul> | ||
<li> | ||
<a href="/markets">M</a> | ||
<a href="/vendors">V</a> | ||
<a href="/products">P</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<img src="assets/food-board.jpg" alt="Salmon meal on wooden platter" class="banner-image"/> |
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,12 +1,15 @@ | ||
<h1>Vendors#index</h1> | ||
<article> | ||
<ul> | ||
<section class="body"> | ||
|
||
<% @vendors.each do |vendor| %> | ||
<h4><%= vendor.id %></h4> | ||
<li><%= link_to vendor.name, {controller: 'vendors', action: 'show', id: vendor.id}, method: :get %></li> | ||
<li><%= vendor.description %></li> | ||
<li><%= vendor.num_of_employees %></li> | ||
<li><%= vendor.market_id %></li> | ||
<article class="entity-display"> | ||
<img src="../assets/Vendor-logo-white.png" alt="vendor placeholder logo" class="vendor"/> | ||
<ul> | ||
<h3><%= vendor.name %></h3> | ||
<h4>at <%= link_to vendor.market.name, {controller: 'markets', action: 'show', id: vendor.market_id}, method: :get %></h4> | ||
<p>Description: <%= vendor.description %></p> | ||
</ul> | ||
</article> | ||
<div class="list-break"></div> | ||
<% end %> | ||
</ul> | ||
</article> | ||
|
||
</section> |
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,25 +1,28 @@ | ||
<h1>Vendors#show</h1> | ||
<article> | ||
<ul> | ||
<li><%= @vendor.name %></li> | ||
<li><%= @vendor.description %></li> | ||
<li><%= @vendor.num_of_employees %></li> | ||
<li><%= @vendor.market_id %></li> | ||
</ul> | ||
</article> | ||
<section class="body"> | ||
|
||
<article> | ||
<!-- need to someway set vendor_id to default with current vendor? --> | ||
<%= button_to "Add Product", {controller: 'products', action: 'new', id: @vendor.id}, method: :get %> | ||
<ul> | ||
<% @vendor.products.each do |product| %> | ||
<li> | ||
<%= product.name %> | ||
<%= button_to "Edit", {controller: 'products', action: 'edit', id: product.id}, method: :get %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
<article class="entity-display"> | ||
<img src="../assets/Vendor-logo-white.png" alt="vendor placeholder logo" class="vendor"/> | ||
<ul> | ||
<h3><%= @vendor.name %></h3> | ||
<h4>at <%= link_to @vendor.market.name, {controller: 'markets', action: 'show', id: @vendor.market_id}, method: :get %></h4> | ||
<p>Description: <%= @vendor.description %></p> | ||
</ul> | ||
<%= button_to "Edit Profile", {controller: 'vendors', action: 'edit', id: @vendor.id }, method: :get %> | ||
</article> | ||
|
||
<!-- update sales index method to only pull sales with certain vendor id? --> | ||
<%= button_to "See Sales", {controller: 'sales', action: 'index'}, method: :get %> | ||
<article> | ||
<!-- need to someway set vendor_id to default with current vendor? --> | ||
<%= button_to "Add Product", {controller: 'products', action: 'new', id: @vendor.id }, method: :get %> | ||
<ul> | ||
<% @vendor.products.each do |product| %> | ||
<li> | ||
<%= product.name %><%= button_to "Edit", {controller: 'products', action: 'edit', id: product.id}, method: :get, class:"submit" %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
|
||
<!-- update sales index method to only pull sales with certain vendor id? --> | ||
<%= button_to "See Sales", {controller: 'sales', action: 'index'}, method: :get %> | ||
|
||
</section> |