mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-10 20:07:12 +02:00
Added basket draft
This commit is contained in:
25
src/template/order/basket.html.twig
Normal file
25
src/template/order/basket.html.twig
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends 'frames/default.html.twig' %}
|
||||
{% block title %}
|
||||
basket
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Basket</h1>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>name</th>
|
||||
<th>price(net)</th>
|
||||
<th>tax (%)</th>
|
||||
<th>price (gross)</th>
|
||||
</tr>
|
||||
{% for product in basket.products %}
|
||||
<tr>
|
||||
<td>product.id</td>
|
||||
<td>product.name</td>
|
||||
<td>product.price.netto.float</td>
|
||||
<td>product.price.tax</td>
|
||||
<td>product.price.gross.float</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user