Lines 178-183
Link Here
|
178 |
[% CASE 'phone' %]<th>Phone</th> |
178 |
[% CASE 'phone' %]<th>Phone</th> |
179 |
[% CASE 'checkouts' %]<th>Checkouts</th> |
179 |
[% CASE 'checkouts' %]<th>Checkouts</th> |
180 |
[% CASE 'account_balance' %]<th>Fines</th> |
180 |
[% CASE 'account_balance' %]<th>Fines</th> |
|
|
181 |
[% CASE 'sort1' %]<th>Sort 1</th> |
182 |
[% CASE 'sort2' %]<th>Sort 2</th> |
181 |
[% CASE 'action' %]<th class="noExport"> </th> |
183 |
[% CASE 'action' %]<th class="noExport"> </th> |
182 |
[% END %] |
184 |
[% END %] |
183 |
[% END %] |
185 |
[% END %] |
Lines 209-215
Link Here
|
209 |
[%# - redirect_if_attribute_equal: Name of the attribute to use for the redirect. Query using this attribute, before the normal search %] |
211 |
[%# - redirect_if_attribute_equal: Name of the attribute to use for the redirect. Query using this attribute, before the normal search %] |
210 |
[%# filter: Same as patron_search_table %] |
212 |
[%# filter: Same as patron_search_table %] |
211 |
[%# open_on_row_click: boolean, default off. Will allow to select a patron by clicking on the whole tr element %] |
213 |
[%# open_on_row_click: boolean, default off. Will allow to select a patron by clicking on the whole tr element %] |
212 |
[%# columns: list of columns that will be displayed. Possible values are: 'checkbox', 'cardnumber', 'dateofbirth', 'address', 'name', 'name-address', 'branch', 'category', 'dateexpiry', 'borrowernotes, 'phone', 'checkouts', 'account_balance', 'action' %] |
214 |
[%# columns: list of columns that will be displayed. Possible values are: 'checkbox', 'cardnumber', 'dateofbirth', 'address', 'name', 'name-address', 'branch', 'category', 'dateexpiry', 'borrowernotes, 'phone', 'checkouts', 'account_balance', 'sort1', 'sort2', 'action' %] |
213 |
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %] |
215 |
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %] |
214 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
216 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
215 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
217 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
Lines 614-619
Link Here
|
614 |
} |
616 |
} |
615 |
} |
617 |
} |
616 |
|
618 |
|
|
|
619 |
|
620 |
[% CASE 'sort1' %] |
621 |
{ |
622 |
"data": "statistics_1", |
623 |
"searchable": true, |
624 |
"orderable": true, |
625 |
"render": function( data, type, row, meta ) { |
626 |
return escape_str(data); |
627 |
} |
628 |
} |
629 |
|
630 |
[% CASE 'sort2' %] |
631 |
{ |
632 |
"data": "statistics_2", |
633 |
"searchable": true, |
634 |
"orderable": true, |
635 |
"render": function( data, type, row, meta ) { |
636 |
return escape_str(data); |
637 |
} |
638 |
} |
639 |
|
640 |
|
617 |
[% CASE 'action' %] |
641 |
[% CASE 'action' %] |
618 |
{ |
642 |
{ |
619 |
"data": function( row, type, val, meta ) { |
643 |
"data": function( row, type, val, meta ) { |