1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00
invoiceninja/resources/views/accounts/payments.blade.php

52 lines
1.8 KiB
PHP
Raw Normal View History

2015-10-14 16:15:39 +02:00
@extends('header')
2015-03-16 22:45:25 +01:00
@section('content')
@parent
2015-10-14 16:15:39 +02:00
@include('accounts.nav', ['selected' => ACCOUNT_PAYMENTS])
2015-03-16 22:45:25 +01:00
2016-05-12 17:09:07 +02:00
@if ($showSwitchToWepay)
{!! Button::success(trans('texts.switch_to_wepay'))
->asLinkTo(URL::to('/gateways/switch/wepay'))
->appendIcon(Icon::create('circle-arrow-up')) !!}
2016-05-14 23:23:20 +02:00
 
2016-05-12 17:09:07 +02:00
@endif
2016-05-14 23:23:20 +02:00
<label for="trashed" style="font-weight:normal; margin-left: 10px;">
<input id="trashed" type="checkbox" onclick="setTrashVisible()"
{{ Session::get("show_trash:gateway") ? 'checked' : ''}}/>&nbsp; {{ trans('texts.show_archived_deleted')}} {{ Utils::transFlowText('gateways') }}
</label>
2016-05-12 17:09:07 +02:00
2015-03-16 22:45:25 +01:00
@if ($showAdd)
2015-04-27 14:28:40 +02:00
{!! Button::primary(trans('texts.add_gateway'))
2015-05-19 21:14:00 +02:00
->asLinkTo(URL::to('/gateways/create'))
2015-04-01 21:57:02 +02:00
->withAttributes(['class' => 'pull-right'])
2015-04-15 18:35:41 +02:00
->appendIcon(Icon::create('plus-sign')) !!}
2015-03-16 22:45:25 +01:00
@endif
2015-11-05 23:37:04 +01:00
@include('partials.bulk_form', ['entityType' => ENTITY_ACCOUNT_GATEWAY])
2015-04-01 21:57:02 +02:00
{!! Datatable::table()
2015-03-16 22:45:25 +01:00
->addColumn(
trans('texts.name'),
2015-04-15 18:35:41 +02:00
trans('texts.payment_type_id'),
2015-03-16 22:45:25 +01:00
trans('texts.action'))
->setUrl(url('api/gateways/'))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->setOptions('bAutoWidth', false)
2015-04-15 18:35:41 +02:00
->setOptions('aoColumns', [[ "sWidth"=> "50%" ], [ "sWidth"=> "30%" ], ["sWidth"=> "20%"]])
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[2]]])
2015-04-01 21:57:02 +02:00
->render('datatable') !!}
2015-03-16 22:45:25 +01:00
<script>
2015-11-11 13:17:58 +01:00
window.onDatatableReady = actionListHandler;
2016-05-14 23:23:20 +02:00
function setTrashVisible() {
var checked = $('#trashed').is(':checked');
var url = '{{ URL::to('view_archive/gateway') }}' + (checked ? '/true' : '/false');
$.get(url, function(data) {
refreshDatatable();
})
}
2015-11-11 13:20:51 +01:00
</script>
2015-03-16 22:45:25 +01:00
@stop