1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/resources/views/accounts/products.blade.php

49 lines
1.6 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_PRODUCTS])
2015-04-20 16:34:23 +02:00
{!! Former::open()->addClass('warn-on-exit') !!}
2015-03-16 22:45:25 +01:00
{{ Former::populateField('fill_products', intval($account->fill_products)) }}
{{ Former::populateField('update_products', intval($account->update_products)) }}
2015-04-20 16:34:23 +02:00
<div class="panel panel-default">
2015-04-22 21:21:04 +02:00
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.product_settings') !!}</h3>
</div>
2015-04-20 16:34:23 +02:00
<div class="panel-body">
{!! Former::checkbox('fill_products')->text(trans('texts.fill_products_help')) !!}
{!! Former::checkbox('update_products')->text(trans('texts.update_products_help')) !!}
&nbsp;
2015-10-21 13:11:08 +02:00
{!! Former::actions( Button::success(trans('texts.save'))->submit()->appendIcon(Icon::create('floppy-disk')) ) !!}
2015-04-20 16:34:23 +02:00
{!! Former::close() !!}
</div>
</div>
2015-03-16 22:45:25 +01:00
2015-04-27 14:28:40 +02:00
{!! Button::primary(trans('texts.create_product'))
2015-05-19 21:14:00 +02:00
->asLinkTo(URL::to('/products/create'))
2015-04-01 21:57:02 +02:00
->withAttributes(['class' => 'pull-right'])
->appendIcon(Icon::create('plus-sign')) !!}
2015-03-16 22:45:25 +01:00
2015-11-05 23:37:04 +01:00
@include('partials.bulk_form', ['entityType' => ENTITY_PRODUCT])
2015-04-01 21:57:02 +02:00
{!! Datatable::table()
2015-10-21 13:11:08 +02:00
->addColumn($columns)
2015-03-16 22:45:25 +01:00
->setUrl(url('api/products/'))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->setOptions('bAutoWidth', false)
2015-10-21 13:11:08 +02:00
//->setOptions('aoColumns', [[ "sWidth"=> "15%" ], [ "sWidth"=> "35%" ]])
2015-03-16 22:45:25 +01:00
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[3]]])
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;
2015-03-16 22:45:25 +01:00
</script>
@stop