add index to loop
This commit is contained in:
parent
5a0df96142
commit
696760659f
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue