add cart to order view

This commit is contained in:
lubiana 2025-07-14 18:42:18 +02:00
parent 994d837de9
commit feeb4aca61
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
2 changed files with 10 additions and 1 deletions

View file

@ -25,7 +25,7 @@ final class FoodOrderRepository extends ServiceEntityRepository
public function findLatestEntries(int $page = 1, int $pagesize = 10, int $days = 4): array
{
$result = $this->createQueryBuilder('alias')
$result = $this->createQueryBuilder('alias')
->orderBy('alias.id', 'DESC')
->setFirstResult(($page - 1) * $pagesize)
->setMaxResults($pagesize)

View file

@ -15,6 +15,15 @@
<th>Vendorphone</th>
<td>{{ food_order.foodVendor.phone }}</td>
</tr>
{% if food_order.foodVendor.menuLink != '' %}
<tr>
<th colspan="2">
<a href="{{ food_order.foodVendor.menuLink }}" target="_blank">
External link to Menu
</a>
</th>
</tr>
{% endif %}
<tr>
<th>Created By</th>
<td>{{ food_order.createdBy }}</td>