Adding title and only showing products in stock.

This commit is contained in:
Vidir Valberg Gudmundsson 2017-08-26 16:03:26 +02:00
parent 9d45dc7d28
commit 3c83a6f70d
2 changed files with 13 additions and 3 deletions

View file

@ -32,19 +32,25 @@
<meta name="theme-color" content="#ffffff">
</head>
<body>
<body class="bar-menu">
{% block content %}
<h1 class="container">WIP - Work In Progress-Bar</h1>
<hr />
<div class="bar-row container container-fluid">
{% for category in categories %}
<h1>{{ category.name }}</h1>
{% for product in category.products.all %}
{% if product.in_stock %}
<div class="bar-product">
<h4 class="name">{{ product.name }}</h4>
<h4 class="pull-right price">{{ product.price }} HAX</h4>
<h4 class="name">{{ product.name }}</h4>
<h4 class="pull-right price">{{ product.price }} HAX</h4>
</div>
{% endif %}
{% endfor %}
{% endfor %}

View file

@ -287,6 +287,10 @@ footer {
border-bottom: 1px solid lightgrey;
}
body.bar-menu {
margin-top: 0px;
}
.bar-product .name {
width: 900px;
}