add index to loop
Some checks failed
/ ls (pull_request) Failing after 1m26s
/ ls (release) Successful in 56s
/ ls (push) Failing after 1m22s

This commit is contained in:
lubiana 2025-02-07 19:34:01 +01:00
parent 5a0df96142
commit 696760659f
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -40,6 +40,7 @@
<table class="table">
<thead>
<tr>
<th>Index</th>
<th>username</th>
<th>name</th>
<th>extras</th>
@ -49,6 +50,7 @@
<tbody>
{% for item in food_order.orderItemsSortedByName %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ item.createdBy }}</td>
<td>{{ item.name }}</td>
<td>{{ item.extras }}</td>