mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Working on select 2
This commit is contained in:
parent
e32e065e18
commit
d15d212ad1
@ -47,9 +47,9 @@ class QueryLogging
|
||||
$count = count($queries);
|
||||
$timeEnd = microtime(true);
|
||||
$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);
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,12 @@
|
||||
{!! Former::dark_button(ctrans('texts.download'))->addClass('download_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>
|
||||
|
||||
<!-- Filters / Buttons in here.-->
|
||||
@ -143,6 +149,7 @@ $(document).ready(function() {
|
||||
alert('download');
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -151,6 +158,26 @@ function filterTable() {
|
||||
table_filter = $('#table_filter').val();
|
||||
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>
|
||||
@endsection
|
||||
|
||||
|
@ -44,17 +44,12 @@
|
||||
<link href="/vendors/css/coreui.min.css" rel="stylesheet">
|
||||
@yield('head')
|
||||
</head>
|
||||
|
||||
@include('portal.default.header')
|
||||
@yield('header')
|
||||
|
||||
@include('portal.default.sidebar')
|
||||
@yield('sidebar')
|
||||
|
||||
@section('body')
|
||||
@yield('body')
|
||||
|
||||
@include('portal.default.footer')
|
||||
@yield('footer')
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user