Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
83614ce
Models set up
heatherherrington Oct 4, 2016
fb01c35
We added the columns back into market
SSBinks Oct 4, 2016
b5c37bb
WIP routes users/markets
SSBinks Oct 4, 2016
4eddb42
Imported data from market csv file
SSBinks Oct 4, 2016
f3505dc
Seeded all data from CSV
SSBinks Oct 4, 2016
10c1b46
Added text on pages regarding what info needs to go there
heatherherrington Oct 4, 2016
443475c
Links and minor styling added to pages
heatherherrington Oct 5, 2016
3c5da42
Linked list of markets page to each market description
heatherherrington Oct 5, 2016
266600f
Added Markets and Vendors controllers and finished routes
heatherherrington Oct 5, 2016
78b16bd
Filled in what information needs to go on each page, minor formatting
heatherherrington Oct 5, 2016
80bd0df
Added list of products and sales to vendor pages
heatherherrington Oct 5, 2016
b54c550
Created the show page that will list the individual vendor
SSBinks Oct 5, 2016
65a17a4
Added Products controller
heatherherrington Oct 5, 2016
d06dbe8
Added the form for edit as well as a button on market main page. Als…
SSBinks Oct 5, 2016
0c29642
WIP - Trying to edit/delete product in vendors/show.html.erb
heatherherrington Oct 5, 2016
b000522
created new file
SSBinks Oct 5, 2016
68b2092
yess
SSBinks Oct 6, 2016
61a02a4
Product edit and delete links appearing, WIP: new Product
heatherherrington Oct 6, 2016
3af48f1
Formatted Sales info and added Market name to vendor
heatherherrington Oct 6, 2016
821f21a
Completed edit/create functionality for vendor/product
heatherherrington Oct 6, 2016
fd1cdb2
Can delete a product as a vendor
heatherherrington Oct 6, 2016
c7aad06
added buttons for the edit and delete for vendors
SSBinks Oct 6, 2016
df0411f
Changes made by Heather
SSBinks Oct 6, 2016
39a2ac2
A Market can edit a vendor
SSBinks Oct 6, 2016
7ea5bd7
Added sales controller and create sale method
heatherherrington Oct 6, 2016
b11cc08
Vendor can add sale to product
heatherherrington Oct 6, 2016
1a8662f
Able to Edit, Create and Delete Vendor as a Market
SSBinks Oct 6, 2016
db2792b
WIP summing total sales
heatherherrington Oct 6, 2016
885da2f
Made some small edits in the text
SSBinks Oct 6, 2016
55775c0
Heather updated sales
SSBinks Oct 6, 2016
afc9cca
attempt to merge
SSBinks Oct 6, 2016
02fe63f
WIP trying to sum sales
heatherherrington Oct 6, 2016
b806ee9
Fixed the helper and made a list of the vendors
SSBinks Oct 6, 2016
1d3ea1e
WIP iterating through monthly sales
heatherherrington Oct 6, 2016
7b0d9ba
Merge branch 'b/hlh/master' of https://github.com/heatherherrington/F…
heatherherrington Oct 6, 2016
776dd21
Added validation to forms, controllers, models for sale and product
heatherherrington Oct 7, 2016
1a2cace
Monthly sales list and total are correct
heatherherrington Oct 7, 2016
dc8d25f
Formatting for product table in vendors
heatherherrington Oct 7, 2016
29bb288
Playing with the buttons on market
SSBinks Oct 7, 2016
477f09a
Already commited styles
SSBinks Oct 7, 2016
764d482
Merge branch 'b/hlh/master' of https://github.com/heatherherrington/F…
SSBinks Oct 7, 2016
ede10a9
Formatted pages for consistency and fixed some errors
SSBinks Oct 7, 2016
f2dc02c
Formatted vendors show page
heatherherrington Oct 7, 2016
8436b92
Fixed merge conflict in main css file
heatherherrington Oct 7, 2016
b16d4e6
Fixed formatting issues
heatherherrington Oct 7, 2016
b04e595
Used partials in market edit/new form
heatherherrington Oct 7, 2016
3c03511
Changed some styles and text in vendor edit
SSBinks Oct 7, 2016
bee9f7e
Added partial
SSBinks Oct 7, 2016
bf7a150
Fixed formatting in forms
heatherherrington Oct 7, 2016
bc1b8c2
Fixed merge conflict in market edit form
heatherherrington Oct 7, 2016
88d765b
Added edit and delete svg image tags
heatherherrington Oct 7, 2016
da0c564
Tried to do icon...again
SSBinks Oct 7, 2016
fdf656d
Resolved conflict
SSBinks Oct 7, 2016
3ed95a8
Changed Gemfile for deployment
heatherherrington Oct 7, 2016
d34d6b5
Preparing to deploy
heatherherrington Oct 7, 2016
a8b22dc
Uncommented seeds file
heatherherrington Oct 7, 2016
1887bb5
Per Stack Overflow, added lines to production.rb file for deployment
heatherherrington Oct 7, 2016
f0963ef
Formatting HTML and adding icons
heatherherrington Oct 7, 2016
0aa7424
Added icons and formatted HTML
heatherherrington Oct 7, 2016
75066c7
Change route file
heatherherrington May 11, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.7'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
Expand All @@ -22,7 +20,7 @@ gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

gem 'font-awesome-rails'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

Expand All @@ -32,9 +30,17 @@ gem 'sdoc', '~> 0.4.0', group: :doc
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# For deployment to Heroku
group :production do
gem 'pg'
gem 'rails_12factor'
end

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end

group :development do
Expand All @@ -43,5 +49,12 @@ group :development do

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

gem 'better_errors'
# Optional but allows more advanced features of better_errors
gem 'binding_of_caller'

gem 'pry-rails'

gem 'rails-erd'
end
35 changes: 35 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
better_errors (2.1.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
byebug (9.0.6)
choice (0.2.0)
coderay (1.1.1)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
Expand All @@ -52,6 +58,8 @@ GEM
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.7.0)
font-awesome-rails (4.6.3.1)
railties (>= 3.2, < 5.1)
globalid (0.3.7)
activesupport (>= 4.1.0)
i18n (0.7.0)
Expand All @@ -67,6 +75,7 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
Expand All @@ -76,7 +85,14 @@ GEM
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
pg (0.19.0)
pkg-config (1.1.7)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-rails (0.3.4)
pry (>= 0.9.10)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
Expand All @@ -97,8 +113,18 @@ GEM
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-erd (1.5.0)
activerecord (>= 3.2)
activesupport (>= 3.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.7)
actionpack (= 4.2.7)
activesupport (= 4.2.7)
Expand All @@ -107,6 +133,7 @@ GEM
rake (11.3.0)
rdoc (4.2.2)
json (~> 1.4)
ruby-graphviz (1.2.2)
sass (3.4.22)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
Expand All @@ -117,6 +144,7 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
slop (3.6.0)
spring (2.0.0)
activesupport (>= 4.2)
sprockets (3.7.0)
Expand Down Expand Up @@ -147,11 +175,18 @@ PLATFORMS
ruby

DEPENDENCIES
better_errors
binding_of_caller
byebug
coffee-rails (~> 4.1.0)
font-awesome-rails
jbuilder (~> 2.0)
jquery-rails
pg
pry-rails
rails (= 4.2.7)
rails-erd
rails_12factor
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
spring
Expand Down
Binary file added app/assets/images/Grass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions app/assets/images/delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions app/assets/images/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/javascripts/markets.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/products.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/sales.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/users.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/vendors.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
62 changes: 62 additions & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,65 @@
*= require_tree .
*= require_self
*/

/*All pages*/

html {
font: normal normal 16px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: center;
}

header a, footer a {
color: white;
font-size: 18px;
margin: 0 15px;
}

header {
padding: 30px 0;
}

header li {
display: inline-block;
}

.main-body {
padding-left: 20px;
padding-right: 20px;
}

footer {
padding: 10px 0;
margin-top: 50px;
}

header, footer {
background: url("/assets/Grass.jpg");
color: white;
}

.individual-market {
font-size: 18px;
}

.overall-header-text {
font: 24px/1 "Lato", sans-serif;
color: #2d47a3;
}

li {
display: block;
}

.vendor-sales, .products-employees {
display: inline-block;
margin: 0 auto;
}

.all-markets {
text-align: center;
}

a {
color: black;
}
9 changes: 9 additions & 0 deletions app/assets/stylesheets/markets.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Place all the styles related to the markets controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

.list-of-markets {
text-align: left;
margin: 0 auto;

}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/products.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the products controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sales.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the sales controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/users.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the Users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/vendors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the vendors controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
Loading