-
columnname: notes
+ saved-sql:
+ table_reports:
+ -
+ columnname: selection
+ cannot_be_toggled: 1
+ cannot_be_modified: 1
+ -
+ columnname: report_id
+ cannot_be_toggled: 1
+ cannot_be_modified: 1
+ -
+ columnname: report_name
+ -
+ columnname: type
+ -
+ columnname: group
+ -
+ columnname: subgroup
+ -
+ columnname: notes
+ -
+ columnname: author
+ -
+ columnname: creation_date
+ -
+ columnname: last_edit
+ -
+ columnname: last_run
+ -
+ columnname: public
+ -
+ columnname: json_url
+ -
+ columnname: cache_expiry
+ -
+ columnname: saved_results
+ -
+ columnname: update
+ -
+ columnname: actions
+ cannot_be_toggled: 1
+ cannot_be_modified: 1
+
circ:
circulation:
issues-table:
[% USE KohaDates %]
[% USE Koha %]
+[% USE ColumnsSettings %]
[% SET footerjs = 1 %]
[%- BLOCK area_name -%]
[%- SWITCH area -%]
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %]
<th>Saved results</th>
[% IF has_obsolete_reports %]<th>Update</th>[% END %]
- <th> </th>
+ <th>Actions</th>
</tr>
</thead>
<tbody>
[% INCLUDE 'calendar.inc' %]
[% IF ( saved1 ) %]
[% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
[% END %]
- <script type="text/javascript">
+ <script>
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this report? This cannot be undone.");
var group_subgroups = {};
[% FOREACH group IN groups_with_subgroups %]
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
+ var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'saved-sql', 'table_reports', 'json' ) %];
$('#limit').change(function() {
$('#limitselect').submit();
});
[% IF (saved1) %]
- var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, {
+ var rtable = KohaTable("table_reports", {
'iDisplayLength': [% Koha.Preference('NumSavedReports') %],
'bAutoWidth': false,
'sPaginationType': 'four_button',
],
'oLanguage': {
'sZeroRecords': _("No matching reports found")
- }
- }));
+ },
+ }, columns_settings);
var rtabs = $("#tabs").tabs();
rtabs.on("tabsactivate", function(e, ui) {