forked from nss-cohort-2014-06-07/commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
105 additions
and
171 deletions.
There are no files selected for viewing
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,18 +1,4 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
|
||
extends ../shared/template | ||
block content | ||
h2 About Page! | ||
|
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,18 +1,4 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
|
||
extends ../shared/template | ||
block content | ||
h2 Faq Page! | ||
|
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,18 +1,4 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
|
||
h2 Home Page! | ||
extends ../shared/template | ||
block content | ||
h2 Home Page! | ||
|
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,44 +1,30 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
.container | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
.itemList | ||
h1 Items | ||
table | ||
thead | ||
tr | ||
th Name | ||
th Length | ||
th Width | ||
th Height | ||
th Weight | ||
th Qty | ||
th MSRP | ||
th % Off | ||
th Cost | ||
tbody | ||
each item in items | ||
tr(style='background-color:#{item.color};') | ||
td: a(href='/items/#{item._id.toString()}')= item.name | ||
td= item.dimensions.l | ||
td= item.dimensions.w | ||
td= item.dimensions.h | ||
td= item.weight | ||
td= item.quantity | ||
td= item.msrp | ||
td= item.percentOff | ||
td= item.cost() | ||
extends ../shared/template | ||
block content | ||
.itemList | ||
h2 Items | ||
table | ||
thead | ||
tr | ||
th Name | ||
th Length | ||
th Width | ||
th Height | ||
th Weight | ||
th Qty | ||
th MSRP | ||
th % Off | ||
th Cost | ||
tbody | ||
each item in items | ||
tr(style='background-color:#{item.color};') | ||
td: a(href='/items/#{item._id.toString()}')= item.name | ||
td= item.dimensions.l | ||
td= item.dimensions.w | ||
td= item.dimensions.h | ||
td= item.weight | ||
td= item.quantity | ||
td= item.msrp | ||
td= item.percentOff | ||
td= item.cost() | ||
|
||
|
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,38 +1,24 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
.container | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
#newItem | ||
form(method='post', action='/items') | ||
input(name='name', type='text', placeholder='iPad', autofocus=true) | ||
br | ||
input(name='dimensions[l]', type='number', placeholder='length') | ||
br | ||
input(name='dimensions[w]', type='number', placeholder='width') | ||
br | ||
input(name='dimensions[h]', type='number', placeholder='height') | ||
br | ||
input(name='weight', type='number', placeholder='weight') | ||
br | ||
input(name='color', type='color', placeholder='color') | ||
br | ||
input(name='quantity', type='number', placeholder='quantity') | ||
br | ||
input(name='msrp', type='number', placeholder='msrp') | ||
br | ||
input(name='percentOff', type='number', placeholder='percentOff') | ||
br | ||
button Add Item to Database | ||
extends ../shared/template | ||
block content | ||
#newItem | ||
form(method='post', action='/items') | ||
input(name='name', type='text', placeholder='iPad', autofocus=true) | ||
br | ||
input(name='dimensions[l]', type='number', placeholder='length') | ||
br | ||
input(name='dimensions[w]', type='number', placeholder='width') | ||
br | ||
input(name='dimensions[h]', type='number', placeholder='height') | ||
br | ||
input(name='weight', type='number', placeholder='weight') | ||
br | ||
input(name='color', type='color', placeholder='color') | ||
br | ||
input(name='quantity', type='number', placeholder='quantity') | ||
br | ||
input(name='msrp', type='number', placeholder='msrp') | ||
br | ||
input(name='percentOff', type='number', placeholder='percentOff') | ||
br | ||
button Add Item to Database | ||
|
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,46 +1,32 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title eCommerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
.container | ||
h1 eCommerce | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
#item | ||
form(method='post', action='/items/#{item._id}') | ||
input(type='hidden', name='_method', value='delete') | ||
table | ||
thead | ||
tr | ||
th Name | ||
th Length | ||
th Width | ||
th Height | ||
th Weight | ||
th Qty | ||
th MSRP | ||
th % Off | ||
th Cost | ||
tbody | ||
tr(style='background-color:#{item.color};') | ||
td= item.name | ||
td= item.dimensions.l | ||
td= item.dimensions.w | ||
td= item.dimensions.h | ||
td= item.weight | ||
td= item.quantity | ||
td= item.msrp | ||
td= item.percentOff | ||
td= item.cost() | ||
button Delete Item | ||
extends ../shared/template | ||
block content | ||
#item | ||
form(method='post', action='/items/#{item._id}') | ||
input(type='hidden', name='_method', value='delete') | ||
table | ||
thead | ||
tr | ||
th Name | ||
th Length | ||
th Width | ||
th Height | ||
th Weight | ||
th Qty | ||
th MSRP | ||
th % Off | ||
th Cost | ||
tbody | ||
tr(style='background-color:#{item.color};') | ||
td= item.name | ||
td= item.dimensions.l | ||
td= item.dimensions.w | ||
td= item.dimensions.h | ||
td= item.weight | ||
td= item.quantity | ||
td= item.msrp | ||
td= item.percentOff | ||
td= item.cost() | ||
button Delete Item | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
doctype html | ||
html | ||
head | ||
meta(charset='utf-8') | ||
title Commerce | ||
link(rel='stylesheet', href='/css/style.css') | ||
body | ||
.container | ||
nav | ||
ul | ||
li: a(href='/') Home | ||
li: a(href='/about') About | ||
li: a(href='/faq') Faq | ||
li: a(href='/items/new') Add Item | ||
li: a(href='/items') View Items | ||
|
||
block content | ||
|