2016-02-10 20:40:40 +01:00
|
|
|
%h2= "#{@user.name} (balance: #{@user.balance/100.0})"
|
2015-09-09 20:54:16 +02:00
|
|
|
|
2015-09-11 13:16:53 +02:00
|
|
|
= render 'transactions/new'
|
|
|
|
|
2015-09-11 20:46:37 +02:00
|
|
|
#transactions-filters.panel.panel-default
|
2015-09-11 14:52:26 +02:00
|
|
|
.panel-heading
|
2015-09-10 21:12:03 +02:00
|
|
|
%h3.panel-title Filters
|
|
|
|
.panel-body
|
2015-09-11 15:18:36 +02:00
|
|
|
.row
|
|
|
|
.col-md-8.col-md-offset-2
|
2015-09-11 20:46:37 +02:00
|
|
|
.bound.input-listen{ 'data-input-type': 'date-range',
|
|
|
|
'data-filter-name': 'Time' }
|
2015-09-11 15:18:36 +02:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon
|
|
|
|
%span.glyphicon.glyphicon-calendar
|
2015-09-17 12:43:29 +02:00
|
|
|
%input.lower-bound.form-control.filter-align.value-thing.pure-group-addon{type: 'date',
|
|
|
|
placeholder: 'After'}
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-6
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon
|
|
|
|
%span.glyphicon.glyphicon-calendar
|
2015-09-17 12:43:29 +02:00
|
|
|
%input.upper-bound.form-control.filter-align.value-thing.pure-group-addon{type: 'date', placeholder: 'Before' }
|
2015-09-11 20:46:37 +02:00
|
|
|
.bound.input-listen.pure-u-1{ 'data-input-type': 'number-range',
|
|
|
|
'data-filter-name': 'Amount' }
|
2015-09-11 15:18:36 +02:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon
|
|
|
|
%span.glyphicon.glyphicon-euro
|
2015-09-17 12:43:29 +02:00
|
|
|
%input.lower-bound.form-control.filter-align.value-thing{type: 'number',
|
2015-09-11 20:46:37 +02:00
|
|
|
placeholder: 'Minimum'}
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-6
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon
|
|
|
|
%span.glyphicon.glyphicon-euro
|
2015-09-17 12:43:29 +02:00
|
|
|
%input.upper-bound.form-control.filter-align.value-thing{type: 'number',
|
2015-09-11 20:46:37 +02:00
|
|
|
placeholder: 'Maximum'}
|
2015-09-11 15:18:36 +02:00
|
|
|
.row
|
|
|
|
.col-md-4
|
|
|
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Issuer' }
|
2015-09-11 21:14:35 +02:00
|
|
|
= grouped_collection_select nil, nil, [User, Client], :all, :name, :name, :name,
|
2015-09-11 21:05:00 +02:00
|
|
|
{ include_blank: true },
|
2016-02-01 19:21:21 +01:00
|
|
|
{ data: { placeholder: "Filter on Issuer", width: 265 }, class: "select2-selector form-control value-thing" }
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-4
|
|
|
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Peer' }
|
2015-09-11 21:14:35 +02:00
|
|
|
= select_tag nil,
|
|
|
|
options_from_collection_for_select(User.all.order(:name), :name, :name),
|
2016-02-01 19:21:21 +01:00
|
|
|
include_blank: true, class: "select2-selector form-control value-thing", data: { placeholder: "Filter on Peer", width: 265 }
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-4
|
|
|
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Message' }
|
2015-09-17 12:43:29 +02:00
|
|
|
%input.live-updating.value-thing{type: 'text', placeholder: 'Filter on Message',
|
2015-09-11 20:46:37 +02:00
|
|
|
class: "form-control" }
|
2015-09-10 21:12:03 +02:00
|
|
|
|
2015-09-17 16:46:33 +02:00
|
|
|
%table#transactions.pure-table.pure-table-striped{data: { source: user_transactions_path(@user) }}
|
2015-09-08 19:39:13 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
2015-09-09 20:00:47 +02:00
|
|
|
%th Time
|
2015-09-08 19:39:13 +02:00
|
|
|
%th Amount
|
2015-09-09 20:00:47 +02:00
|
|
|
%th Peer
|
2015-09-09 18:17:55 +02:00
|
|
|
%th Issuer
|
2015-09-08 19:39:13 +02:00
|
|
|
%th Message
|
2015-09-09 20:54:16 +02:00
|
|
|
%tbody
|
2016-02-12 00:18:59 +01:00
|
|
|
%h3="Zeus account number: BE32 9799 9370 6502"
|