2016-02-17 15:45:00 +01:00
|
|
|
%h2
|
|
|
|
= @user.name
|
|
|
|
%small= "balance: #{euro_from_cents @user.balance}"
|
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' }
|
2018-03-21 19:40:03 +01: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,
|
2018-03-21 19:40:03 +01:00
|
|
|
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
|
|
|
|
2019-04-10 14:15:20 +02:00
|
|
|
%table#transactions.pure-table.pure-table-striped{data: { source: user_transactions_datatable_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
|
2019-04-08 21:46:33 +02:00
|
|
|
%h3="Zeus account number: BE32 9799 9370 6502. Please include your Tab name in the description of the transaction"
|
2018-06-20 19:28:01 +02:00
|
|
|
="API key: #{@user.key}"
|
|
|
|
= button_to "reset", reset_key_user_path(@user), {form_class: 'reset_key', class: 'btn btn-small'}
|
2018-06-20 18:51:17 +02:00
|
|
|
%br
|
2018-06-20 19:28:01 +02:00
|
|
|
Example:
|
2018-06-20 18:51:17 +02:00
|
|
|
%code="curl -H \"Accept: application/json\" -H \"Authorization: Token token=#{@user.key}\" #{user_url(@user)}"
|