2015-09-08 19:39:13 +02:00
|
|
|
%h2= @user.name
|
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-11 20:46:37 +02:00
|
|
|
%input.lower-bound.form-control.filter-align{type: 'date',
|
|
|
|
placeholder: 'After', class: 'pure-group-addon'}
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-6
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon
|
|
|
|
%span.glyphicon.glyphicon-calendar
|
2015-09-11 20:46:37 +02:00
|
|
|
%input.upper-bound.form-control.filter-align{type: 'date',
|
|
|
|
placeholder: 'Before', class: 'pure-group-addon'}
|
|
|
|
.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-11 20:46:37 +02:00
|
|
|
%input.lower-bound.form-control.filter-align{type: 'number',
|
|
|
|
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-11 20:46:37 +02:00
|
|
|
%input.upper-bound.form-control.filter-align{type: 'number',
|
|
|
|
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 },
|
|
|
|
{ data: { placeholder: "Filter on Issuer" }, class: "select2-selector form-control" }
|
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),
|
|
|
|
include_blank: true, class: "select2-selector form-control", data: { placeholder: "Filter on Peer" }
|
2015-09-11 15:18:36 +02:00
|
|
|
.col-md-4
|
|
|
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Message' }
|
2015-09-11 20:46:37 +02:00
|
|
|
%input{type: 'text', placeholder: 'Filter on Message',
|
|
|
|
class: "form-control" }
|
2015-09-10 21:12:03 +02:00
|
|
|
|
2015-09-09 21:26:19 +02:00
|
|
|
%table#transactions.pure-table.pure-table-striped{data: { source: user_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
|