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

33 lines
952 B
PHP
Raw Normal View History

2016-01-07 20:39:51 +01:00
@extends('header')
@section('content')
2016-01-07 20:39:51 +01:00
@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()
2016-01-07 20:39:51 +01:00
->addColumn(
trans('texts.num_days'),
trans('texts.action'))
->setUrl(url('api/payment_terms/'))
2016-01-07 20:39:51 +01:00
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->setOptions('bAutoWidth', false)
->setOptions('aoColumns', [[ "sWidth"=> "50%" ], [ "sWidth"=> "50%" ]])
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[1]]])
2016-01-07 20:39:51 +01:00
->render('datatable') !!}
<script>
window.onDatatableReady = actionListHandler;
</script>
2016-01-07 20:39:51 +01:00
@stop