2016-01-20 00:07:31 +01:00
|
|
|
@extends('header')
|
|
|
|
|
2016-05-15 12:58:11 +02:00
|
|
|
@section('content')
|
|
|
|
@parent
|
|
|
|
@include('accounts.nav', ['selected' => ACCOUNT_BANKS])
|
2016-01-20 00:07:31 +01:00
|
|
|
|
2016-07-11 19:08:43 +02:00
|
|
|
@if (Auth::user()->hasFeature(FEATURE_EXPENSES))
|
|
|
|
<div class="pull-right">
|
|
|
|
{!! Button::normal(trans('texts.import_ofx'))
|
|
|
|
->asLinkTo(URL::to('/bank_accounts/import_ofx'))
|
|
|
|
->appendIcon(Icon::create('open')) !!}
|
|
|
|
{!! Button::primary(trans('texts.add_bank_account'))
|
|
|
|
->asLinkTo(URL::to('/bank_accounts/create'))
|
|
|
|
->appendIcon(Icon::create('plus-sign')) !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-01-20 00:07:31 +01:00
|
|
|
|
2016-05-15 12:58:11 +02:00
|
|
|
@include('partials.bulk_form', ['entityType' => ENTITY_BANK_ACCOUNT])
|
2016-01-20 00:07:31 +01:00
|
|
|
|
2016-05-15 12:58:11 +02:00
|
|
|
{!! Datatable::table()
|
|
|
|
->addColumn(
|
2016-01-20 00:07:31 +01:00
|
|
|
trans('texts.name'),
|
|
|
|
trans('texts.integration_type'),
|
|
|
|
trans('texts.action'))
|
2016-05-15 12:58:11 +02:00
|
|
|
->setUrl(url('api/bank_accounts/'))
|
|
|
|
->setOptions('sPaginationType', 'bootstrap')
|
|
|
|
->setOptions('bFilter', false)
|
|
|
|
->setOptions('bAutoWidth', false)
|
|
|
|
->setOptions('aoColumns', [[ "sWidth"=> "50%" ], [ "sWidth"=> "30%" ], ["sWidth"=> "20%"]])
|
|
|
|
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[2]]])
|
|
|
|
->render('datatable') !!}
|
2016-01-20 00:07:31 +01:00
|
|
|
|
2016-05-15 12:58:11 +02:00
|
|
|
<script>
|
2016-01-20 00:07:31 +01:00
|
|
|
window.onDatatableReady = actionListHandler;
|
2016-05-15 12:58:11 +02:00
|
|
|
</script>
|
2016-01-20 00:07:31 +01:00
|
|
|
|
2016-05-15 12:58:11 +02:00
|
|
|
@stop
|