mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-10 20:07:12 +02:00
Implemented product list
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<?php
|
@@ -1 +0,0 @@
|
||||
<?php
|
24
src/template/product/list.html.twig
Normal file
24
src/template/product/list.html.twig
Normal 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 %}
|
@@ -1 +0,0 @@
|
||||
<?php
|
@@ -1 +0,0 @@
|
||||
<?php
|
@@ -1 +0,0 @@
|
||||
<?php
|
Reference in New Issue
Block a user