mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Add table options also to userobjects view (closes #2573)
This commit is contained in:
parent
d186e26898
commit
1323fff3e2
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
### Userfields
|
### Userfields
|
||||||
|
|
||||||
- xxx
|
- Userentity tables (custom objects / lists) now also have the table options icon (top left corner eye icon, to e.g. add a grouping condition)
|
||||||
|
|
||||||
### General
|
### General
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
var userobjectsTable = $('#userobjects-table').DataTable({
|
var userobjectsTable = $('.userobjects-table').DataTable({
|
||||||
'order': [[1, 'asc']],
|
'order': [[1, 'asc']],
|
||||||
'columnDefs': [
|
'columnDefs': [
|
||||||
{ 'orderable': false, 'targets': 0 },
|
{ 'orderable': false, 'targets': 0 },
|
||||||
{ 'searchable': false, "targets": 0 }
|
{ 'searchable': false, "targets": 0 }
|
||||||
].concat($.fn.dataTable.defaults.columnDefs)
|
].concat($.fn.dataTable.defaults.columnDefs)
|
||||||
});
|
});
|
||||||
$('#userobjects-table tbody').removeClass("d-none");
|
$('.userobjects-table tbody').removeClass("d-none");
|
||||||
userobjectsTable.columns.adjust().draw();
|
userobjectsTable.columns.adjust().draw();
|
||||||
|
|
||||||
$("#search").on("keyup", Delay(function()
|
$("#search").on("keyup", Delay(function()
|
||||||
|
@ -72,11 +72,19 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table id="userobjects-table"
|
<table id="userobjects-table-{{$userentity->id}}"
|
||||||
class="table table-sm table-striped nowrap w-100">
|
class="table table-sm table-striped nowrap w-100 userobjects-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="border-right d-print-none"></th>
|
<th class="border-right d-print-none">
|
||||||
|
<a class="text-muted change-table-columns-visibility-button"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="{{ $__t('Table options') }}"
|
||||||
|
data-table-selector="#userobjects-table-{{$userentity->id}}"
|
||||||
|
href="#"><i class="fa-solid fa-eye"></i>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
|
||||||
@include('components.userfields_thead', array(
|
@include('components.userfields_thead', array(
|
||||||
'userfields' => $userfields
|
'userfields' => $userfields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user