tab/app/views/users/show.html.haml

68 lines
2.8 KiB
Plaintext
Raw Normal View History

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