emojis
All checks were successful
/ ls (pull_request) Successful in 1m26s
/ ls (release) Successful in 51s
/ ls (push) Successful in 1m23s

This commit is contained in:
lubiana 2025-06-16 20:10:48 +02:00
parent f0c738362a
commit 476f91f7cf
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
27 changed files with 401 additions and 174 deletions

View file

@ -1,15 +1,21 @@
{{ form_start(form) }}
{{ form_row(form.status) }}
<h3>Order Items</h3> <div class="order-items-wrapper"
<h3>
ORDER ITEMS
<span class="emoji-normal">🍑</span>
<span class="emoji-enhanced">🍑🍆💋</span>
<span class="emoji-bonkers">🍑🍆💋👅😈🏳️‍🌈✨</span>
</h3>
<div class="order-items-wrapper"
data-prototype="{{ form_widget(form.orderItems.vars.prototype)|e('html_attr') }}"
data-index="{{ form.orderItems|length }}">
<table class="table">
<thead>
<tr>
<th>Drink Type</th>
<th>Quantity</th>
<th>Actions</th>
<th>DRINK TYPE <span class="emoji-normal">🍆</span><span class="emoji-enhanced">🍆💦🍑</span><span class="emoji-bonkers">🍆💦🍑👅💋</span></th>
<th>QUANTITY <span class="emoji-normal">💦</span><span class="emoji-enhanced">💦🍑</span><span class="emoji-bonkers">💦🍑🍆👅</span></th>
<th>ACTIONS <span class="emoji-normal">💖</span><span class="emoji-enhanced">💖🏳️‍🌈</span><span class="emoji-bonkers">💖🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span></th>
</tr>
</thead>
<tbody class="order-items-list">
@ -18,16 +24,31 @@
<td>{{ form_widget(orderItemForm.drinkType) }}</td>
<td>{{ form_widget(orderItemForm.quantity) }}</td>
<td>
<button type="button" class="btn btn-danger remove-order-item">Remove</button>
<button type="button" class="btn btn-danger remove-order-item">
REMOVE
<span class="emoji-normal">🗑️</span>
<span class="emoji-enhanced">🗑️💦</span>
<span class="emoji-bonkers">🗑️💦🍑🍆👅💋😈🏳️‍🌈✨</span>
</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button type="button" class="btn btn-success add-order-item">Add Item</button>
<button type="button" class="btn btn-success add-order-item">
ADD ITEM
<span class="emoji-normal"></span>
<span class="emoji-enhanced">➕🍑</span>
<span class="emoji-bonkers">➕🍑🍆💦👅💋😈🏳️‍🌈✨</span>
</button>
</div>
<button class="btn btn-primary mt-3">{{ button_label|default('Save') }}</button>
<button class="btn btn-primary mt-3">
SAVE
<span class="emoji-normal">💦</span>
<span class="emoji-enhanced">💦🍑🍆</span>
<span class="emoji-bonkers">💦🍑🍆👅💋😈🏳️‍🌈✨</span>
</button>
{{ form_end(form) }}
<script>
@ -70,7 +91,7 @@ document.addEventListener('DOMContentLoaded', function() {
const removeButton = document.createElement('button');
removeButton.type = 'button';
removeButton.className = 'btn btn-danger remove-order-item';
removeButton.textContent = 'Remove';
removeButton.textContent = 'REMOVE';
actionsCell.appendChild(removeButton);
// Add cells to the row