Browse Source

fix #187: consider pagination enumerating tickets

Davide Alberani 4 years ago
parent
commit
305fea8a41
2 changed files with 2 additions and 2 deletions
  1. 1 1
      angular_app/event-tickets.html
  2. 1 1
      angular_app/tickets-list.html

+ 1 - 1
angular_app/event-tickets.html

@@ -56,7 +56,7 @@
                             </thead>
                             <tbody>
                                 <tr ng-repeat="ticket in shownItems">
-                                    <td class="text-right">{{$index+1}}</td>
+                                    <td class="text-right">{{$index + 1 + ((currentPage-1)*itemsPerPage)}}</td>
                                     <td>
                                         <span>
                                             <strong>

+ 1 - 1
angular_app/tickets-list.html

@@ -29,7 +29,7 @@
                 </thead>
                 <tbody>
                 <tr ng-repeat="ticket in shownItems">
-                    <td class="text-right">{{$index+1}}</td>
+                    <td class="text-right">{{$index + 1 + ((currentPage-1)*itemsPerPage)}}</td>
                     <td>
                         <span><strong><span>{{ticket.name}}</span>&nbsp;<span>{{ticket.surname}}</span></strong></span><span ng-if="ticket.email">&nbsp;&lt;{{ticket.email}}&gt;</span>
                         <p ng-if="ticket.company || ticket['job title']"><i ng-if="ticket['job title']">{{ticket['job title']}}</i><span ng-if="ticket.company && ticket['job title']">&nbsp;@&nbsp;</span><i ng-if="ticket.company">{{ticket.company}}</i></p>