Start of changing tabled to flexboxes

This commit is contained in:
2026-01-07 08:18:56 +01:00
parent de4915972c
commit 5fbd555bb3

View File

@@ -3,21 +3,22 @@
{% block content %} {% block content %}
{% cache 'list_' ~ listType %} {% cache 'list_' ~ listType %}
<div class="table-responsive"> <div class="table-responsive">
<table class='table table-hover'> {# <table class='table table-hover'>#}
<thead> {# <thead>#}
<tr> {# <tr>#}
<th></th> {# <th></th>#}
<th></th> {# <th></th>#}
<th>Name</th> {# <th>Name</th>#}
<th>Categories</th> {# <th>Categories</th>#}
<th></th> {# <th></th>#}
<th class="text-end">Lowest Price</th> {# <th class="text-end">Lowest Price</th>#}
<th class="text-end">Current Price</th> {# <th class="text-end">Current Price</th>#}
<th></th> {# <th></th>#}
</tr> {# </tr>#}
</thead> {# </thead>#}
{% for product in products %} {% for product in products %}
<tr> <div class="d-inline-flex">
<td class="align-middle font-weight-bold h3"><a class="text-warning text-decoration-none" <td class="align-middle font-weight-bold h3"><a class="text-warning text-decoration-none"
href="{{ path('app_star', {'productId': product.id}) }}">{% if product.starred == true %}{% else %}{% endif %}</a></td> href="{{ path('app_star', {'productId': product.id}) }}">{% if product.starred == true %}{% else %}{% endif %}</a></td>
<td class="align-middle" style="width: 120px;"><img src='{{ product.image }}&width=70' class='img-thumbnail' alt='{{ product.name }}'/></td> <td class="align-middle" style="width: 120px;"><img src='{{ product.image }}&width=70' class='img-thumbnail' alt='{{ product.name }}'/></td>
@@ -56,9 +57,9 @@
{% endif %} {% endif %}
</div> </div>
</td> </td>
</tr> </div>
{% endfor %} {% endfor %}
</table> {# </table>#}
</div> </div>
{% endcache %} {% endcache %}
{% endblock %} {% endblock %}