Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Set up folders structure, add styles to homepage

weronka4a0597b11a25
diff --git a/package.json b/package.json
index 671b193ea2..ef20e99971 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"node": "6.x"
},
"dependencies": {
+ "bootstrap": "^4.0.0-alpha.5",
"bootstrap-sass": "^3.3.7",
"dropzone": "^4.2.0",
"jquery": "^2.1.4",
diff --git a/saleor/core/urls.py b/saleor/core/urls.py
index 84a7719a03..327c9ac32e 100644
--- a/saleor/core/urls.py
+++ b/saleor/core/urls.py
@@ -4,5 +4,6 @@ from . import views
urlpatterns = [
- url(r'^$', views.home, name='home')
+ url(r'^$', views.home, name='home'),
+ url(r'^demo/', views.demo, name='demo')
]
diff --git a/saleor/core/views.py b/saleor/core/views.py
index 3279bc26ab..77f50bf0d3 100644
--- a/saleor/core/views.py
+++ b/saleor/core/views.py
@@ -10,3 +10,12 @@ def home(request):
return TemplateResponse(
request, 'base.html',
{'products': products, 'parent': None})
+
+
+def demo(request):
+ products = Product.objects.get_available_products()[:12]
+ products = products.prefetch_related('categories', 'images',
+ 'variants__stock')
+ return TemplateResponse(
+ request, 'demo/home.html',
+ {'products': products, 'parent': None})
\ No newline at end of file
diff --git a/saleor/static/fonts/Lato-Black.ttf b/saleor/static/fonts/Lato-Black.ttf
new file mode 100755
index 0000000000..6848db0d1a
Binary files /dev/null and b/saleor/static/fonts/Lato-Black.ttf differ
diff --git a/saleor/static/fonts/Lato-Black.woff b/saleor/static/fonts/Lato-Black.woff
new file mode 100644
index 0000000000..7ff0a27e95
Binary files /dev/null and b/saleor/static/fonts/Lato-Black.woff differ
diff --git a/saleor/static/fonts/Lato-Black.woff2 b/saleor/static/fonts/Lato-Black.woff2
new file mode 100644
index 0000000000..2fc23ff950
Binary files /dev/null and b/saleor/static/fonts/Lato-Black.woff2 differ
diff --git a/saleor/static/fonts/Lato-Bold.ttf b/saleor/static/fonts/Lato-Bold.ttf
new file mode 100755
index 0000000000..74343694e2
Binary files /dev/null and b/saleor/static/fonts/Lato-Bold.ttf differ
diff --git a/saleor/static/fonts/Lato-Bold.woff b/saleor/static/fonts/Lato-Bold.woff
new file mode 100644
index 0000000000..f18c5be59f
Binary files /dev/null and b/saleor/static/fonts/Lato-Bold.woff differ
diff --git a/saleor/static/fonts/Lato-Bold.woff2 b/saleor/static/fonts/Lato-Bold.woff2
new file mode 100644
index 0000000000..9a81911f96
Binary files /dev/null and b/saleor/static/fonts/Lato-Bold.woff2 differ
diff --git a/saleor/static/fonts/Lato-Regular.ttf b/saleor/static/fonts/Lato-Regular.ttf
new file mode 100755
index 0000000000..04ea8efb13
Binary files /dev/null and b/saleor/static/fonts/Lato-Regular.ttf differ
diff --git a/saleor/static/fonts/Lato-Regular.woff b/saleor/static/fonts/Lato-Regular.woff
new file mode 100644
index 0000000000..3cd2e20efa
Binary files /dev/null and b/saleor/static/fonts/Lato-Regular.woff differ
diff --git a/saleor/static/fonts/Lato-Regular.woff2 b/saleor/static/fonts/Lato-Regular.woff2
new file mode 100644
index 0000000000..53501fafd6
Binary files /dev/null and b/saleor/static/fonts/Lato-Regular.woff2 differ
diff --git a/saleor/static/img/basket.svg b/saleor/static/img/basket.svg
new file mode 100644
index 0000000000..42fc46a117
--- /dev/null
+++ b/saleor/static/img/basket.svg
@@ -0,0 +1,12 @@
+<svg width="35" height="30" viewBox="0 0 35 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>&#239;&#138;&#145;</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(473 1328)" figma:type="canvas">
+<g id="&#239;&#138;&#145;" style="mix-blend-mode:normal;" figma:type="text">
+<use xlink:href="#path0_fill" transform="translate(-473 -1328)" fill="#333333" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 32.1429 12.8571C 32.7344 12.8571 33.2366 13.0692 33.6496 13.4933C 34.0737 13.9062 34.2857 14.4085 34.2857 15C 34.2857 15.5915 34.0737 16.0993 33.6496 16.5234C 33.2366 16.9364 32.7344 17.1429 32.1429 17.1429L 31.8917 17.1429L 29.9665 28.2254C 29.8772 28.7388 29.6317 29.1629 29.2299 29.4978C 28.8281 29.8326 28.3705 30 27.8571 30L 6.42857 30C 5.91518 30 5.45759 29.8326 5.0558 29.4978C 4.65402 29.1629 4.40848 28.7388 4.3192 28.2254L 2.39397 17.1429L 2.14286 17.1429C 1.55134 17.1429 1.04353 16.9364 0.61942 16.5234C 0.206473 16.0993 0 15.5915 0 15C 0 14.4085 0.206473 13.9062 0.61942 13.4933C 1.04353 13.0692 1.55134 12.8571 2.14286 12.8571L 32.1429 12.8571ZM 8.11942 26.25C 8.4096 26.2277 8.64955 26.0993 8.83929 25.865C 9.04018 25.6417 9.12946 25.385 9.10714 25.0949L 8.57143 18.1306C 8.54911 17.8404 8.42076 17.6004 8.18638 17.4107C 7.96317 17.2098 7.70647 17.1205 7.41629 17.1429C 7.12612 17.1652 6.88058 17.2935 6.67969 17.5279C 6.48996 17.7511 6.40625 18.0078 6.42857 18.298L 6.96429 25.2623C 6.98661 25.5413 7.09821 25.7757 7.29911 25.9654C 7.51116 26.1551 7.7567 26.25 8.03571 26.25L 8.11942 26.25ZM 15 25.1786L 15 18.2143C 15 17.9241 14.894 17.673 14.6819 17.4609C 14.4699 17.2489 14.2188 17.1429 13.9286 17.1429C 13.6384 17.1429 13.3873 17.2489 13.1752 17.4609C 12.9632 17.673 12.8571 17.9241 12.8571 18.2143L 12.8571 25.1786C 12.8571 25.4687 12.9632 25.7199 13.1752 25.9319C 13.3873 26.144 13.6384 26.25 13.9286 26.25C 14.2188 26.25 14.4699 26.144 14.6819 25.9319C 14.894 25.7199 15 25.4687 15 25.1786ZM 21.4286 25.1786L 21.4286 18.2143C 21.4286 17.9241 21.3225 17.673 21.1105 17.4609C 20.8984 17.2489 20.6473 17.1429 20.3571 17.1429C 20.067 17.1429 19.8158 17.2489 19.6038 17.4609C 19.3917 17.673 19.2857 17.9241 19.2857 18.2143L 19.2857 25.1786C 19.2857 25.4687 19.3917 25.7199 19.6038 25.9319C 19.8158 26.144 20.067 26.25 20.3571 26.25C 20.6473 26.25 20.8984 26.144 21.1105 25.9319C 21.3225 25.7199 21.4286 25.4687 21.4286 25.1786ZM 27.3214 25.2623L 27.8571 18.298C 27.8795 18.0078 27.7902 17.7511 27.5893 17.5279C 27.3996 17.2935 27.1596 17.1652 26.8694 17.1429C 26.5792 17.1205 26.317 17.2098 26.0826 17.4107C 25.8594 17.6004 25.7366 17.8404 25.7143 18.1306L 25.1786 25.0949C 25.1563 25.385 25.24 25.6417 25.4297 25.865C 25.6306 26.0993 25.8761 26.2277 26.1663 26.25L 26.25 26.25C 26.529 26.25 26.769 26.1551 26.9699 25.9654C 27.1819 25.7757 27.2991 25.5413 27.3214 25.2623ZM 7.96875 4.88839L 6.41183 11.7857L 4.20201 11.7857L 5.89286 4.4029C 6.10491 3.42076 6.60156 2.62277 7.38281 2.00893C 8.16406 1.38393 9.05692 1.07143 10.0614 1.07143L 12.8571 1.07143C 12.8571 0.78125 12.9632 0.530134 13.1752 0.31808C 13.3873 0.106027 13.6384 -1.07288e-06 13.9286 -1.07288e-06L 20.3571 -1.07288e-06C 20.6473 -1.07288e-06 20.8984 0.106027 21.1105 0.31808C 21.3225 0.530134 21.4286 0.78125 21.4286 1.07143L 24.2243 1.07143C 25.2288 1.07143 26.1217 1.38393 26.9029 2.00893C 27.6842 2.62277 28.1808 3.42076 28.3929 4.4029L 30.0837 11.7857L 27.8739 11.7857L 26.317 4.88839C 26.1942 4.39732 25.9375 3.99554 25.5469 3.68303C 25.1674 3.37053 24.7266 3.21428 24.2243 3.21428L 21.4286 3.21428C 21.4286 3.50446 21.3225 3.75558 21.1105 3.96763C 20.8984 4.17969 20.6473 4.28571 20.3571 4.28571L 13.9286 4.28571C 13.6384 4.28571 13.3873 4.17969 13.1752 3.96763C 12.9632 3.75558 12.8571 3.50446 12.8571 3.21428L 10.0614 3.21428C 9.55915 3.21428 9.11272 3.37053 8.7221 3.68303C 8.34263 3.99554 8.09152 4.39732 7.96875 4.88839Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/block1.jpg b/saleor/static/img/block1.jpg
new file mode 100644
index 0000000000..b742347feb
Binary files /dev/null and b/saleor/static/img/block1.jpg differ
diff --git a/saleor/static/img/block2.jpg b/saleor/static/img/block2.jpg
new file mode 100644
index 0000000000..a45a4f7d19
Binary files /dev/null and b/saleor/static/img/block2.jpg differ
diff --git a/saleor/static/img/block3.jpg b/saleor/static/img/block3.jpg
new file mode 100644
index 0000000000..dda31ffda6
Binary files /dev/null and b/saleor/static/img/block3.jpg differ
diff --git a/saleor/static/img/github_logo.svg b/saleor/static/img/github_logo.svg
new file mode 100644
index 0000000000..9b9d1fa244
--- /dev/null
+++ b/saleor/static/img/github_logo.svg
@@ -0,0 +1,14 @@
+<svg width="45" height="43" viewBox="0 0 45 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>github_logo</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(548 -592)" figma:type="canvas">
+<g id="github_logo" style="mix-blend-mode:normal;" figma:type="frame">
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path0_fill" transform="translate(-548 592)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+</g>
+<defs>
+<path id="path0_fill" fill-rule="evenodd" d="M 22.4943 -7.16688e-09C 10.0725 -7.16688e-09 7.85499e-09 9.87083 7.85499e-09 22.044C 7.85499e-09 31.7835 6.44383 40.0444 15.3848 42.9636C 16.5095 43.1662 16.9185 42.4827 16.9185 41.8993C 16.9185 41.376 16.9003 39.9888 16.8889 38.1473C 10.6337 39.4789 9.31356 35.1925 9.31356 35.1925C 8.28882 32.6452 6.81419 31.9683 6.81419 31.9683C 4.77152 30.6011 6.97097 30.6256 6.97097 30.6256C 9.22949 30.7837 10.4156 32.8991 10.4156 32.8991C 12.4219 36.268 15.6824 35.2927 16.9639 34.7316C 17.1661 33.3043 17.7501 32.3335 18.3908 31.7813C 13.3943 31.2268 8.1434 29.3364 8.1434 20.8884C 8.1434 18.4814 9.02045 16.5152 10.4587 14.9721C 10.2292 14.4155 9.45443 12.1732 10.6791 9.13826C 10.6791 9.13826 12.5696 8.54374 16.8685 11.4006C 18.6612 10.9107 20.5857 10.6635 22.5011 10.6568C 24.4097 10.6635 26.3365 10.9107 28.1338 11.4006C 32.4282 8.54596 34.3118 9.13826 34.3118 9.13826C 35.5365 12.1732 34.7685 14.4155 34.539 14.9721C 35.9818 16.513 36.8498 18.4814 36.8498 20.8884C 36.8498 29.3609 31.5897 31.2202 26.5774 31.7657C 27.3885 32.447 28.1088 33.792 28.1088 35.8494C 28.1088 38.7953 28.0793 41.1734 28.0793 41.897C 28.0793 42.4871 28.486 43.1729 29.6266 42.9592C 38.5584 40.0378 45 31.779 45 22.0418C 44.9909 9.86861 34.9162 -7.16688e-09 22.4943 -7.16688e-09Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/mobile-bar.svg b/saleor/static/img/mobile-bar.svg
new file mode 100755
index 0000000000..16bafc8f54
--- /dev/null
+++ b/saleor/static/img/mobile-bar.svg
@@ -0,0 +1,12 @@
+<svg width="39" height="33" viewBox="0 0 44 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>&#239;&#131;&#137;</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(2276 1342)" figma:type="canvas">
+<g id="&#239;&#131;&#137;" style="mix-blend-mode:normal;" figma:type="text">
+<use xlink:href="#path0_fill" transform="translate(-2276 -1348)" fill="#333333" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 38.5714 33.75L 38.5714 36.9643C 38.5714 37.3996 38.4124 37.7762 38.0943 38.0943C 37.7762 38.4124 37.3996 38.5714 36.9643 38.5714L 1.60714 38.5714C 1.17187 38.5714 0.795201 38.4124 0.477121 38.0943C 0.15904 37.7762 0 37.3996 0 36.9643L 0 33.75C 0 33.3147 0.15904 32.9381 0.477121 32.62C 0.795201 32.3019 1.17187 32.1429 1.60714 32.1429L 36.9643 32.1429C 37.3996 32.1429 37.7762 32.3019 38.0943 32.62C 38.4124 32.9381 38.5714 33.3147 38.5714 33.75ZM 38.5714 20.8929L 38.5714 24.1071C 38.5714 24.5424 38.4124 24.9191 38.0943 25.2372C 37.7762 25.5552 37.3996 25.7143 36.9643 25.7143L 1.60714 25.7143C 1.17187 25.7143 0.795201 25.5552 0.477121 25.2372C 0.15904 24.9191 0 24.5424 0 24.1071L 0 20.8929C 0 20.4576 0.15904 20.0809 0.477121 19.7628C 0.795201 19.4448 1.17187 19.2857 1.60714 19.2857L 36.9643 19.2857C 37.3996 19.2857 37.7762 19.4448 38.0943 19.7628C 38.4124 20.0809 38.5714 20.4576 38.5714 20.8929ZM 38.5714 8.03572L 38.5714 11.25C 38.5714 11.6853 38.4124 12.0619 38.0943 12.38C 37.7762 12.6981 37.3996 12.8571 36.9643 12.8571L 1.60714 12.8571C 1.17187 12.8571 0.795201 12.6981 0.477121 12.38C 0.15904 12.0619 0 11.6853 0 11.25L 0 8.03572C 0 7.60045 0.15904 7.22377 0.477121 6.90569C 0.795201 6.58761 1.17187 6.42857 1.60714 6.42857L 36.9643 6.42857C 37.3996 6.42857 37.7762 6.58761 38.0943 6.90569C 38.4124 7.22377 38.5714 7.60045 38.5714 8.03572Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/search-icon.svg b/saleor/static/img/search-icon.svg
new file mode 100755
index 0000000000..6eb08bceee
--- /dev/null
+++ b/saleor/static/img/search-icon.svg
@@ -0,0 +1,12 @@
+<svg width="42" height="42" viewBox="0 0 42 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>&#239;&#128;&#130;</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(1882 1346)" figma:type="canvas">
+<g id="&#239;&#128;&#130;" style="mix-blend-mode:normal;" figma:type="text">
+<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#333333" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 25.6138 28.8532C 27.8237 26.6434 28.9286 23.99 28.9286 20.8929C 28.9286 17.7958 27.8237 15.1507 25.6138 12.9576C 23.4208 10.7478 20.7757 9.64286 17.6786 9.64286C 14.5815 9.64286 11.928 10.7478 9.71819 12.9576C 7.52511 15.1507 6.42857 17.7958 6.42857 20.8929C 6.42857 23.99 7.52511 26.6434 9.71819 28.8532C 11.928 31.0463 14.5815 32.1429 17.6786 32.1429C 20.7757 32.1429 23.4208 31.0463 25.6138 28.8532ZM 41.7857 41.7857C 41.7857 42.6563 41.4676 43.4096 40.8315 44.0458C 40.1953 44.6819 39.442 45 38.5714 45C 37.6674 45 36.9141 44.6819 36.3114 44.0458L 27.6981 35.4576C 24.7014 37.5335 21.3616 38.5714 17.6786 38.5714C 15.2846 38.5714 12.9911 38.1111 10.798 37.1903C 8.62165 36.2528 6.73828 34.9972 5.14788 33.4236C 3.57422 31.8331 2.31864 29.9498 1.38114 27.7734C 0.460379 25.5804 0 23.2868 0 20.8929C 0 18.4989 0.460379 16.2137 1.38114 14.0374C 2.31864 11.8443 3.57422 9.96094 5.14788 8.38728C 6.73828 6.79688 8.62165 5.5413 10.798 4.62054C 12.9911 3.68304 15.2846 3.21429 17.6786 3.21429C 20.0725 3.21429 22.3577 3.68304 24.534 4.62054C 26.7271 5.5413 28.6105 6.79688 30.1842 8.38728C 31.7746 9.96094 33.0301 11.8443 33.9509 14.0374C 34.8884 16.2137 35.3571 18.4989 35.3571 20.8929C 35.3571 24.5759 34.3192 27.9157 32.2433 30.9124L 40.8566 39.5257C 41.476 40.1451 41.7857 40.8984 41.7857 41.7857Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/testeor-logo-white.svg b/saleor/static/img/testeor-logo-white.svg
new file mode 100644
index 0000000000..50bbfb53ba
--- /dev/null
+++ b/saleor/static/img/testeor-logo-white.svg
@@ -0,0 +1,40 @@
+<svg width="156" height="38" viewBox="0 0 156 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>Group</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(1381 -594)" figma:type="canvas">
+<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">
+<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path0_fill" transform="translate(-1381 594)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path1_fill" transform="translate(-1362.54 603.66)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path2_fill" transform="translate(-1337.96 603.5)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path3_fill" transform="translate(-1316.28 594)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path4_fill" transform="translate(-1299.85 603.66)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path5_fill" transform="translate(-1273.9 603.5)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path6_fill" transform="translate(-1244.52 603.66)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 9.91615 37.1994L 9.91615 9.17978L 0 9.17978L 0 0L 29.643 0L 29.643 9.17978L 19.9378 9.17978L 19.9378 37.1994L 9.91615 37.1994Z"/>
+<path id="path1_fill" d="M 0 13.9298C 0 9.71348 1.42413 6.35112 4.21964 3.8427C 7.01515 1.2809 10.6018 0 14.9797 0C 19.1994 0 22.6278 1.33427 25.3178 4.00281C 28.0078 6.61798 29.3265 9.8736 29.3265 13.7697C 29.3265 14.7837 29.2737 15.7978 29.1682 16.7584L 9.75791 16.7584C 9.91615 18.6798 12.2369 19.9073 15.6654 19.9073C 17.9335 19.9073 19.8323 19.2135 21.3619 17.8258L 26.9002 23.1629C 23.63 26.4719 19.7268 28.1264 15.1379 28.1264C 10.6018 28.1264 6.9624 26.8455 4.16689 24.3371C 1.37138 21.7753 0 18.4129 0 14.1966L 0 13.9298ZM 19.6213 10.7809C 19.6213 9.07303 17.5115 7.57865 14.9797 7.57865C 12.2369 7.57865 9.96889 9.01966 9.81066 10.7809L 19.6213 10.7809Z"/>
+<path id="path2_fill" d="M 5.16906 17.8258C 7.06789 19.427 9.70517 20.2275 13.1336 20.2275C 15.0852 20.2275 16.0874 20.014 16.0874 18.9466C 16.0874 18.573 15.7182 18.3062 14.927 18.1461C 14.1885 17.9326 13.0809 17.7191 11.5513 17.5056C 10.0216 17.2388 8.75575 16.9185 7.64809 16.5449C 3.90316 15.2107 2.05707 12.809 2.05707 9.33989C 2.05707 6.29775 3.16473 4.00281 5.43278 2.40169C 7.70084 0.800562 10.3381 0 13.4501 0C 16.9313 0 20.2015 0.960674 23.2608 2.88202L 19.4631 9.5C 17.5115 8.37921 15.4017 7.79213 13.1336 7.79213C 11.5513 7.79213 10.7601 8.16573 10.7601 8.91292C 10.7601 9.39326 10.9711 9.66011 11.393 9.82022L 14.3995 10.3539C 15.9291 10.6208 17.5642 10.9944 19.1994 11.5815C 23.1025 12.9157 25.0541 15.3174 25.0541 18.8399C 25.0541 24.8174 20.94 28.5 12.6589 28.5C 7.75358 28.5 3.53395 27.1657 0 24.4438L 5.16906 17.8258Z"/>
+<path id="path3_fill" d="M 3.63944 18.8933L 0 18.8933L 0 10.3006L 3.63944 10.3006L 3.63944 0L 13.3973 0L 13.3973 10.3006L 18.8829 10.3006L 18.8829 18.8933L 13.3973 18.8933L 13.3973 26.2051C 13.3973 28.3399 14.2413 29.2472 16.2983 29.2472C 16.7731 29.2472 17.406 29.1938 18.0917 29.0337L 18.0917 37.4129C 16.8785 37.6798 15.4017 37.8399 13.5556 37.8399C 6.9624 37.8399 3.63944 34.4242 3.63944 27.5927L 3.63944 18.8933Z"/>
+<path id="path4_fill" d="M -1.28773e-06 13.9298C -1.28773e-06 9.71348 1.42413 6.35112 4.21964 3.8427C 7.01515 1.2809 10.6018 0 14.9797 0C 19.1993 0 22.6278 1.33427 25.3178 4.00281C 28.0078 6.61798 29.3265 9.8736 29.3265 13.7697C 29.3265 14.7837 29.2737 15.7978 29.1682 16.7584L 9.75791 16.7584C 9.91615 18.6798 12.2369 19.9073 15.6654 19.9073C 17.9335 19.9073 19.8323 19.2135 21.3619 17.8258L 26.9002 23.1629C 23.63 26.4719 19.7268 28.1264 15.1379 28.1264C 10.6018 28.1264 6.9624 26.8455 4.16689 24.3371C 1.37138 21.7753 -1.28773e-06 18.4129 -1.28773e-06 14.1966L -1.28773e-06 13.9298ZM 19.6213 10.7809C 19.6213 9.07303 17.5115 7.57865 14.9797 7.57865C 12.2369 7.57865 9.96889 9.01966 9.81065 10.7809L 19.6213 10.7809Z"/>
+<path id="path5_fill" d="M 25.7398 4.21629C 28.6935 6.99157 30.1704 10.3539 30.1704 14.25C 30.1704 18.1461 28.6935 21.5084 25.7398 24.3371C 22.786 27.1124 19.2521 28.5 15.0852 28.5C 10.9183 28.5 7.33163 27.1124 4.37788 24.3371C 1.47688 21.5084 -1.28773e-06 18.1461 -1.28773e-06 14.25C -1.28773e-06 10.3539 1.47688 6.99157 4.37788 4.21629C 7.33163 1.38764 10.9183 0 15.0852 0C 19.2521 0 22.786 1.38764 25.7398 4.21629ZM 18.9356 17.9326C 20.0433 16.9185 20.5707 15.691 20.5707 14.25C 20.5707 12.809 20.0433 11.5815 18.9356 10.5674C 17.828 9.55337 16.5621 9.01966 15.0852 9.01966C 12.0787 9.01966 9.59968 11.4213 9.59968 14.25C 9.59968 17.0787 12.0787 19.4803 15.0852 19.4803C 16.5621 19.4803 17.828 18.9466 18.9356 17.9326Z"/>
+<path id="path6_fill" d="M 5.15092e-06 27.5393L 5.15092e-06 0.640449L 9.75792 0.640449L 9.75792 3.94944C 11.2875 1.33427 13.8193 0 17.2478 0C 17.828 0 19.2521 0.160112 19.5158 0.160112L 19.5158 9.1264C 18.6192 8.96629 17.7752 8.85955 16.8786 8.85955C 12.237 8.85955 9.75792 11.3146 9.75792 15.5843L 9.75792 27.5393L 5.15092e-06 27.5393Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/testeor-logo.svg b/saleor/static/img/testeor-logo.svg
new file mode 100644
index 0000000000..3d02f25617
--- /dev/null
+++ b/saleor/static/img/testeor-logo.svg
@@ -0,0 +1,40 @@
+<svg width="156" height="38" viewBox="0 0 156 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>Group</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(1383 1331)" figma:type="canvas">
+<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">
+<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path0_fill" transform="translate(-1383 -1331)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path1_fill" transform="translate(-1364.54 -1321.34)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path2_fill" transform="translate(-1339.96 -1321.5)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path3_fill" transform="translate(-1318.28 -1331)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path4_fill" transform="translate(-1301.85 -1321.34)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path5_fill" transform="translate(-1275.9 -1321.5)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path6_fill" transform="translate(-1246.52 -1321.34)" fill="#2F2020" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 9.91615 37.1994L 9.91615 9.17978L 0 9.17978L 0 0L 29.643 0L 29.643 9.17978L 19.9378 9.17978L 19.9378 37.1994L 9.91615 37.1994Z"/>
+<path id="path1_fill" d="M 0 13.9298C 0 9.71348 1.42413 6.35112 4.21964 3.8427C 7.01515 1.2809 10.6018 0 14.9797 0C 19.1994 0 22.6278 1.33427 25.3178 4.00281C 28.0078 6.61798 29.3265 9.8736 29.3265 13.7697C 29.3265 14.7837 29.2737 15.7978 29.1682 16.7584L 9.75791 16.7584C 9.91615 18.6798 12.2369 19.9073 15.6654 19.9073C 17.9335 19.9073 19.8323 19.2135 21.3619 17.8258L 26.9002 23.1629C 23.63 26.4719 19.7268 28.1264 15.1379 28.1264C 10.6018 28.1264 6.9624 26.8455 4.16689 24.3371C 1.37138 21.7753 0 18.4129 0 14.1966L 0 13.9298ZM 19.6213 10.7809C 19.6213 9.07303 17.5115 7.57865 14.9797 7.57865C 12.2369 7.57865 9.96889 9.01966 9.81066 10.7809L 19.6213 10.7809Z"/>
+<path id="path2_fill" d="M 5.16906 17.8258C 7.06789 19.427 9.70517 20.2275 13.1336 20.2275C 15.0852 20.2275 16.0874 20.014 16.0874 18.9466C 16.0874 18.573 15.7182 18.3062 14.927 18.1461C 14.1885 17.9326 13.0809 17.7191 11.5513 17.5056C 10.0216 17.2388 8.75575 16.9185 7.64809 16.5449C 3.90316 15.2107 2.05707 12.809 2.05707 9.33989C 2.05707 6.29775 3.16473 4.00281 5.43278 2.40169C 7.70084 0.800562 10.3381 0 13.4501 0C 16.9313 0 20.2015 0.960674 23.2608 2.88202L 19.4631 9.5C 17.5115 8.37921 15.4017 7.79213 13.1336 7.79213C 11.5513 7.79213 10.7601 8.16573 10.7601 8.91292C 10.7601 9.39326 10.9711 9.66011 11.393 9.82022L 14.3995 10.3539C 15.9291 10.6208 17.5642 10.9944 19.1994 11.5815C 23.1025 12.9157 25.0541 15.3174 25.0541 18.8399C 25.0541 24.8174 20.94 28.5 12.6589 28.5C 7.75358 28.5 3.53395 27.1657 0 24.4438L 5.16906 17.8258Z"/>
+<path id="path3_fill" d="M 3.63944 18.8933L 0 18.8933L 0 10.3006L 3.63944 10.3006L 3.63944 0L 13.3973 0L 13.3973 10.3006L 18.8829 10.3006L 18.8829 18.8933L 13.3973 18.8933L 13.3973 26.2051C 13.3973 28.3399 14.2413 29.2472 16.2983 29.2472C 16.7731 29.2472 17.406 29.1938 18.0917 29.0337L 18.0917 37.4129C 16.8785 37.6798 15.4017 37.8399 13.5556 37.8399C 6.9624 37.8399 3.63944 34.4242 3.63944 27.5927L 3.63944 18.8933Z"/>
+<path id="path4_fill" d="M -1.28773e-06 13.9298C -1.28773e-06 9.71348 1.42413 6.35112 4.21964 3.8427C 7.01515 1.2809 10.6018 0 14.9797 0C 19.1993 0 22.6278 1.33427 25.3178 4.00281C 28.0078 6.61798 29.3265 9.8736 29.3265 13.7697C 29.3265 14.7837 29.2737 15.7978 29.1682 16.7584L 9.75791 16.7584C 9.91615 18.6798 12.2369 19.9073 15.6654 19.9073C 17.9335 19.9073 19.8323 19.2135 21.3619 17.8258L 26.9002 23.1629C 23.63 26.4719 19.7268 28.1264 15.1379 28.1264C 10.6018 28.1264 6.9624 26.8455 4.16689 24.3371C 1.37138 21.7753 -1.28773e-06 18.4129 -1.28773e-06 14.1966L -1.28773e-06 13.9298ZM 19.6213 10.7809C 19.6213 9.07303 17.5115 7.57865 14.9797 7.57865C 12.2369 7.57865 9.96889 9.01966 9.81065 10.7809L 19.6213 10.7809Z"/>
+<path id="path5_fill" d="M 25.7398 4.21629C 28.6935 6.99157 30.1704 10.3539 30.1704 14.25C 30.1704 18.1461 28.6935 21.5084 25.7398 24.3371C 22.786 27.1124 19.2521 28.5 15.0852 28.5C 10.9183 28.5 7.33163 27.1124 4.37788 24.3371C 1.47688 21.5084 -1.28773e-06 18.1461 -1.28773e-06 14.25C -1.28773e-06 10.3539 1.47688 6.99157 4.37788 4.21629C 7.33163 1.38764 10.9183 0 15.0852 0C 19.2521 0 22.786 1.38764 25.7398 4.21629ZM 18.9356 17.9326C 20.0433 16.9185 20.5707 15.691 20.5707 14.25C 20.5707 12.809 20.0433 11.5815 18.9356 10.5674C 17.828 9.55337 16.5621 9.01966 15.0852 9.01966C 12.0787 9.01966 9.59968 11.4213 9.59968 14.25C 9.59968 17.0787 12.0787 19.4803 15.0852 19.4803C 16.5621 19.4803 17.828 18.9466 18.9356 17.9326Z"/>
+<path id="path6_fill" d="M 5.15092e-06 27.5393L 5.15092e-06 0.640449L 9.75792 0.640449L 9.75792 3.94944C 11.2875 1.33427 13.8193 0 17.2478 0C 17.828 0 19.2521 0.160112 19.5158 0.160112L 19.5158 9.1264C 18.6192 8.96629 17.7752 8.85955 16.8786 8.85955C 12.237 8.85955 9.75792 11.3146 9.75792 15.5843L 9.75792 27.5393L 5.15092e-06 27.5393Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/img/twitter_logo.svg b/saleor/static/img/twitter_logo.svg
new file mode 100644
index 0000000000..bb944d1dd4
--- /dev/null
+++ b/saleor/static/img/twitter_logo.svg
@@ -0,0 +1,12 @@
+<svg width="43" height="43" viewBox="0 0 43 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
+<title>Vector</title>
+<desc>Created using Figma</desc>
+<g id="Canvas" transform="translate(481 -592)" figma:type="canvas">
+<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">
+<use xlink:href="#path0_fill" transform="translate(-481 592)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+</g>
+</g>
+<defs>
+<path id="path0_fill" d="M 21.5011 9.42327e-09C 9.62631 9.42327e-09 9.42327e-09 9.62631 9.42327e-09 21.5011C 9.42327e-09 33.3737 9.62631 43 21.5011 43C 33.3737 43 43 33.3737 43 21.5011C 43 9.62631 33.3737 9.42327e-09 21.5011 9.42327e-09ZM 33.534 18.5587L 33.4615 19.279C 32.5064 26.6261 25.8202 34.3706 15.5922 33.0465C 12.4523 32.6381 9.65046 31.336 7.39539 29.4388C 7.82357 29.5421 8.26492 29.6277 8.71286 29.6826C 11.3193 30.0207 13.8312 29.452 15.926 28.2026C 13.4997 27.8469 11.6574 25.9673 11.2336 23.6705C 11.5652 23.7825 11.9099 23.8638 12.2678 23.9077C 12.7751 23.9735 13.2735 23.9692 13.7588 23.9011C 11.2841 23.0601 9.65705 20.5657 10.0062 17.8737L 10.015 17.8034C 10.711 18.3172 11.5366 18.6795 12.4435 18.8288C 11.0821 17.6387 10.3224 15.8096 10.5705 13.8817C 10.7022 12.8629 11.0997 11.9429 11.6838 11.1831C 13.9893 14.9028 17.799 17.6475 22.3882 18.4775C 22.3465 18.0603 22.3509 17.6277 22.408 17.193C 22.8054 14.1255 25.6182 11.9582 28.6901 12.3557C 30.2886 12.5621 31.6434 13.425 32.5195 14.6393C 33.8194 14.5536 35.0644 14.244 36.226 13.7478C 35.6441 14.9906 34.6253 15.9655 33.3847 16.5035C 34.5287 16.5167 35.6353 16.3564 36.6915 16.0424C 35.8044 17.0634 34.7285 17.922 33.534 18.5587Z"/>
+</defs>
+</svg>
diff --git a/saleor/static/js/demo/storefront.js b/saleor/static/js/demo/storefront.js
new file mode 100644
index 0000000000..4133e4a154
--- /dev/null
+++ b/saleor/static/js/demo/storefront.js
@@ -0,0 +1,7 @@
+/* @flow */
+
+import 'bootstrap-sass'
+import $ from 'jquery'
+import 'jquery.cookie'
+
+import '../../scss/demo/storefront.scss'
\ No newline at end of file
diff --git a/saleor/static/scss/demo/components/_buttons.scss b/saleor/static/scss/demo/components/_buttons.scss
new file mode 100644
index 0000000000..b334bd0427
--- /dev/null
+++ b/saleor/static/scss/demo/components/_buttons.scss
@@ -0,0 +1,15 @@
+.btn {
+ &.home__button {
+ border-radius: 0;
+ text-transform: uppercase;
+ color: $white;
+ background-color: transparent;
+ border: 1px solid $white;
+ transition: 0.3s;
+ padding: $global-padding $global-padding * 2;
+ &:hover {
+ background-color: $white;
+ color: $body-color;
+ }
+ }
+}
\ No newline at end of file
diff --git a/saleor/static/scss/demo/components/_fonts.scss b/saleor/static/scss/demo/components/_fonts.scss
new file mode 100644
index 0000000000..66d5b7ded4
--- /dev/null
+++ b/saleor/static/scss/demo/components/_fonts.scss
@@ -0,0 +1,18 @@
+@font-face {
+ font-family: 'Lato-Regular';
+ src: url('../../fonts/Lato-Regular.woff2') format('woff2'),
+ url('../../fonts/Lato-Regular.woff') format('woff'),
+ url('../../fonts/Lato-Regular.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'Lato-Bold';
+ src: url('../../fonts/Lato-Bold.woff2') format('woff2'),
+ url('../../fonts/Lato-Bold.woff') format('woff'),
+ url('../../fonts/Lato-Bold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'Lato-Black';
+ src: url('../../fonts/Lato-Black.woff2') format('woff2'),
+ url('../../fonts/Lato-Black.woff') format('woff'),
+ url('../../fonts/Lato-Black.ttf') format('truetype');
+}
\ No newline at end of file
diff --git a/saleor/static/scss/demo/components/_footer.scss b/saleor/static/scss/demo/components/_footer.scss
new file mode 100644
index 0000000000..d42dd48e0d
--- /dev/null
+++ b/saleor/static/scss/demo/components/_footer.scss
@@ -0,0 +1,29 @@
+.footer {
+ background-color: $gray;
+ padding: $global-padding * 2 0;
+ margin-top: $global-margin * 2;
+ @include media-breakpoint-down(xs) {
+ text-align: center;
+ }
+ &__logo {
+ margin-bottom: $global-margin;
+ }
+ ul {
+ list-style: none;
+ padding-left: 0;
+ a {
+ color: $white;
+ line-height: 2;
+ }
+ }
+ a {
+ transition: 0.3s;
+ &:hover {
+ text-decoration: none;
+ opacity: 0.6;
+ }
+ &.github-footer {
+ margin-right: $global-margin;
+ }
+ }
+}
\ No newline at end of file
diff --git a/saleor/static/scss/demo/components/_header.scss b/saleor/static/scss/demo/components/_header.scss
new file mode 100644
index 0000000000..e7a204cfb5
--- /dev/null
+++ b/saleor/static/scss/demo/components/_header.scss
@@ -0,0 +1,90 @@
+.navbar {
+ padding: 0;
+ @include media-breakpoint-down(md) {
+ img {
+ max-height: 30px;
+ }
+ }
+ &__login {
+ background-color: $gray;
+ p {
+ margin: $global-margin / 2 0;
+ font-size: $small-font-size;
+ font-family: 'Lato-Regular';
+ &.float-xs-left {
+ color: $white;
+ }
+ &.float-xs-right {
+ a {
+ color: $body-color;
+ }
+ }
+ }
+ }
+ &__brand {
+ padding: $global-padding * 2 0;
+ &__basket {
+ @include media-breakpoint-up(md) {
+ margin-top: $global-margin / 2;
+ }
+ margin-right: 15px;
+ a {
+ color: $body-color;
+ position: relative;
+ &:hover {
+ text-decoration: none;
+ }
+ img {
+ margin-left: $global-margin;
+ }
+ .badge {
+ position: absolute;
+ right: -15px;
+ top: -15px;
+ background-color: $red;
+ border-radius: 100px;
+ color: $white;
+ width: 30px;
+ height: 30px;
+ text-align: center;
+ line-height: 2;
+ }
+ }
+ }
+ }
+ &__menu {
+ ul {
+ text-align: justify;
+ &:after {
+ content: "";
+ width: 100%;
+ display: inline-block;
+ }
+ .nav-item {
+ width: 20%;
+ font-family: 'Lato-Bold';
+ display: inline-block;
+ vertical-align: top;
+ text-align: center;
+ + .nav-item {
+ margin-left: 0;
+ }
+ &:last-of-type {
+ a {
+ color: $red;
+ &:hover {
+ color: rgba($red, 0.6);
+ }
+ }
+ }
+ a {
+ color: $body-color;
+ transition: 0.3s;
+ &:hover {
+ color: rgba($body-color, 0.6);
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/saleor/static/scss/demo/components/_home.scss b/saleor/static/scss/demo/components/_home.scss
new file mode 100644
index 0000000000..299d6d8fd2
--- /dev/null
+++ b/saleor/static/scss/demo/components/_home.scss
@@ -0,0 +1,43 @@
+.home {
+ text-align: center;
+ color: $white;
+ h1 {
+ font-family: "Lato-Black";
+ font-size: $font-size-h1 * 1.3;
+ }
+ h2 {
+ font-weight: 400;
+ }
+ &__block1 {
+ background-image: url('../../img/block1.jpg');
+ padding: $global-padding * 15 0 $global-padding * 12;
+ background-size: cover;
+ h1 {
+ text-transform: uppercase;
+ }
+ }
+ &__block2 {
+ @include media-breakpoint-up(md) {
+ padding: 0 $global-padding 0 0;
+ }
+ padding: 0;
+ margin-top: $global-margin * 2;
+ div {
+ background-image: url('../../img/block2.jpg');
+ background-size: cover;
+ padding: $global-padding * 10 0 $global-padding * 8
+ }
+ }
+ &__block3 {
+ @include media-breakpoint-up(md) {
+ padding: 0 0 0 $global-padding;
+ }
+ padding: 0;
+ margin-top: $global-margin * 2;
+ div {
+ background-image: url('../../img/block3.jpg');
+ background-size: cover;
+ padding: $global-padding * 10 0 $global-padding * 8;
+ }
+ }
+}
\ No newline at end of file
diff --git a/saleor/static/scss/demo/storefront.scss b/saleor/static/scss/demo/storefront.scss
new file mode 100644
index 0000000000..1bf88e5ba2
--- /dev/null
+++ b/saleor/static/scss/demo/storefront.scss
@@ -0,0 +1,8 @@
+@import "variables";
+@import "~bootstrap/scss/bootstrap";
+
+@import "components/fonts";
+@import "components/buttons";
+@import "components/header";
+@import "components/footer";
+@import "components/home";
\ No newline at end of file
diff --git a/saleor/static/scss/demo/variables.scss b/saleor/static/scss/demo/variables.scss
new file mode 100644
index 0000000000..8b11ee0c1d
--- /dev/null
+++ b/saleor/static/scss/demo/variables.scss
@@ -0,0 +1,27 @@
+// GRID
+$container-max-widths: (
+ sm: 720px,
+ md: 960px,
+ lg: 1140px,
+ xl: 1140px
+);
+
+$global-padding: 1rem;
+$global-margin: 1rem;
+
+
+// COLORS
+ $gray: #C4C4C4;
+ $white: #fff;
+ $body-color: #333333;
+ $red: #EB5757;
+
+
+// TYPOGRAPHY
+$font-family-sans-serif: 'Lato-Regular';
+
+$font-size-root: 14px;
+$font-size-h1: 2.6rem;
+$font-size-h2: 1.7rem;
+$font-size-h3: 1.3rem;
+
diff --git a/templates/demo/admin/base_site.html b/templates/demo/admin/base_site.html
new file mode 100644
index 0000000000..eceeaf418d
--- /dev/null
+++ b/templates/demo/admin/base_site.html
@@ -0,0 +1,15 @@
+{% extends "admin/base.html" %}
+
+{% block title %}{{ title }} | Saleor{% endblock %}
+
+{% block branding %}
+<h1 id="site-name"><a href="{% url 'admin:index' %}">Saleor Admin</a></h1>
+{% endblock %}
+
+{% block nav-global %}{% endblock %}
+
+{% block extrahead %}
+ {% load selectable_tags %}
+ {% include_ui_theme %}
+ {% include_jquery_libs %}
+{% endblock %}
\ No newline at end of file
diff --git a/templates/demo/base.html b/templates/demo/base.html
new file mode 100644
index 0000000000..367a074b25
--- /dev/null
+++ b/templates/demo/base.html
@@ -0,0 +1,172 @@
+<!DOCTYPE html>
+{% load i18n %}
+{% load staticfiles %}
+{% load render_bundle from webpack_loader %}
+
+<html lang="en" class="no-js">
+ <head>
+ <title>{% block title %}Saleor{% endblock %}</title>
+ {% block meta %}
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="{% block meta_description %}{% endblock %}">
+ <meta name="author" content="{% trans "Mirumee Software" %}">
+ {% endblock meta %}
+
+ {% render_bundle 'vendor' 'css' %}
+ {% render_bundle 'demo' 'css' %}
+
+ {% block stylesheet %}{% endblock stylesheet %}
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+ <!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+
+ <body itemscope itemtype="http://schema.org/WebPage">
+ {% block header %}
+ <header class="navbar navbar-default navbar-inverse navbar-static-top" role="navigation">
+ <div class="navbar__login">
+ <div class="container">
+ <p class="float-xs-left hidden-sm-down">{% trans "Test Saleor in Testeor - a sample shop!" %}</p>
+ <p class="float-xs-right">
+ {% if user.is_authenticated %}
+ {% if user.is_staff %}
+ <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a> |
+ {% endif %}
+ <a href="{% url "profile:details" %}">{% trans "My account" %}</a> |
+ <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>
+ {% else %}
+ <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>
+ {% endif %}
+ </p>
+ </div>
+ </div>
+ <div class="navbar__brand">
+ <div class="container">
+ <img class="hidden-md-up" src="{% static "img/mobile-bar.svg" %}">
+ <a href="/">
+ <img src="{% static "img/testeor-logo.svg" %}" alt="Testeor - Saleor demo store">
+ </a>
+ <div class="float-xs-right">
+ <img class="hidden-md-up" src="{% static "img/search-icon.svg" %}">
+ <div class="navbar__brand__basket float-xs-right">
+ <a href="{% url "cart:index" %}">
+ <span class="hidden-sm-down">{% trans "Your basket" %}</span>
+ <img src="{% static "img/basket.svg" %}" alt="Basket">
+ {% if cart_counter %}<span class="badge">{{ cart_counter }}</span>{% endif %}
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="navbar__menu">
+ <div class="container">
+ <nav class="navbar">
+ <div class="collapse navbar-toggleable-sm" id="navbarResponsive">
+ <ul class="nav navbar-nav">
+ {% for category in categories %}
+ <li class="nav-item">
+ <a class="nav-link" href="{{ category.get_absolute_url }}">
+ {{ category }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </nav>
+ </div>
+ </div>
+ </header>
+ {% endblock %}
+ {% if messages %}
+ <div class="container">
+ {% for message in messages %}
+ <div class="alert{% if message.tags %} alert-{{ message.tags }}{% endif %}">
+ <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
+ {{ message }}
+ </div>
+ {% endfor %}
+ </div>
+ {% endif %}
+ <div class="container">
+ {% block outerbreadcrumb %}
+ <!-- <ul class="breadcrumb" itemprop="breadcrumb">
+ {% block breadcrumb %}
+ <li>
+ <a href="/">{% trans "Home" %}</a>
+ </li>
+ {% endblock breadcrumb %}
+ </ul> -->
+ {% endblock outerbreadcrumb %}
+ {% block content %}
+
+ {% endblock content %}
+ </div>
+ {% block footer %}
+ <footer class="footer">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-3">
+ <a href="/">
+ <img class="footer__logo" src="{% static "img/testeor-logo-white.svg" %}" alt="Testeor - Saleor demo store">
+ </a>
+ </div>
+ <div class="col-md-3 col-sm-6">
+ <ul>
+ {% for category in categories %}
+ <li>
+ <a href="{{ category.get_absolute_url }}">
+ {{ category }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div class="col-md-3 col-sm-6">
+ <ul>
+ <li>
+ <a href="{% url "profile:details" %}">
+ {% trans "My account" %}
+ </a>
+ </li>
+ <li>
+ <a href="{% url "cart:index" %}">
+ {% trans "Cart" %}
+ </a>
+ </li>
+ {% if user.is_authenticated %}
+ {% if user.is_staff %}
+ <li>
+ <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a>
+ </li>
+ {% endif %}
+ <li>
+ <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>
+ </li>
+ {% else %}
+ <li>
+ <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>
+ </li>
+ {% endif %}
+ </ul>
+ </div>
+ <div class="col-md-3 col-sm-12">
+ <a class="github-footer" href="https://github.com/mirumee/saleor">
+ <img src="{% static "img/github_logo.svg" %}">
+ </a>
+ <a href="https://twitter.com/getsaleor">
+ <img src="{% static "img/twitter_logo.svg" %}">
+ </a>
+ </div>
+ </div>
+ </div>
+ </footer>
+ {% endblock %}
+ {% block footer_scripts %}
+ {% render_bundle 'vendor' 'js' %}
+ {% render_bundle 'storefront' 'js' %}
+ {% endblock footer_scripts %}
+ </body>
+</html>
diff --git a/templates/demo/cart/index.html b/templates/demo/cart/index.html
new file mode 100644
index 0000000000..a06b1b0b0e
--- /dev/null
+++ b/templates/demo/cart/index.html
@@ -0,0 +1,111 @@
+{% extends "base.html" %}
+{% load gross from prices_i18n %}
+{% load i18n %}
+{% load static from staticfiles %}
+{% load render_bundle from webpack_loader %}
+
+{% block title %}{% trans "Your cart" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+<li><a href="{% url 'cart:index' %}">{% trans "Cart" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block stylesheet %}
+ {{ block.super }}
+ {% render_bundle 'cart' 'css' %}
+{% endblock stylesheet %}
+
+{% block footer_scripts %}
+ {{ block.super }}
+ {% render_bundle 'cart' 'js' %}
+{% endblock footer_scripts %}
+
+{% block content %}
+{% if cart_lines %}
+ <table class="table table-striped cart" id="cart-items">
+ <thead>
+ <tr>
+ <th class="col-xs-5 col-sm-2 col-md-1">{% trans "Product" %}</th>
+ <th class="col-sm-5 hidden-xs"></th>
+ <th class="col-xs-6 col-sm-3 col-md-2">{% trans "Quantity" %}</th>
+ <th class="col-sm-1 hidden-xs text-right">{% trans "Price" %}</th>
+ <th class="col-xs-1 text-right">{% trans "Subtotal" %}</th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <td class="hidden-xs" colspan="2"></td>
+ <td class="col-xs-9 col-md-9 text-right lead" colspan="2">{% trans "Total" %}:
+ <td class="col-xs-3 col-md-2 text-right lead">
+ <span class="cart-total" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>
+ {% spaceless %}
+ {% gross cart_total html=True %}
+ {% if local_cart_total %}
+ <br>
+ <small class="text-info">
+ &asymp;
+ {% gross local_cart_total html=True %}
+ </small>
+ {% endif %}
+ {% endspaceless %}
+ </span>
+ </td>
+ </tr>
+ </tfoot>
+ <tbody>
+ {% for line in cart_lines %}
+ <tr class="cart-item">
+ <td class="hidden-xs">
+ <a href="{{ line.variant.get_absolute_url }}">
+ {% if line.variant.product.images.first %}
+ <img class="cart-item-image" itemprop="image" src="{{ line.variant.product.images.first.image.crop.100x100 }}" alt="">
+ {% else %}
+ <img class="cart-item-image" src="{% static 'images/product-image-placeholder-small.png' %}" alt="">
+ {% endif %}
+ </a>
+ </td>
+ <td>
+ <a href="{{ line.variant.get_absolute_url }}">
+ {{ line.variant.product }} - {{ line.variant.display_variant }}
+ </a>
+ </td>
+ <td>
+ <div class="cart-item-amount">
+ <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart">
+ <div class="input-group cart-item-quantity js-hidden{% if form.quantity.errors %} has-error{% endif %}">
+ {{ line.form.quantity }}
+ <span class="input-group-btn">
+ <button class="btn btn-info" type="submit">{% trans "Update" %}</button>
+ </span>
+ </div>
+ {% if line.form.quantity.errors %}
+ {% for error in form.quantity.errors %}
+ <span class="text-danger">{{ error }}</span>
+ {% endfor %}
+ {% endif %}
+ {% csrf_token %}
+ </form>
+
+ <button type="submit" class="btn btn-link btn-sm cart-item-remove">
+ <span class="text-muted">{% trans "Remove from cart" %}</span>
+ </button>
+ </div>
+ </td>
+ <td class="text-right hidden-xs">{% gross line.get_price_per_item html=True %}</td>
+ <td class="text-right cart-item-subtotal" data-product-id="{{ line.variant.pk }}">{% gross line.get_total html=True %}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ <div class="form-group">
+ <div>
+ <a href="{% url "checkout:index" %}" class="btn btn-primary btn-lg pull-right">{% trans "Proceed to checkout" %}</a>
+ </div>
+ </div>
+{% else %}
+<p>
+ {% trans 'Your cart is empty' %}
+</p>
+{% endif %}
+{% endblock content %}
diff --git a/templates/demo/category/_items.html b/templates/demo/category/_items.html
new file mode 100644
index 0000000000..8b2519fdfe
--- /dev/null
+++ b/templates/demo/category/_items.html
@@ -0,0 +1,36 @@
+{% load i18n %}
+{% load staticfiles %}
+{% load price_range from price_ranges %}
+{% load discounted_price_range price_difference from discount %}
+
+{% for product in products %}
+ <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" itemscope itemtype="https://schema.org/Product">
+ <div class="panel panel-default text-center">
+ <div class="panel-body">
+ <a itemprop="url" href="{{ product.get_absolute_url }}">
+ {% if product.images.first %}
+ <img itemprop="image" class="img-responsive" src="{{ product.images.first.image.crop.400x400 }}" alt="">
+ {% else %}
+ <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="img-responsive">
+ {% endif %}
+ <span class="product-list-item-name" itemprop="name" title="{{ product }}">{{ product }}</span>
+ </a>
+ </div>
+
+ <div class="panel-footer">
+ {% if product.is_in_stock %}
+ {% with price_range=product|discounted_price_range:request.discounts undiscounted=product.get_price_range %}
+ {% with discount=undiscounted.min_price|price_difference:price_range.min_price %}
+ {% price_range price_range %}
+ {% if undiscounted.min_price != price_range.min_price %}
+ <span class="label label-success">{% trans "Discount!" %}</span>
+ {% endif %}
+ {% endwith %}
+ {% endwith %}
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </div>
+ </div>
+ </div>
+{% endfor %}
diff --git a/templates/demo/category/_list.html b/templates/demo/category/_list.html
new file mode 100644
index 0000000000..d904a2e431
--- /dev/null
+++ b/templates/demo/category/_list.html
@@ -0,0 +1,12 @@
+{% load mptt_tags %}
+
+{% recursetree categories %}
+ <li>
+ <a href="{{ node.get_absolute_url }}">{{ node }}</a>
+ {% if not node.is_leaf_node %}
+ <ul class="children">
+ {{ children }}
+ </ul>
+ {% endif %}
+ </li>
+{% endrecursetree %}
diff --git a/templates/demo/category/index.html b/templates/demo/category/index.html
new file mode 100644
index 0000000000..b77c7b85b5
--- /dev/null
+++ b/templates/demo/category/index.html
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+{% load slice from shop %}
+{% load static from staticfiles %}
+{% load bootstrap_pagination from bootstrap3 %}
+
+{% block title %}{{ category }} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ {% for breadcrumb in breadcrumbs %}
+ <li{% if forloop.last %} class="active"{% endif %}>
+ {% if not forloop.last %}
+ <a href="{{ breadcrumb.get_absolute_url }}">{{ breadcrumb }}</a>
+ {% else %}
+ <span>{{ breadcrumb }}</span>
+ {% endif %}
+ </li>
+ {% endfor %}
+{% endblock breadcrumb %}
+
+{% block content %}
+ <div class="row">
+ <div class="col-md-3">
+ <ul class="list-group">
+ <li class="list-group-item active">
+ {{ category }}
+ </li>
+
+ {% for category in children_categories %}
+ <li class="list-group-item">
+ <a href="{{ category.get_absolute_url }}">
+ {{ category }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+
+ <div class="col-md-9">
+ <div class="row">
+ {% include "category/_items.html" %}
+ </div>
+ {% bootstrap_pagination products %}
+ </div>
+ </div>
+{% endblock content %}
diff --git a/templates/demo/checkout/details.html b/templates/demo/checkout/details.html
new file mode 100644
index 0000000000..1c5f769f59
--- /dev/null
+++ b/templates/demo/checkout/details.html
@@ -0,0 +1,126 @@
+{% extends "base.html" %}
+
+{% load i18n %}
+{% load gross net tax from prices_i18n %}
+
+
+{% block title %}{% trans "Checkout" %} — {{ block.super }}{% endblock %}
+
+{% block outerbreadcrumb %}{% endblock %}
+
+{% block header %}
+ <header class="navbar navbar-default navbar-static-top" role="navigation">
+ <nav class="container">
+ <div class="navbar-header">
+ <a class="navbar-brand" href="/">Saleor</a>
+ </div>
+ </nav>
+ </header>
+{% endblock %}
+
+{% block footer %}
+{% endblock %}
+
+{% block content %}
+ {% if not user.is_authenticated %}
+ <p class="alert alert-info">
+ {% trans "Already have an account?" %}
+ <a href="{% url "registration:login" %}?next={{ request.get_full_path }}">
+ {% trans "Sign in" %}
+ </a>
+ </p>
+ {% endif %}
+ {% block step_info %}{% endblock %}
+
+ <div class="row">
+ <div class="col-sm-8">
+ {% block steps_menu %}
+ <ul class="nav nav-pills nav-justified nav-wizard">
+ <li>
+ <a href="{% url "cart:index" %}">{% trans "Cart" %}</a>
+ <div class="nav-arrow"></div>
+ </li>
+ <li>
+ <div class="nav-wedge"></div>
+ <a href="{% url "checkout:shipping-address" %}">{% trans "Shipping address" %}</a>
+ <div class="nav-arrow"></div>
+ </li>
+ <li>
+ <div class="nav-wedge"></div>
+ <a href="{% url "checkout:shipping-method" %}">{% trans "Shipping method" %}</a>
+ <div class="nav-arrow"></div>
+ </li>
+ <li>
+ <div class="nav-wedge"></div>
+ <a href="{% url "checkout:summary" %}">{% trans "Summary" %}</a>
+ </li>
+ </ul>
+ {% endblock steps_menu %}
+
+ {% block forms %}{% endblock %}
+ </div>
+
+ <div class="col-sm-4">
+ {% with total=checkout.get_total %}
+ <table class="table table-condensed">
+ <tbody>
+ {% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}
+ {% for item, item_price_per_item, item_price_total in delivery %}
+ <tr>
+ <td class="noborder">
+ {{ item.variant.product }}{% if item.quantity != 1 %} <span class="badge">×{{ item.quantity }}</span>{% endif %}
+ <br>
+ <small>{{ item.variant }}</small>
+ </td>
+ <td class="noborder text-right">{% net item_price_total %}</td>
+ </tr>
+ {% endfor %}
+ {% endfor %}
+
+ <tr>
+ <td>
+ {% trans "Subtotal" %}
+ </td>
+ <td class="text-right">
+ {% net checkout.get_subtotal %}
+ </td>
+ </tr>
+
+ {% include 'checkout/snippets/voucher-form.html' with discount=checkout.discount form=voucher_form %}
+
+ <tr>
+ <td class="noborder">
+ {% trans "Shipping" %}
+ </td>
+ <td class="noborder text-right">
+ {% if checkout.shipping_method %}
+ {% net checkout.get_total_shipping %}
+ {% else %}
+ &mdash;
+ {% endif %}
+ </td>
+ </tr>
+ {% if total.tax or True %}
+ <tr>
+ <td class="noborder">
+ {% trans "Taxes" %}
+ </td>
+ <td class="noborder text-right">
+ {% tax total %}
+ </td>
+ </tr>
+ {% endif %}
+ <tr>
+ <th>
+ {% trans "Total" %}
+ </th>
+ <td class="text-right">
+ <strong>{% gross total %}</strong>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ {% endwith %}
+ </div>
+ </div>
+{% endblock content %}
diff --git a/templates/demo/checkout/payment.html b/templates/demo/checkout/payment.html
new file mode 100644
index 0000000000..812836ffe9
--- /dev/null
+++ b/templates/demo/checkout/payment.html
@@ -0,0 +1,19 @@
+{% extends "checkout/details.html" %}
+{% load i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+
+{% block forms %}
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <h4>{% trans "Payment" %}</h4>
+ <p class="text-right">
+ {% bootstrap_form payment_form %}
+
+ {% bootstrap_form billing_address_form %}
+ <button type="submit" class="btn btn-primary btn-lg">
+ {% trans "Place order" %}
+ </button>
+ </p>
+ </form>
+{% endblock forms %}
diff --git a/templates/demo/checkout/shipping_address.html b/templates/demo/checkout/shipping_address.html
new file mode 100644
index 0000000000..1ce82b9705
--- /dev/null
+++ b/templates/demo/checkout/shipping_address.html
@@ -0,0 +1,48 @@
+{% extends "checkout/details.html" %}
+{% load i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+{% block steps_menu %}
+ <div class="nav nav-pills nav-justified nav-wizard">
+ <a href="{% url "cart:index" %}">
+ {% trans "Cart" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a class="active" href="{% url "checkout:shipping-address" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Shipping address" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a>
+ <div class="nav-wedge"></div>
+ {% trans "Shipping method" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a>
+ <div class="nav-wedge"></div>
+ {% trans "Summary" %}
+ </a>
+ </div>
+{% endblock steps_menu %}
+
+
+{% block forms %}
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <div class="page-header">
+ <h3>{% trans "Shipping address" %}</h3>
+ </div>
+ {% if request.user.is_authenticated %}
+ {% include "checkout/snippets/addresses-form.html" with addresses_form=user_form addresses=additional_addresses address_form=address_form only %}
+ {% else %}
+ {% bootstrap_form user_form %}
+ {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}
+ {% endif %}
+
+ <p class="text-right">
+ <button type="submit" class="btn btn-primary btn-lg">
+ {% trans "Continue to shipping method" %}
+ </button>
+ </p>
+ </form>
+{% endblock %}
diff --git a/templates/demo/checkout/shipping_method.html b/templates/demo/checkout/shipping_method.html
new file mode 100644
index 0000000000..731fab80f0
--- /dev/null
+++ b/templates/demo/checkout/shipping_method.html
@@ -0,0 +1,50 @@
+{% extends "checkout/details.html" %}
+{% load i18n %}
+{% load gross from prices_i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+
+{% block steps_menu %}
+ <div class="nav nav-pills nav-justified nav-wizard">
+ <a href="{% url "cart:index" %}">
+ {% trans "Cart" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a href="{% url "checkout:shipping-address" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Shipping address" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a class="active" href="{% url "checkout:shipping-method" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Shipping method" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a>
+ <div class="nav-wedge"></div>
+ {% trans "Summary" %}
+ </a>
+ </div>
+{% endblock steps_menu %}
+
+
+{% block forms %}
+ <div class="page-header">
+ <h3>{% trans "Shipping address" %}</h3>
+ </div>
+
+ {% include "userprofile/snippets/address-details.html" with address=checkout.shipping_address only %}
+
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <h3>{% trans "Shipping method" %}</h3>
+
+ {% bootstrap_form shipping_method_form show_label=False %}
+
+ <p class="text-right">
+ <button type="submit" class="btn btn-primary btn-lg">
+ {% trans "Continue to payment" %}
+ </button>
+ </p>
+ </form>
+{% endblock %}
diff --git a/templates/demo/checkout/snippets/addresses-form-panel.html b/templates/demo/checkout/snippets/addresses-form-panel.html
new file mode 100644
index 0000000000..1fb8c74430
--- /dev/null
+++ b/templates/demo/checkout/snippets/addresses-form-panel.html
@@ -0,0 +1,36 @@
+<div class="panel panel-default">
+ <div class="panel-heading" role="tab" id="address{{ radio_value }}">
+ <h4 class="radio panel-title">
+ <label role="button" data-toggle="collapse"
+ data-parent="#{{ parent_element_id }}"
+ data-target="#collapse{{ radio_value }}" aria-expanded="true"
+ aria-controls="collapse{{ value }}" for="address_{{ radio_value }}">
+ <input type="radio"
+ name="{{ radio_name }}"
+ value="{{ radio_value }}"
+ id="address_{{ radio_value }}"
+ {% if radio_value == value %}checked{% endif %}>
+ {% if address %}
+ {{ address }}, {{ address.street_address_1 }} {{ address.street_address_2 }}
+ {{ address.city }}
+ {% else %}
+ {{ label }}
+ {% endif %}
+ </label>
+ </h4>
+ </div>
+ <div id="collapse{{ radio_value }}"
+ class="panel-collapse collapse{% if radio_value == value %} in{% endif %}"
+ role="tabpanel"
+ aria-labelledby="headingOne">
+ {% if address %}
+ <div class="panel-body">
+ {% include "userprofile/snippets/address-details.html" with address=address only %}
+ </div>
+ {% elif address_form %}
+ <div class="panel-body">
+ {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}
+ </div>
+ {% endif %}
+ </div>
+</div>
diff --git a/templates/demo/checkout/snippets/addresses-form.html b/templates/demo/checkout/snippets/addresses-form.html
new file mode 100644
index 0000000000..02832fcf25
--- /dev/null
+++ b/templates/demo/checkout/snippets/addresses-form.html
@@ -0,0 +1,11 @@
+<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
+ {% if addresses_form.SHIPPING_ADDRESS %}
+ {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.SHIPPING_ADDRESS label=_('Same as shipping') value=addresses_form.address.value only %}
+ {% endif %}
+ {% for address in addresses %}
+ {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=address.id label=address value=addresses_form.address.value address=address only %}
+ {% endfor %}
+ {% if addresses_form.NEW_ADDRESS and address_form %}
+ {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.NEW_ADDRESS label=_('Enter a new address') value=addresses_form.address.value address_form=address_form only %}
+ {% endif %}
+</div>
diff --git a/templates/demo/checkout/snippets/voucher-form.html b/templates/demo/checkout/snippets/voucher-form.html
new file mode 100644
index 0000000000..647f99c693
--- /dev/null
+++ b/templates/demo/checkout/snippets/voucher-form.html
@@ -0,0 +1,34 @@
+{% load bootstrap_field bootstrap_button bootstrap_icon from bootstrap3 %}
+{% load trans from i18n %}
+{% load gross from prices_i18n %}
+{% load discount_amount_for from prices %}
+
+{% if form %}
+ <tr>
+ {% if discount %}
+ <td class="noborder">
+ <form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"
+ method="post"
+ class="form-inline">
+ {% csrf_token %}
+ <span class="text-success">{{ discount.name }}</span>
+ <button type="submit"
+ class="btn btn-link btn-xs"
+ aria-label="{% trans "Remove" %}">
+ {% bootstrap_icon "remove" %}
+ </button>
+ </form>
+ </td>
+ <td class="noborder text-right">
+ {% gross discount|discount_amount_for:total %}
+ </td>
+ {% else %}
+ <form action="{{ request.path }}?next={{ request.path }}"
+ method="post" class="form-inline">
+ {% csrf_token %}
+ <td class="noborder form-group">{% bootstrap_field form.voucher show_label=False form_group_class="" %}</td>
+ <td class="noborder text-right">{% bootstrap_button _("Apply") button_type="submit" button_class="btn-default" %}</td>
+ </form>
+ {% endif %}
+ </tr>
+{% endif %}
diff --git a/templates/demo/checkout/summary.html b/templates/demo/checkout/summary.html
new file mode 100644
index 0000000000..1fa39e427a
--- /dev/null
+++ b/templates/demo/checkout/summary.html
@@ -0,0 +1,44 @@
+{% extends "checkout/details.html" %}
+{% load i18n %}
+
+
+{% block steps_menu %}
+ <div class="nav nav-pills nav-justified nav-wizard">
+ <a href="{% url "cart:index" %}">
+ {% trans "Cart" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a href="{% url "checkout:shipping-address" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Shipping address" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a href="{% url "checkout:shipping-method" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Shipping method" %}
+ <div class="nav-arrow"></div>
+ </a>
+ <a class="active" href="{% url "checkout:summary" %}">
+ <div class="nav-wedge"></div>
+ {% trans "Summary" %}
+ </a>
+ </div>
+{% endblock steps_menu %}
+
+
+{% block forms %}
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <div class="page-header">
+ <h3>{% trans "Billing address" %}</h3>
+ </div>
+
+ {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
+
+ <p class="text-right">
+ <button type="submit" class="btn btn-primary btn-lg">
+ {% trans "Place order" %}
+ </button>
+ </p>
+ </form>
+{% endblock forms %}
diff --git a/templates/demo/checkout/summary_without_shipping.html b/templates/demo/checkout/summary_without_shipping.html
new file mode 100644
index 0000000000..8c52005fba
--- /dev/null
+++ b/templates/demo/checkout/summary_without_shipping.html
@@ -0,0 +1,26 @@
+{% extends "checkout/details.html" %}
+{% load i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+
+{% block steps_menu %}{% endblock %}
+
+
+{% block forms %}
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <h3>{% trans "Billing address" %}</h3>
+ {% if request.user.is_authenticated %}
+ {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
+ {% else %}
+ {% bootstrap_form user_form %}
+ {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}
+ {% endif %}
+
+ <p class="text-right">
+ <button type="submit" class="btn btn-primary btn-lg">
+ {% trans "Place order" %}
+ </button>
+ </p>
+ </form>
+{% endblock forms %}
diff --git a/templates/demo/home.html b/templates/demo/home.html
new file mode 100644
index 0000000000..e866ec93c9
--- /dev/null
+++ b/templates/demo/home.html
@@ -0,0 +1,36 @@
+{% extends "demo/base.html" %}
+{% load i18n %}
+
+{% block content %}
+
+ <div class="container home">
+ <div class="row">
+ <div class="col-sm-12 home__block1">
+ <h1>{% trans "Promo &amp Sale" %}</h1>
+ <h2>{% trans "form the Northpole" %}</h2>
+ <button class="btn btn-secondary home__button">
+ {% trans "Shop now" %}
+ </button>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-sm-12 col-md-6 home__block2">
+ <div>
+ <h1>{% trans "Size &amp Colours" %}</h1>
+ <button class="btn btn-secondary home__button">
+ {% trans "Shop now" %}
+ </button>
+ </div>
+ </div>
+ <div class="col-sm-12 col-md-6 home__block3">
+ <div>
+ <h1>{% trans "Digital Downloads" %}</h1>
+ <button class="btn btn-secondary home__button">
+ {% trans "Shop now" %}
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/demo/materializecssform/field.html b/templates/demo/materializecssform/field.html
new file mode 100644
index 0000000000..9330b1744b
--- /dev/null
+++ b/templates/demo/materializecssform/field.html
@@ -0,0 +1,193 @@
+{% load i18n %}
+{% load materializecss %}
+{% load utils %}
+
+
+{% if field|is_checkbox %}
+ <div class="input col {{ classes.label }}">
+ <div class="{{ classes.single_value }}">
+ <p>
+ {% if field.auto_id %}
+ {{ field }}
+ <label for="{{ field.auto_id }}">
+ {{ field.label }}
+ </label>
+ {% endif %}
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </p>
+ </div>
+ </div>
+{% elif field|is_radio %}
+ <div class="input col {{ classes.label }}">
+
+ {% if field.auto_id %}
+ <label class="control-label
+ {{ classes.label }}">{{ field.label }}{% if not field.field.required %} ({% trans 'optional' %}){% endif %}</label>
+ {% endif %}
+ {% for choice in field %}
+ <p>
+ {{ choice.tag }}
+ <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
+ </p>
+ {% endfor %}
+
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </div>
+{% elif field|is_date_input %}
+ <div class="input col {{ classes.label }}">
+
+ <label class="active{% if not field.field.required %} optional{% endif %}"
+ for="{{ field.auto_id }}">{{ field.label }}</label>
+ <input type="date" id="{{ field.auto_id }}" class="datepicker"
+ name="{{ field.name }}"
+ value="{% if field.value %}{{ field.value|date:"Y-m-d" }}{% endif %}"
+ data-value="{% if field.value %}{{ field.value|date:"Y-m-d" }}{% endif %}">
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </div>
+{% elif field|is_select %}
+ <div class="input col {{ classes.label }}">
+ {% if field|is_checkbox_select_multiple %}
+ {% if field.auto_id %}
+ <label class="control-label {{ classes.label }}">{{ field.label }}</label>
+ {% endif %}
+ <div class="{{ classes.value }}">
+ {% for choice in field %}
+ <p>
+ {{ choice.tag }}
+ <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
+ </p>
+ {% endfor %}
+
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </div>
+
+ {% else %}
+ <label for="{{ field.id_for_label }}">{{ field.label }}</label>
+ {{ field }}
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+
+ {% endif %}
+
+ </div>
+
+{% elif field|is_textarea %}
+ <div class="input input-field col {{ classes.label }}">
+ <textarea id="{{ field.auto_id }}"
+ class="materialize-textarea {{ field.field.widget.attrs.class }}"
+ name="{{ field.name }}">{% if field.value %}{{ field.value }}{% endif %}</textarea>
+ {% if field.auto_id %}
+ <label class="active
+ {{ classes.label }}{% if not field.field.required %} optional{% endif %}"
+ for="{{ field.auto_id }}">{{ field.label }}</label>
+ {% endif %}
+
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </div>
+
+{% elif field|is_file %}
+ <div class="input col {{ classes.label }}">
+ <p>
+ {% if field.auto_id %}
+ <label class="{{ classes.label }}"
+ for="{{ field.auto_id }}">{{ field.label }}</label><br>
+ {% endif %}
+ {{ field }}
+ </p>
+ </div>
+
+{% elif field|is_versatile_image_ppoi_click_widget %}
+ <div class="input col file-field input-field {{ classes.label }}">
+ {% if field.auto_id %}
+ <label class="{{ classes.label }}"
+ for="{{ field.auto_id }}">{{ field.label }}</label>
+ {% endif %}
+ <div class="btn">
+ <span>File</span>
+ <input class="file-chooser" id="{{ field.auto_id }}_0"
+ name="{{ field.name }}_0" type="file">
+ <input class="ppoi-input" id="{{ field.auto_id }}_1"
+ name="{{ field.name }}_1" type="hidden">
+ </div>
+ <div class="file-path-wrapper">
+ <input class="file-path" type="text">
+ </div>
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+
+ </div>
+{% else %}
+
+ <div class="input input-field col {{ classes.label }}">
+ {% if field.auto_id %}
+ <label class="active{% if not field.field.required %} optional{% endif %}"
+ for="{{ field.auto_id }}">{{ field.label }}</label>
+ {% endif %}
+ {{ field }}
+
+ {% for error in field.errors %}
+ <p class="help-block materialize-red-text">{{ error }}</p>
+ {% endfor %}
+
+ {% if field.help_text %}
+ <p class="help-block">
+ {{ field.help_text|safe }}
+ </p>
+ {% endif %}
+ </div>
+
+{% endif %}
diff --git a/templates/demo/order/details.html b/templates/demo/order/details.html
new file mode 100644
index 0000000000..a6eab35c81
--- /dev/null
+++ b/templates/demo/order/details.html
@@ -0,0 +1,132 @@
+{% extends "base.html" %}
+
+{% load gross from prices_i18n %}
+{% load i18n %}
+{% load staticfiles %}
+{% load discount_amount_for from prices %}
+
+{% block title %}{% trans "Order" %} {{ order }} — {{ block.super }}{% endblock %}
+
+{% block outerbreadcrumb %}
+ {% if order.user == user %}
+ <ul class="breadcrumb" itemprop="breadcrumb">
+ <li><a href="/">{% trans "Home" %}</a></li>
+ <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>
+ <li><a href="{% url 'order:details' token=order.token %}">{{ order }}</a></li>
+ </ul>
+ {% endif %}
+{% endblock outerbreadcrumb %}
+
+{% block content %}
+ {# This view is available by just knowing url, #}
+ {# so we don't show all details (like delivery address) #}
+ {# unless current user is owner of the order. #}
+
+ <div class="row">
+ <div class="col-sm-12">
+ <h3 class="page-header page-header--order">
+ <span class="text-muted">{% blocktrans %}Order {{ order }}: {% endblocktrans %}</span>
+ {{ order.get_status_display }}
+
+ {% if not order.is_fully_paid %}
+ {% if order.is_pre_authorized %}
+ <a href="{% url "order:payment" token=order.token %}" class="btn btn-info">{% trans "Payment details" %}</a>
+ {% else %}
+ <a href="{% url "order:payment" token=order.token %}" class="btn btn-primary">{% trans "Pay for order" %}</a>
+ {% endif %}
+ {% endif %}
+ </h3>
+ </div>
+ </div>
+
+ <div class="row">
+ {% if order.user == user %}
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Billing address" %}
+ </div>
+ <div class="panel-body">
+ <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>
+ </div>
+ </div>
+ </div>
+ {% if order.is_shipping_required %}
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Shipping address" %}
+ </div>
+ <div class="panel-body">
+ <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>
+ </div>
+ </div>
+ </div>
+ {% endif %}
+ {% endif %}
+ </div>
+
+ {% for group in groups %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}
+ <span class="pull-right">
+ <span class="label label-default">{{ group.get_status_display }}</span>
+ </span>
+ </div>
+ <table class="table">
+ <thead>
+ <tr>
+ <th class="col-sm-6">{% trans "Name" %}</th>
+ <th class="col-sm-3 text-right">{% trans "Price" %}</th>
+ <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <th colspan="2">{% trans "Total" %}</th>
+ <th class="text-right">{% gross group.get_total %}</th>
+ </tr>
+ </tfoot>
+ <tbody>
+ {% for item in group %}
+ <tr>
+ <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>
+ <td class="text-right">{% gross item.get_price_per_item %}</td>
+ <td class="text-right">{% gross item.get_total %}</td>
+ </tr>
+ {% endfor %}
+ {% if group.shipping_price.gross %}
+ <tr>
+ <td class="col-sm-4">
+ {% trans "Shipping" %}
+ </td>
+ <td class="text-right">{% gross group.shipping_price %}</td>
+ <td class="text-right">{% gross group.shipping_price %}</td>
+ </tr>
+ {% endif %}
+ </tbody>
+ </table>
+ </div>
+ {% endfor %}
+ {% if order.discount_amount %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {{ order.discount_name }}
+ </div>
+ <div class="panel-body text-right">
+ <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>
+ </div>
+ </div>
+ {% endif %}
+ {% if order.discount_amount or groups|length > 1 %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Total" %}
+ </div>
+ <div class="panel-body text-right">
+ <strong>{% gross order.total %}</strong>
+ </div>
+ </div>
+ {% endif %}
+{% endblock content %}
diff --git a/templates/demo/order/emails/confirm_email.body.txt b/templates/demo/order/emails/confirm_email.body.txt
new file mode 100644
index 0000000000..420073b470
--- /dev/null
+++ b/templates/demo/order/emails/confirm_email.body.txt
@@ -0,0 +1,9 @@
+{% load i18n %}
+
+{% block content %}{% blocktrans %}Hi!
+
+Thank you for your order. To see your payment details please visit:
+{{ payment_url }}
+
+Sincerely,
+Saleor Team{% endblocktrans %}{% endblock %}
diff --git a/templates/demo/order/emails/confirm_email.subject.txt b/templates/demo/order/emails/confirm_email.subject.txt
new file mode 100644
index 0000000000..6239b9c4b5
--- /dev/null
+++ b/templates/demo/order/emails/confirm_email.subject.txt
@@ -0,0 +1,2 @@
+{% load i18n %}
+{% trans "Order details" %}
\ No newline at end of file
diff --git a/templates/demo/order/payment.html b/templates/demo/order/payment.html
new file mode 100644
index 0000000000..e7aa48d26b
--- /dev/null
+++ b/templates/demo/order/payment.html
@@ -0,0 +1,157 @@
+{% extends "base.html" %}
+
+{% load bootstrap_form from bootstrap3 %}
+{% load gross from prices_i18n %}
+{% load discount_amount_for from prices %}
+{% load i18n %}
+{% load staticfiles %}
+
+{% block title %}{% trans "Pay for order" %} {{ order }} — {{ block.super }}{% endblock %}
+
+{% block outerbreadcrumb %}
+ {% if order.user == user %}
+ <ul class="breadcrumb" itemprop="breadcrumb">
+ <li><a href="/">{% trans "Home" %}</a></li>
+ <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>
+ <li><a href="{% url 'order:details' token=order.token %}">{{ order }}</a></li>
+ </ul>
+ {% endif %}
+{% endblock outerbreadcrumb %}
+
+{% block content %}
+ <div class="row">
+ <div class="col-sm-8">
+ {% if order.user == user or not order.is_fully_paid %}
+ {% if not order.is_fully_paid %}
+ <div class="panel panel-info">
+ {% if waiting_payment %}
+ <div class="panel-heading">
+ {% trans "Payment pending" %}
+ </div>
+ <div class="panel-body">
+ <form method="post" action="{% url 'order:cancel-payment' token=order.token %}">
+ {% csrf_token %}
+ <p>{% trans "We are currently waiting for an external service to authorize your payment for this order." %}</p>
+ <p>{% trans "Current status" %}: <span class="label label-default">{{ waiting_payment.get_status_display }}</span></p>
+ <p>{% trans "Unless you are absolutely sure that the process will not complete (for example you have closed the browser window before paying), you should wait before attempting a new payment. Please be warned that if you try again and the previous transaction succeeds you might end up being charged twice." %}</p>
+ {% bootstrap_form waiting_payment_form %}
+ <button type="submit" class="btn btn-danger">{% trans "I understand, allow me to pay again" %}</button>
+ </form>
+ </div>
+ {% elif payment_form %}
+ <div class="panel-heading">
+ {% trans "Pay for order" %} {{ order }}
+ </div>
+ <div class="panel-body">
+ <form method="post" action="{% url "order:payment" token=order.token %}">
+ {% csrf_token %}
+ {{ payment_form }}
+ <div class="form-group text-right">
+ {% block form_submit %}
+ <button type="submit" class="btn btn-primary">
+ {% trans "Proceed to payment" %}
+ </button>
+ {% endblock %}
+ </div>
+ </form>
+ </div>
+ {% else %}
+ <div class="panel-body alert-info">
+ <span>{% trans "You've authorized transaction. Order is in processing" %}</span>
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
+ {% endif %}
+ </div>
+ </div>
+
+ <div class="row">
+ {% if order.user == user %}
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Billing address" %}
+ </div>
+ <div class="panel-body">
+ <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>
+ </div>
+ </div>
+ </div>
+
+ <div class="col-sm-6">
+ {% if order.is_shipping_required %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Shipping address" %}
+ </div>
+ <div class="panel-body">
+ <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>
+ </div>
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
+ </div>
+
+ {% for group in groups %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}
+ </div>
+ <table class="table">
+ <thead>
+ <tr>
+ <th class="col-sm-6">{% trans "Name" %}</th>
+ <th class="col-sm-3 text-right">{% trans "Price" %}</th>
+ <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <th colspan="2">{% trans "Total" %}</th>
+ <th class="text-right">{% gross group.get_total %}</th>
+ </tr>
+ </tfoot>
+ <tbody>
+ {% for item in group %}
+ <tr>
+ <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>
+ <td class="text-right">{% gross item.get_price_per_item %}</td>
+ <td class="text-right">{% gross item.get_total %}</td>
+ </tr>
+ {% endfor %}
+ {% if group.shipping_price.gross %}
+ <tr>
+ <td class="col-sm-4">
+ {% trans "Shipping" %}
+ </td>
+ <td class="text-right">{% gross group.shipping_price %}</td>
+ <td class="text-right">{% gross group.shipping_price %}</td>
+ </tr>
+ {% endif %}
+ </tbody>
+ </table>
+ </div>
+ {% endfor %}
+ {% if order.discount_amount %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {{ order.discount_name }}
+ </div>
+ <div class="panel-body text-right">
+ <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>
+ </div>
+ </div>
+ {% endif %}
+ {% if order.discount_amount or groups|length > 1 %}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {% trans "Total" %}
+ </div>
+ <div class="panel-body text-right">
+ <strong>{% gross order.total %}</strong>
+ </div>
+ </div>
+ {% endif %}
+{% endblock content %}
diff --git a/templates/demo/order/payment/default.html b/templates/demo/order/payment/default.html
new file mode 100644
index 0000000000..8bd237e652
--- /dev/null
+++ b/templates/demo/order/payment/default.html
@@ -0,0 +1,24 @@
+{% extends "order/payment/details.html" %}
+{% load bootstrap_form from bootstrap3 %}
+{% load i18n %}
+
+{% block forms %}
+<div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form id="payment-form" method="{{ form.method }}"{% if form.action %} action="{{ form.action }}"{% endif %} novalidate>
+ {% csrf_token %}
+ {{ form.media }}
+ {% bootstrap_form form %}
+ <div class="form-group">
+ <button type="submit" class="btn btn-primary">
+ {% trans "Save changes" %}
+ </button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock forms %}
diff --git a/templates/demo/order/payment/details.html b/templates/demo/order/payment/details.html
new file mode 100644
index 0000000000..a4b3915223
--- /dev/null
+++ b/templates/demo/order/payment/details.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Payment" %} — {{ block.super }}{% endblock %}
+
+{% block outerbreadcrumb %}{% endblock %}
+
+{% block content %}
+<h2>Payment</h2>
+{% block forms %}{% endblock %}
+
+{% endblock content %}
diff --git a/templates/demo/order/payment/emails/confirm_email.body.txt b/templates/demo/order/payment/emails/confirm_email.body.txt
new file mode 100644
index 0000000000..e502e22865
--- /dev/null
+++ b/templates/demo/order/payment/emails/confirm_email.body.txt
@@ -0,0 +1,9 @@
+{% load i18n %}
+
+{% block content %}{% blocktrans %}Hi!
+
+Thank you for your payment. To see your payment details please visit:
+{{ order_url }}
+
+Sincerely,
+Saleor Team{% endblocktrans %}{% endblock %}
diff --git a/templates/demo/order/payment/emails/confirm_email.subject.txt b/templates/demo/order/payment/emails/confirm_email.subject.txt
new file mode 100644
index 0000000000..730246779a
--- /dev/null
+++ b/templates/demo/order/payment/emails/confirm_email.subject.txt
@@ -0,0 +1,2 @@
+{% load i18n %}
+{% trans "Payment details" %}
\ No newline at end of file
diff --git a/templates/demo/order/payment/paypal-card.html b/templates/demo/order/payment/paypal-card.html
new file mode 100644
index 0000000000..0119a03442
--- /dev/null
+++ b/templates/demo/order/payment/paypal-card.html
@@ -0,0 +1,19 @@
+{% extends "order/payment/details.html" %}
+
+{% load bootstrap_form from bootstrap3 %}
+{% load gross from prices_i18n %}
+{% load i18n %}
+
+{% block forms %}
+ <form method="post" class="form-horizontal" novalidate>
+ {% csrf_token %}
+ {% bootstrap_form form layout='horizontal' %}
+ <div class="form-group">
+ <div class="col-sm-offset-2 col-sm-10">
+ <button type="submit" class="btn btn-primary">
+ {% trans "Save changes" %}
+ </button>
+ </div>
+ </div>
+ </form>
+{% endblock forms %}
diff --git a/templates/demo/order/payment/stripe.html b/templates/demo/order/payment/stripe.html
new file mode 100644
index 0000000000..e90e757751
--- /dev/null
+++ b/templates/demo/order/payment/stripe.html
@@ -0,0 +1,14 @@
+{% extends "order/payment/details.html" %}
+{% load bootstrap_form from bootstrap3 %}
+{% load i18n %}
+
+{% block forms %}
+<form method="{{ form.method }}" class="form-horizontal"{% if form.action %} action="{{ form.action }}"{% endif %} novalidate>
+ {% csrf_token %}
+ {{ form.media }}
+ {% bootstrap_form form layout='horizontal' %}
+ {% if form.errors %}
+ <a class="btn" href="{% url "order:details" token=payment.order.token %}">{% trans "Change payment method" %}</a>
+ {% endif %}
+</form>
+{% endblock forms %}
diff --git a/templates/demo/order/success.html b/templates/demo/order/success.html
new file mode 100644
index 0000000000..57df5b5126
--- /dev/null
+++ b/templates/demo/order/success.html
@@ -0,0 +1,37 @@
+{% extends "base.html" %}
+{% load gross from prices_i18n %}
+{% load i18n %}
+
+{% block title %}{% trans "Order complete!" %} — {{ block.super }}{% endblock %}
+
+
+{% block content %}
+<h2>{% trans "Your order is now complete" %}</h2>
+<p>{% trans "Thank you for your purchase!" %}</p>
+
+<p>{% trans "Your order number is" %}: <a href="{% url 'order:details' token=order.token %}">{{ order }}</a></p>
+{% endblock content %}
+
+{% block google-analytics-script %}
+ {{ block.super }}
+ __ga('require', 'ecommerce', 'ecommerce.js');
+ __ga('set', 'currencyCode', '{{ DEFAULT_CURRENCY }}');
+ __ga('ecommerce:addTransaction', {
+ 'id': '{{ order.id }}',
+ 'affiliation': 'Saleor',
+ 'revenue': '{{ order.get_total.gross }}',
+ 'shipping': '{{ order.get_delivery_total.gross }}',
+ 'tax': '{{ order.get_total.tax }}'
+ });
+ {% for item in order.get_items %}
+ __ga('ecommerce:addItem', {
+ 'id': '{{ item.id }}',
+ 'name': '{{ item }}',
+ 'sku': '{{ item.sku }}',
+ 'category': '{{ item.product.category }}',
+ 'price': '{{ item.unit_price_gross }}',
+ 'quantity': '{{ item.quantity }}'
+ });
+ {% endfor %}
+ __ga('ecommerce:send');
+{% endblock google-analytics-script %}
diff --git a/templates/demo/payments/credit_card_expiry_widget.html b/templates/demo/payments/credit_card_expiry_widget.html
new file mode 100644
index 0000000000..ca6a8748cd
--- /dev/null
+++ b/templates/demo/payments/credit_card_expiry_widget.html
@@ -0,0 +1,2 @@
+<div class="col-xs-6">{{ month }}</div>
+<div class="col-xs-6">{{ year }}</div>
\ No newline at end of file
diff --git a/templates/demo/prices/widget.html b/templates/demo/prices/widget.html
new file mode 100644
index 0000000000..923e40bae7
--- /dev/null
+++ b/templates/demo/prices/widget.html
@@ -0,0 +1,2 @@
+<div class="input-with-suffix">{{ widget }}</div>
+<div class="input-text-suffix">{{ currency }}</div>
diff --git a/templates/demo/product/_price_range.html b/templates/demo/product/_price_range.html
new file mode 100644
index 0000000000..8028471b63
--- /dev/null
+++ b/templates/demo/product/_price_range.html
@@ -0,0 +1,8 @@
+{% load i18n %}
+{% load gross from prices_i18n %}
+
+<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
+ <span itemprop="price">
+ {% gross price_range.min_price html=True %}{% if price_range.min_price != price_range.max_price %}+{% endif %}
+ </span>
+</span>
diff --git a/templates/demo/product/details.html b/templates/demo/product/details.html
new file mode 100644
index 0000000000..debcda025a
--- /dev/null
+++ b/templates/demo/product/details.html
@@ -0,0 +1,135 @@
+{% extends "base.html" %}
+
+{% load bootstrap_form from bootstrap3 %}
+{% load i18n %}
+{% load gross from prices_i18n %}
+{% load markdown from markdown %}
+{% load price_range from price_ranges %}
+{% load static from staticfiles %}
+
+{% block title %}{{ product }} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ {% with product.get_first_category as category %}
+ {% if category %}
+ <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>
+ {% endif %}
+ {% endwith %}
+ <li><a href="{{ product.get_absolute_url }}">{{ product }}</a></li>
+{% endblock breadcrumb %}
+
+{% block outercontent %}
+{% if not is_visible %}
+ <div class="alert alert-warning" role="alert">
+ {% blocktrans with date=product.available_on|date %}<strong>Warning!</strong> You are previewing a product that will become visible on <strong>{{ date }}</strong>.{% endblocktrans %}
+ </div>
+{% endif %}
+<div itemscope itemtype="http://schema.org/Product">
+ <div class="row">
+ <div class="col-sm-6 col-sm-push-6">
+ <h1 itemprop="name">
+ {{ product }}
+ </h1>
+
+ {% if product.is_in_stock %}
+ <p class="lead" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
+ <span class="price">{% price_range price_range %}</span>
+ {% if discount %}
+ <small class="price undiscounted text-muted">{% gross undiscounted_price_range.min_price html=True %}</small>
+ {% endif %}
+ {% if local_price_range %}
+ <br>
+ <small class="text-info">
+ &asymp;
+ {% gross local_price_range.min_price html=True %}
+ </small>
+ {% endif %}
+ </p>
+ {% endif %}
+
+ <hr>
+
+ <div class="visible-xs">
+ {% if product.images.first %}
+ <img class="img-responsive" src="{{ product.images.first.image.crop.680x680 }}" alt="">
+ {% else %}
+ <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="img-responsive">
+ {% endif %}
+ <hr>
+ </div>
+
+ {% if is_visible and product.is_in_stock %}
+ {% block orderform %}
+ <form role="form" class="product-form form-vertical" method="post"
+ action="{% url 'cart:add-to-cart' product_id=product.pk %}?next={{ product.get_absolute_url }}" novalidate>
+ {% csrf_token %}
+ {% bootstrap_form form %}
+
+ <div class="form-group">
+ <button class="btn btn-lg btn-block btn-primary">
+ {% trans "Add to cart" %}
+ </button>
+ </div>
+ </form>
+ {% endblock %}
+ {% else %}
+ <p class="alert alert-warning">{% trans "This product is currently <strong>unavailable</strong>." %}</p>
+ {% endif %}
+
+ <hr>
+
+ <div itemprop="description">
+ {{ product.description|markdown }}
+ </div>
+
+ </div>
+
+ {% with images=product.images.all %}
+ <div class="col-sm-6 col-sm-pull-6">
+ <div id="product-carousel" class="carousel slide panel panel-default hidden-xs" data-ride="carousel">
+ <div class="carousel-inner">
+ {% for image in images %}
+ <div class="item{% if forloop.first %} active{% endif %}">
+ <a href="#" data-toggle="modal" data-target="#modal-{{ forloop.counter }}">
+ <img class="img-responsive" src="{{ image.image.crop.750x750 }}" alt="">
+ </a>
+ </div>
+ {% empty %}
+ <div class="item active">
+ <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="img-responsive">
+ </div>
+ {% endfor %}
+ </div>
+
+ {% for image in images %}
+ <div class="modal fade" id="modal-{{ forloop.counter }}"
+ tabindex="-1" role="dialog" aria-labelledby="myModalLabel{{ forloop.counter }}" aria-hidden="true">
+ <div class="modal-dialog modal-lg">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h4 class="modal-title" id="myModalLabel{{ forloop.counter }}">{{ product }}</h4>
+ </div>
+
+ <div class="modal-body">
+ <img class="img-responsive" src="" data-src="{{ image.image.url }}" alt="">
+ </div>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+
+ <div class="product-gallery row">
+ {% for image in images %}
+ <a href="{{ image.image.url }}" target="_blank" class="product-gallery-item col-xs-6 col-md-3">
+ <img class="thumbnail img-responsive" src="{{ image.image.crop.280x280 }}" alt="">
+ </a>
+ {% endfor %}
+ </div>
+ </div>
+ {% endwith %}
+ </div>
+</div>
+{% endblock outercontent %}
diff --git a/templates/demo/registration/change_password.html b/templates/demo/registration/change_password.html
new file mode 100644
index 0000000000..f8930157a8
--- /dev/null
+++ b/templates/demo/registration/change_password.html
@@ -0,0 +1,36 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+{% block title %}{% trans "Change password" %}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>
+ <li><a href="{% url 'registration:change_password' %}">{% trans "Change password" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block content %}
+<div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans 'Change password' %}</legend>
+ {% bootstrap_form form %}
+ <input type="hidden" name="next" value="{{ next }}" />
+ </fieldset>
+
+ <div class="form-group">
+ <button class="btn btn-primary">
+ {% trans "Update password" %}
+ </button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock %}
diff --git a/templates/demo/registration/emails/change_email.body.txt b/templates/demo/registration/emails/change_email.body.txt
new file mode 100644
index 0000000000..70659c9fad
--- /dev/null
+++ b/templates/demo/registration/emails/change_email.body.txt
@@ -0,0 +1,12 @@
+{% load i18n %}
+
+{% block content %}{% blocktrans %}Hi!
+
+You have requested email change in saleor project. To continue visit the link below.
+
+{{ confirmation_url }}
+
+If you didn't mean to change your email please ignore this message. We apologise for inconvenience.
+
+Sincerely,
+Saleor Team{% endblocktrans %}{% endblock %}
diff --git a/templates/demo/registration/emails/change_email.subject.txt b/templates/demo/registration/emails/change_email.subject.txt
new file mode 100644
index 0000000000..3155262047
--- /dev/null
+++ b/templates/demo/registration/emails/change_email.subject.txt
@@ -0,0 +1,2 @@
+{% load i18n %}
+{% trans "Confirm your email address" %}
\ No newline at end of file
diff --git a/templates/demo/registration/emails/confirm_email.body.txt b/templates/demo/registration/emails/confirm_email.body.txt
new file mode 100644
index 0000000000..927540faa9
--- /dev/null
+++ b/templates/demo/registration/emails/confirm_email.body.txt
@@ -0,0 +1,12 @@
+{% load i18n %}
+
+{% block content %}{% blocktrans %}Hi!
+
+You have requested login access to saleor project. To continue visit the link below.
+
+{{ confirmation_url }}
+
+If you didn't try to login to saleor please ignore this message. We apologise for inconvenience.
+
+Sincerely,
+Saleor Team{% endblocktrans %}{% endblock %}
diff --git a/templates/demo/registration/emails/confirm_email.subject.txt b/templates/demo/registration/emails/confirm_email.subject.txt
new file mode 100644
index 0000000000..3155262047
--- /dev/null
+++ b/templates/demo/registration/emails/confirm_email.subject.txt
@@ -0,0 +1,2 @@
+{% load i18n %}
+{% trans "Confirm your email address" %}
\ No newline at end of file
diff --git a/templates/demo/registration/invalid_token.html b/templates/demo/registration/invalid_token.html
new file mode 100644
index 0000000000..f6f21f191c
--- /dev/null
+++ b/templates/demo/registration/invalid_token.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Invalid token" %} — {{ block.super }}{% endblock %}
+
+{% block content %}
+ <p>Sorry, this link is invalid. Probably it has already been used or has expired.</p>
+{% endblock %}
+
diff --git a/templates/demo/registration/login.html b/templates/demo/registration/login.html
new file mode 100644
index 0000000000..2e750e0650
--- /dev/null
+++ b/templates/demo/registration/login.html
@@ -0,0 +1,49 @@
+{% extends "base.html" %}
+{% load bootstrap_form from bootstrap3 %}
+{% load i18n %}
+
+{% block title %}{% trans "Login" %} — {{ block.super }}{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" action="{% url 'registration:login' %}" novalidate>
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans 'Log in' %}</legend>
+ {% bootstrap_form form %}
+ <input type="hidden" name="next" value="{{ next }}" />
+ </fieldset>
+
+ <div class="form-group text-right">
+ <a class="btn btn-secondary" href="{% url 'registration:request_email_confirmation' %}">{% trans "I don't know my password" %}</a>
+ <button class="btn btn-primary">
+ {% trans "Log in" %}
+ </button>
+ </div>
+ <hr>
+ {% if facebook_login_url or google_login_url %}
+ <p>{% trans "Want to use your social profile?" %}</p>
+ <p>
+ {% if facebook_login_url %}
+ <a class="btn btn-default" href="{{ facebook_login_url }}">
+ {% trans "Log in using Facebook" %}
+ </a>
+ {% endif %}
+ {% if google_login_url %}
+ <a class="btn btn-default" href="{{ google_login_url }}"> {% trans "Log in using Google" %}</a>
+ {% endif %}
+ </p>
+ <hr>
+ {% endif %}
+ <div class="form-group">
+ <p>{% trans "Don't have an account yet?" %} <a class="btn btn-secondary" href="{% url 'registration:request_email_confirmation' %}">{% trans "Register" %}</a></p>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock %}
diff --git a/templates/demo/registration/logout.html b/templates/demo/registration/logout.html
new file mode 100644
index 0000000000..607b17744b
--- /dev/null
+++ b/templates/demo/registration/logout.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Logged out" %} — {{ block.super }}{% endblock %}
+
+{% block content %}
+<p>Successfully logged out!</p>
+{% endblock %}
diff --git a/templates/demo/registration/request_email_confirmation.html b/templates/demo/registration/request_email_confirmation.html
new file mode 100644
index 0000000000..f673c9bcd1
--- /dev/null
+++ b/templates/demo/registration/request_email_confirmation.html
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+{% load bootstrap_form from bootstrap3 %}
+{% load i18n %}
+
+{% block title %}{% trans "Register or reset your password" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="#">{% trans "Register or reset your password" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block content %}
+<div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans 'Register or reset your password' %}</legend>
+ {% bootstrap_form form %}
+ <input type="hidden" name="next" value="{{ next }}" />
+ </fieldset>
+ <div class="form-group text-right">
+ <button class="btn btn-primary">
+ {% trans "Continue" %}
+ </button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock %}
diff --git a/templates/demo/registration/set_password.html b/templates/demo/registration/set_password.html
new file mode 100644
index 0000000000..9ac7cc1c8f
--- /dev/null
+++ b/templates/demo/registration/set_password.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load bootstrap_form from bootstrap3 %}
+
+{% block title %}{% trans "Set password" %} — {{ block.super }}{% endblock %}
+
+{% block content %}
+<form method="post" class="form-horizontal" novalidate>
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans 'Set password' %}</legend>
+ {% bootstrap_form form layout='horizontal' %}
+ </fieldset>
+ <div class="form-group">
+ <div class="col-sm-offset-2 col-sm-10">
+ <button class="btn btn-primary">
+ {% trans "Set password" %}
+ </button>
+ </div>
+ </div>
+</form>
+<form method="post" class="form-horizontal" novalidate>
+ {% csrf_token %}
+ <div class="form-group">
+ <div class="col-sm-offset-2 col-sm-10">
+ <button class="btn btn-default">
+ {% trans "I don't want a password" %}
+ </button>
+ </div>
+ </div>
+</form>
+{% endblock %}
diff --git a/templates/demo/status_label.html b/templates/demo/status_label.html
new file mode 100644
index 0000000000..44b83998a5
--- /dev/null
+++ b/templates/demo/status_label.html
@@ -0,0 +1 @@
+<span class="data-table-status data-table-status--{{ label_cls }}">{{ status }}</span>
diff --git a/templates/demo/userprofile/address-delete.html b/templates/demo/userprofile/address-delete.html
new file mode 100644
index 0000000000..0e37cd5a6b
--- /dev/null
+++ b/templates/demo/userprofile/address-delete.html
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Delete address" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>
+ <li><a href=".">{% trans "Delete address" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block content %}
+ <h2>{% trans "Are you sure you want to delete the following address?" %}</h2>
+
+ <div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {{ address }}
+ </div>
+ <div class="panel-body">
+ <address>{% include "userprofile/snippets/address-details.html" with address=address %}</address>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
+ <a href="{% url 'profile:details' %}" class="btn btn-link">{% trans "Cancel" %}</a>
+ </form>
+{% endblock content %}
diff --git a/templates/demo/userprofile/address-edit.html b/templates/demo/userprofile/address-edit.html
new file mode 100644
index 0000000000..f12d549e79
--- /dev/null
+++ b/templates/demo/userprofile/address-edit.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Edit Address" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>
+{% if address_form.instance.pk %}
+ <li><a href=".">{% trans "Edit address" %}</a></li>
+{% else %}
+ <li><a href=".">{% trans "New address" %}</a></li>
+{% endif %}
+{% endblock breadcrumb %}
+
+{% block content %}
+<div class="row">
+ <div class="col-sm-8 col-sm-push-2">
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <h4>{% trans "Address" %}</h4>
+ <br>
+ {% include "userprofile/snippets/address-form.html" %}
+ <p class="text-right">
+ <button type="submit" class="btn btn-primary">{% trans "Save changes" %}</button>
+ </p>
+ </form>
+ </div>
+</div>
+{% endblock content %}
diff --git a/templates/demo/userprofile/details.html b/templates/demo/userprofile/details.html
new file mode 100644
index 0000000000..d14771b29d
--- /dev/null
+++ b/templates/demo/userprofile/details.html
@@ -0,0 +1,70 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Your profile" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block content %}
+ <h2>{% trans "Profile" %}</h2>
+ <p>
+ <a href="{% url 'registration:change_password' %}" class="btn btn-default">{% trans 'Change your password' %}</a>
+ <a href="{% url 'registration:request_email_change' %}" class="btn btn-default">{% trans 'Change your email address' %}</a>
+ </p>
+
+
+ <h3>{% trans "Your address book" %}</h3>
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th class="col-sm-6">{% trans "Addressee" %}</th>
+ <th class="col-sm-2">{% trans "Billing" %}</th>
+ <th class="col-sm-2">{% trans "Shipping" %}</th>
+ <th class="col-sm-2"></th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for address in addresses %}
+ <tr>
+ <th class="col-sm-6">
+ {{ address }}
+ </th>
+ <td class="col-sm-2">
+ {% if user.default_billing_address == address %}
+ <span class="label label-default">{% trans "Default" %}</span>
+ {% else %}
+ <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="billing" %}" class="form-inline form-horizontal" novalidate>
+ {% csrf_token %}
+ <button type="submit" class="btn btn-default btn-sm">{% trans "Make default" %}</button>
+ </form>
+ {% endif %}
+ </td>
+ <td class="col-sm-2">
+ {% if user.default_shipping_address == address %}
+ <span class="label label-default">{% trans "Default" %}</span>
+ {% else %}
+ <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="shipping" %}" class="form-inline form-horizontal" novalidate>
+ {% csrf_token %}
+ <button type="submit" class="btn btn-default btn-sm">{% trans "Make default" %}</button>
+ </form>
+ {% endif %}
+ </td>
+ <td class="col-sm-2">
+ <a href="{% url 'profile:address-edit' pk=address.pk %}" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> {% trans "Edit" %}</a>
+ <a href="{% url 'profile:address-delete' pk=address.pk %}" class="btn btn-danger btn-sm"><i class="glyphicon glyphicon-remove"></i> {% trans "Delete" %}</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+ <div>
+ <a href="{% url 'profile:address-create' %}" class="btn btn-default"><i class="glyphicon glyphicon-plus-sign"></i> {% trans "Add new address" %}</a>
+ </div>
+
+
+{% endblock content %}
+
diff --git a/templates/demo/userprofile/orders.html b/templates/demo/userprofile/orders.html
new file mode 100644
index 0000000000..58a10d32b4
--- /dev/null
+++ b/templates/demo/userprofile/orders.html
@@ -0,0 +1,57 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load gross from prices_i18n %}
+
+{% block title %}{% trans "Your orders" %} — {{ block.super }}{% endblock %}
+
+{% block breadcrumb %}
+ {{ block.super }}
+ <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>
+{% endblock breadcrumb %}
+
+{% block content %}
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th class="col-sm-2">
+ {% trans "Order #" %}
+ </th>
+ <th class="col-sm-2">
+ {% trans "Date" %}
+ </th>
+ <th class="col-sm-2">
+ {% trans "Price" %}
+ </th>
+ <th class="col-sm-2">
+ {% trans "Status" %}
+ </th>
+ <th class="col-sm-2">
+ {% trans "Last status change" %}
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for order in orders %}
+ <tr>
+ <td class="col-sm-2">
+ <a href="{{ order.get_absolute_url }}">{{ order }}</a>
+ </td>
+ <td class="col-sm-2">
+ {{ order.created }}
+ </td>
+ <td class="col-sm-2">
+ {% gross order.get_total %}
+ </td>
+ <td class="col-sm-2">
+ <span class="label label-default">{{ order.get_status_display }}</span>
+ </td>
+ <td class="col-sm-2">
+ {{ order.last_status_change }}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+{% endblock content %}
+
diff --git a/templates/demo/userprofile/snippets/address-details.html b/templates/demo/userprofile/snippets/address-details.html
new file mode 100644
index 0000000000..d5b5e6a5d8
--- /dev/null
+++ b/templates/demo/userprofile/snippets/address-details.html
@@ -0,0 +1,3 @@
+{% load format_address from i18n_address_tags %}
+
+{% format_address address %}
diff --git a/templates/demo/userprofile/snippets/address-form.html b/templates/demo/userprofile/snippets/address-form.html
new file mode 100644
index 0000000000..92f8fdeee2
--- /dev/null
+++ b/templates/demo/userprofile/snippets/address-form.html
@@ -0,0 +1,22 @@
+{% load bootstrap_field from bootstrap3 %}
+<div class="i18n-address">
+ {% bootstrap_field address_form.phone %}
+ {% with address_form_lines=address_form.i18n_fields_order %}
+ {% if address_form_lines %}
+ {% for line in address_form_lines %}
+ <div class="row">
+ {% for field in line %}
+ <div class="col-sm-4">
+ {% bootstrap_field field %}
+ </div>
+ {% endfor %}
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
+ {% for field in address_form.hidden_fields %}
+ {{ field }}
+ {% endfor %}
+ {% bootstrap_field address_form.country %}
+ <input type="hidden" class="preview" name="preview">
+</div>
diff --git a/templates/demo/userprofile/snippets/address-short.html b/templates/demo/userprofile/snippets/address-short.html
new file mode 100644
index 0000000000..823b1b3938
--- /dev/null
+++ b/templates/demo/userprofile/snippets/address-short.html
@@ -0,0 +1,10 @@
+<span class="address-details"
+ data-content="{% if address.company_name %}{{ address.company_name }}<br>{% endif %}
+ {{ address.street_address_1 }}<br>
+ {% if address.street_address_2 %}
+ {{ address.street_address_2 }}<br>
+ {% endif %}
+ {{ address.postal_code }} {{ address.city }}<br>
+ {% if address.country_area %}{{ address.country_area }}, {% endif %}{{ address.get_country_display }}<br>
+ {{ address.phone }}"
+ data-html="true" title="{{ address.first_name }} {{ address.last_name }}">{{ address }}</span>
diff --git a/templates/demo/weight_field_widget.html b/templates/demo/weight_field_widget.html
new file mode 100644
index 0000000000..eb9793cf8b
--- /dev/null
+++ b/templates/demo/weight_field_widget.html
@@ -0,0 +1,2 @@
+<div class="input-with-suffix">{{ widget }}</div>
+<div class="input-text-suffix">{{ unit }}</div>
\ No newline at end of file
diff --git a/webpack.config.js b/webpack.config.js
index 81bbbad21a..7a3c51a02b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -32,6 +32,7 @@ var config = {
cart: './saleor/static/js/cart.js',
dashboard: './saleor/static/js/dashboard.js',
storefront: './saleor/static/js/storefront.js',
+ demo: './saleor/static/js/demo/storefront.js',
vendor: [
'bootstrap-sass',
'jquery',
@@ -62,7 +63,7 @@ var config = {
])
},
{
- test: /\.(eot|otf|png|svg|ttf|woff|woff2)(\?v=[0-9.]+)?$/,
+ test: /\.(eot|otf|png|svg|jpg|ttf|woff|woff2)(\?v=[0-9.]+)?$/,
loader: 'file?name=[name].[hash].[ext]',
include: [
resolve('node_modules'),