mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Working on select 2
This commit is contained in:
parent
e32e065e18
commit
d15d212ad1
@ -47,9 +47,9 @@ class QueryLogging
|
|||||||
$count = count($queries);
|
$count = count($queries);
|
||||||
$timeEnd = microtime(true);
|
$timeEnd = microtime(true);
|
||||||
$time = $timeEnd - $timeStart;
|
$time = $timeEnd - $timeStart;
|
||||||
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
//Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
||||||
|
|
||||||
// if($count > 16)
|
if($count > 16)
|
||||||
Log::info($queries);
|
Log::info($queries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
{!! Former::dark_button(ctrans('texts.download'))->addClass('download_invoices') !!}
|
{!! Former::dark_button(ctrans('texts.download'))->addClass('download_invoices') !!}
|
||||||
{!! Former::success_button(ctrans('texts.pay_now'))->addClass('pay_invoices') !!}
|
{!! Former::success_button(ctrans('texts.pay_now'))->addClass('pay_invoices') !!}
|
||||||
|
|
||||||
|
<select class="form-control" style="width: 220px;" id="statuses" name="client_status[]" multiple="multiple">
|
||||||
|
<option value="all" selected="selected">{{ ctrans('texts.status_all') }}</option>
|
||||||
|
<option value="paid">{{ ctrans('texts.status_paid') }}</option>
|
||||||
|
<option value="unpaid">{{ ctrans('texts.status_unpaid') }}</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Filters / Buttons in here.-->
|
<!-- Filters / Buttons in here.-->
|
||||||
@ -143,6 +149,7 @@ $(document).ready(function() {
|
|||||||
alert('download');
|
alert('download');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -151,6 +158,26 @@ function filterTable() {
|
|||||||
table_filter = $('#table_filter').val();
|
table_filter = $('#table_filter').val();
|
||||||
data_table.ajax.reload();
|
data_table.ajax.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup status filter
|
||||||
|
$('#statuses').select2({
|
||||||
|
placeholder: "{{ ctrans('texts.status') }}",
|
||||||
|
//allowClear: true,
|
||||||
|
templateSelection: function(data, container) {
|
||||||
|
if (data.id == 'paid') {
|
||||||
|
$(container).css('color', '#fff');
|
||||||
|
$(container).css('background-color', '#f0ad4e');
|
||||||
|
$(container).css('border-color', '#eea236');
|
||||||
|
} else if (data.id == 'unpaid') {
|
||||||
|
$(container).css('color', '#fff');
|
||||||
|
$(container).css('background-color', '#d9534f');
|
||||||
|
$(container).css('border-color', '#d43f3a');
|
||||||
|
}
|
||||||
|
return data.text;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@ -44,17 +44,12 @@
|
|||||||
<link href="/vendors/css/coreui.min.css" rel="stylesheet">
|
<link href="/vendors/css/coreui.min.css" rel="stylesheet">
|
||||||
@yield('head')
|
@yield('head')
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@include('portal.default.header')
|
@include('portal.default.header')
|
||||||
@yield('header')
|
@yield('header')
|
||||||
|
|
||||||
@include('portal.default.sidebar')
|
@include('portal.default.sidebar')
|
||||||
@yield('sidebar')
|
@yield('sidebar')
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
@yield('body')
|
@yield('body')
|
||||||
|
|
||||||
@include('portal.default.footer')
|
@include('portal.default.footer')
|
||||||
@yield('footer')
|
@yield('footer')
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user