From 08aec6c5d7736a913318f42554306959c2f98879 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Thu, 15 Mar 2018 17:14:57 +0100 Subject: [PATCH] add templates --- .gitignore | 2 + .idea/workspace.xml | 166 ++++++++++++++---------------- assets/css/global.scss | 5 + templates/product/index.html.twig | 22 ++-- 4 files changed, 103 insertions(+), 92 deletions(-) diff --git a/.gitignore b/.gitignore index f2e47aeb..c442db5a 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ .phpunit /phpunit.xml ###< symfony/phpunit-bridge ### + +/.idea/ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index eb4f0dca..cb369757 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,16 +2,10 @@ - - + - - - - - + - @@ -141,11 +115,12 @@ @@ -290,6 +265,17 @@ + + + + + + + + + + + @@ -399,12 +385,12 @@ 1520949897852 - + - @@ -674,14 +660,6 @@ - - - - - - - - @@ -700,14 +678,6 @@ - - - - - - - - @@ -718,14 +688,6 @@ - - - - - - - - @@ -742,16 +704,6 @@ - - - - - - - - - - @@ -762,8 +714,50 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/css/global.scss b/assets/css/global.scss index 8830e3e9..434ea472 100644 --- a/assets/css/global.scss +++ b/assets/css/global.scss @@ -2,3 +2,8 @@ $brand-primary: darken(#428bca, 20%); // the ~ allows you to reference things in node_modules @import '~bootstrap-sass/assets/stylesheets/bootstrap'; + +input { + width: auto; + min-width: 2em; +} diff --git a/templates/product/index.html.twig b/templates/product/index.html.twig index 5288aed4..62120260 100644 --- a/templates/product/index.html.twig +++ b/templates/product/index.html.twig @@ -15,12 +15,22 @@ {% for c in categories %}

{{ c.name }}

- {% for p in c.products %} - - {% endfor %} +
+ {% for p in c.products %} +
+ + + +
+ {% endfor %} +
+ {% endfor %}