Implemented product list

This commit is contained in:
Kevin Frantz
2018-07-14 23:14:06 +02:00
parent 560c70de38
commit 1bc7219caa
17 changed files with 92 additions and 50 deletions

View File

@@ -1 +0,0 @@
<?php

View File

@@ -1 +0,0 @@
<?php

View File

@@ -0,0 +1,24 @@
{% extends 'frames/default.html.twig' %}
{% block title %}product overview{% endblock %}
{% block content %}
<div class="card-columns">
{% for product in products %}
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="{{ product.getImage.getThumbnail }}" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">
{{ product.getName }} <i>({{ product.getColor }})</i>
</h5>
<span class="card-text">
<b>price:</b>
<ul>
<li>{{ product.getPrice.getNetto.getFloat }} {{ product.getPrice.getNetto.getSymbol }} <i>(net)</i></li>
<li>{{ product.getPrice.getGross.getFloat }} {{ product.getPrice.getGross.getSymbol }} <i>(gross)</i></li>
</ul>
</span>
<a href="#" class="btn btn-primary">Add to basket</a>
</div>
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -1 +0,0 @@
<?php

View File

@@ -1 +0,0 @@
<?php

View File

@@ -1 +0,0 @@
<?php