56 lines
2.1 KiB
Twig
56 lines
2.1 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}🛒🛍️💳 ORDER!!! 🎉🎊✨💃🕺🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪🎪🎨🎭🎪🎯🎲🎰{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>🛒🛍️💳💰🎉🎊✨ ORDER!!! 💃🕺🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪🎪🎨🎭🎪🎯🎲🎰🎊🎉</h1>
|
|
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<th>🆔💫 ID!!! ⭐✨</th>
|
|
<td>🆔 {{ order.id }} 🆔</td>
|
|
</tr>
|
|
<tr>
|
|
<th>📅🕐 CREATED AT!!! 🎪🎨</th>
|
|
<td>📅 {{ order.createdAt ? order.createdAt|date('Y-m-d H:i:s') : '' }} 📅</td>
|
|
</tr>
|
|
<tr>
|
|
<th>🔄📅 UPDATED AT!!! 🎭🎯</th>
|
|
<td>🔄 {{ order.updatedAt ? order.updatedAt|date('Y-m-d H:i:s') : '' }} 🔄</td>
|
|
</tr>
|
|
<tr>
|
|
<th>📊🔥 STATUS!!! 💯⚡</th>
|
|
<td>📊 {{ order.status.value }} 📊</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>🛒📦 ORDER ITEMS!!! 🎉🎊✨💃🕺🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪</h2>
|
|
{% if order.orderItems|length > 0 %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>🍻🥃 DRINK TYPE!!! 🍷🍸</th>
|
|
<th>🔢📦 QUANTITY!!! 💯⚡</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in order.orderItems %}
|
|
<tr>
|
|
<td>🍻 {{ item.drinkType.name }} 🍻</td>
|
|
<td>🔢 {{ item.quantity }} 🔢</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>😭💔 No items in this order!!! 😢🚫❌</p>
|
|
{% endif %}
|
|
|
|
<a href="{{ path('app_order_index') }}" class="btn btn-secondary">↩️📋 BACK TO LIST!!! 🎉🎊✨💃🕺</a>
|
|
|
|
<a href="{{ path('app_order_edit', {'id': order.id}) }}" class="btn btn-primary">✏️📝 EDIT!!! 🔥💯⚡🚀💫⭐</a>
|
|
|
|
{{ include('order/_delete_form.html.twig') }}
|
|
{% endblock %}
|