add cart to order view
This commit is contained in:
parent
994d837de9
commit
feeb4aca61
2 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue