1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/accounts/payment_terms.blade.php
2017-02-26 11:39:25 +02:00

33 lines
952 B
PHP

@extends('header')
@section('content')
@parent
@include('accounts.nav', ['selected' => ACCOUNT_PAYMENT_TERMS])
{!! Button::primary(trans('texts.create_payment_term'))
->asLinkTo(URL::to('/payment_terms/create'))
->withAttributes(['class' => 'pull-right'])
->appendIcon(Icon::create('plus-sign')) !!}
@include('partials.bulk_form', ['entityType' => ENTITY_PAYMENT_TERM])
{!! Datatable::table()
->addColumn(
trans('texts.num_days'),
trans('texts.action'))
->setUrl(url('api/payment_terms/'))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->setOptions('bAutoWidth', false)
->setOptions('aoColumns', [[ "sWidth"=> "50%" ], [ "sWidth"=> "50%" ]])
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[1]]])
->render('datatable') !!}
<script>
window.onDatatableReady = actionListHandler;
</script>
@stop