Adding title and only showing products in stock.
This commit is contained in:
parent
9d45dc7d28
commit
3c83a6f70d
|
@ -32,19 +32,25 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="bar-menu">
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h1 class="container">WIP - Work In Progress-Bar</h1>
|
||||||
|
<hr />
|
||||||
|
|
||||||
<div class="bar-row container container-fluid">
|
<div class="bar-row container container-fluid">
|
||||||
|
|
||||||
|
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<h1>{{ category.name }}</h1>
|
<h1>{{ category.name }}</h1>
|
||||||
|
|
||||||
{% for product in category.products.all %}
|
{% for product in category.products.all %}
|
||||||
|
{% if product.in_stock %}
|
||||||
<div class="bar-product">
|
<div class="bar-product">
|
||||||
<h4 class="name">{{ product.name }}</h4>
|
<h4 class="name">{{ product.name }}</h4>
|
||||||
<h4 class="pull-right price">{{ product.price }} HAX</h4>
|
<h4 class="pull-right price">{{ product.price }} HAX</h4>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -287,6 +287,10 @@ footer {
|
||||||
border-bottom: 1px solid lightgrey;
|
border-bottom: 1px solid lightgrey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.bar-menu {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.bar-product .name {
|
.bar-product .name {
|
||||||
width: 900px;
|
width: 900px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue