mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
60 lines
1.6 KiB
PHP
60 lines
1.6 KiB
PHP
|
@extends('accounts.nav')
|
||
|
|
||
|
@section('content')
|
||
|
@parent
|
||
|
|
||
|
{{ Former::open('gateways/delete')->addClass('user-form') }}
|
||
|
{{ Former::legend('online_payments') }}
|
||
|
|
||
|
<div style="display:none">
|
||
|
{{ Former::text('accountGatewayPublicId') }}
|
||
|
</div>
|
||
|
{{ Former::close() }}
|
||
|
|
||
|
|
||
|
@if ($showAdd)
|
||
|
{{ Button::success_link(URL::to('gateways/create'), trans("texts.add_gateway"), array('class' => 'pull-right'))->append_with_icon('plus-sign') }}
|
||
|
@endif
|
||
|
|
||
|
{{ Datatable::table()
|
||
|
->addColumn(
|
||
|
trans('texts.name'),
|
||
|
trans('texts.action'))
|
||
|
->setUrl(url('api/gateways/'))
|
||
|
->setOptions('sPaginationType', 'bootstrap')
|
||
|
->setOptions('bFilter', false)
|
||
|
->setOptions('bAutoWidth', false)
|
||
|
->setOptions('aoColumns', [[ "sWidth"=> "80%" ], ["sWidth"=> "20%"]])
|
||
|
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[1]]])
|
||
|
->render('datatable') }}
|
||
|
|
||
|
<script>
|
||
|
window.onDatatableReady = function() {
|
||
|
$('tbody tr').mouseover(function() {
|
||
|
$(this).closest('tr').find('.tr-action').css('visibility','visible');
|
||
|
}).mouseout(function() {
|
||
|
$dropdown = $(this).closest('tr').find('.tr-action');
|
||
|
if (!$dropdown.hasClass('open')) {
|
||
|
$dropdown.css('visibility','hidden');
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
function setTrashVisible() {
|
||
|
var checked = $('#trashed').is(':checked');
|
||
|
window.location = '{{ URL::to('view_archive/token') }}' + (checked ? '/true' : '/false');
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
function deleteAccountGateway(id) {
|
||
|
if (!confirm('Are you sure?')) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$('#accountGatewayPublicId').val(id);
|
||
|
$('form.user-form').submit();
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
@stop
|