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">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>Index</th>
|
||||||
<th>username</th>
|
<th>username</th>
|
||||||
<th>name</th>
|
<th>name</th>
|
||||||
<th>extras</th>
|
<th>extras</th>
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for item in food_order.orderItemsSortedByName %}
|
{% for item in food_order.orderItemsSortedByName %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{ loop.index }}</td>
|
||||||
<td>{{ item.createdBy }}</td>
|
<td>{{ item.createdBy }}</td>
|
||||||
<td>{{ item.name }}</td>
|
<td>{{ item.name }}</td>
|
||||||
<td>{{ item.extras }}</td>
|
<td>{{ item.extras }}</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue