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