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