Recurring transactions support pagination.

This commit is contained in:
James Cole
2018-08-07 20:47:05 +02:00
parent 723abf44bd
commit 477788658b
2 changed files with 15 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
{% block content %}
<!-- block with list of recurring transaction -->
{% if recurring|length > 0 %}
{% if total > 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
@@ -32,7 +32,7 @@
<!-- list of recurring here -->
<div style="padding-left:8px;">
{{ recurring.render|raw }}
{{ paginator.render|raw }}
</div>
<table class="table table-hover sortable">
<thead>
@@ -44,7 +44,7 @@
</tr>
</thead>
<tbody>
{% for rt in recurring %}
{% for rt in paginator %}
<tr>
<td class="hidden-sm hidden-xs">
<div class="btn-group btn-group-xs edit_tr_buttons">
@@ -122,7 +122,7 @@
</tbody>
</table>
<div style="padding-left:8px;">
{{ recurring.render|raw }}
{{ paginator.render|raw }}
</div>
</div>
<div class="box-footer">
@@ -136,7 +136,7 @@
{% if recurring|length == 0 and page == 1 %}
{% if total == 0 and page == 1 %}
{% include 'partials.empty' with {what: 'default', type: 'recurring',route: route('recurring.create')} %}
{% endif %}
{% endblock %}