From 3e3f66705395ec01512cc1ceb4964397af9e47cf Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 24 Oct 2017 17:55:49 +0100 Subject: [PATCH] Rework transaction views --- templates/admin/transactions/index.html.ep | 44 +++++++++++++++------- templates/admin/transactions/read.html.ep | 6 +-- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/templates/admin/transactions/index.html.ep b/templates/admin/transactions/index.html.ep index 5d8e411..b20ad2b 100644 --- a/templates/admin/transactions/index.html.ep +++ b/templates/admin/transactions/index.html.ep @@ -11,19 +11,37 @@ Success! <%= $success %> % } -
- % for my $transaction ( $transactions->all ) { - -
-
From: <%= $transaction->buyer->name %>
-
To: <%= $transaction->seller->name %>
-
Value: <%= $transaction->value %>
-
Submitted At: <%= $transaction->submitted_at %>
-
Purchase Time: <%= $transaction->purchase_time %>
-
-
- % } -
+ +
+
%= bootstrap_pagination( $c->param('page') || 1, $transactions->pager->last_page, { class => 'justify-content-center' } );
diff --git a/templates/admin/transactions/read.html.ep b/templates/admin/transactions/read.html.ep index b00f6b3..3782905 100644 --- a/templates/admin/transactions/read.html.ep +++ b/templates/admin/transactions/read.html.ep @@ -32,15 +32,15 @@
- +
- +
- +