Lines 161-166
Link Here
|
161 |
[% CASE 'phone' %]<th>Phone</th> |
161 |
[% CASE 'phone' %]<th>Phone</th> |
162 |
[% CASE 'checkouts' %]<th>Checkouts</th> |
162 |
[% CASE 'checkouts' %]<th>Checkouts</th> |
163 |
[% CASE 'account_balance' %]<th>Fines</th> |
163 |
[% CASE 'account_balance' %]<th>Fines</th> |
|
|
164 |
[% CASE 'sort1' %]<th>Sort 1</th> |
165 |
[% CASE 'sort2' %]<th>Sort 2</th> |
164 |
[% CASE 'action' %]<th> </th> |
166 |
[% CASE 'action' %]<th> </th> |
165 |
[% END %] |
167 |
[% END %] |
166 |
[% END %] |
168 |
[% END %] |
Lines 199-205
Link Here
|
199 |
[%# - redirect_if_attribute_equal: Name of the attribute to use for the redirect. Query using this attribute, before the normal search %] |
201 |
[%# - redirect_if_attribute_equal: Name of the attribute to use for the redirect. Query using this attribute, before the normal search %] |
200 |
[%# filter: Same as patron_search_table %] |
202 |
[%# filter: Same as patron_search_table %] |
201 |
[%# open_on_row_click: boolean, default off. Will allow to select a patron by clicking on the whole tr element %] |
203 |
[%# open_on_row_click: boolean, default off. Will allow to select a patron by clicking on the whole tr element %] |
202 |
[%# 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' %] |
204 |
[%# 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' %] |
203 |
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %] |
205 |
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %] |
204 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
206 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
205 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
207 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
Lines 610-615
Link Here
|
610 |
} |
612 |
} |
611 |
} |
613 |
} |
612 |
|
614 |
|
|
|
615 |
|
616 |
[% CASE 'sort1' %] |
617 |
{ |
618 |
"data": "statistics_1", |
619 |
"searchable": true, |
620 |
"orderable": true, |
621 |
"render": function( data, type, row, meta ) { |
622 |
return escape_str(data); |
623 |
} |
624 |
} |
625 |
|
626 |
[% CASE 'sort2' %] |
627 |
{ |
628 |
"data": "statistics_2", |
629 |
"searchable": true, |
630 |
"orderable": true, |
631 |
"render": function( data, type, row, meta ) { |
632 |
return escape_str(data); |
633 |
} |
634 |
} |
635 |
|
636 |
|
613 |
[% CASE 'action' %] |
637 |
[% CASE 'action' %] |
614 |
{ |
638 |
{ |
615 |
"data": function( row, type, val, meta ) { |
639 |
"data": function( row, type, val, meta ) { |