Owen Leonard
6c7c97f67c
DataTables are used on enough pages in the staff client that it doesn't make sense to put inclusion of the CSS into each template where it is needed. This patch moves includes of datatables.css from individual templates into the global header file. To test, apply the patch and view various pages which have DataTables. View various styles of DataTables, e.g. - Full pagination, like item search results - Four-button, like Saved SQL reports Everything should look the same as it was. Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% INCLUDE 'format_price.inc' %]
|
|
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/plugins/dataTables.buttons.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.colVis.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/plugins/jszip.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.print.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.html5.min.js") | $raw %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var MSG_DT_FIRST = _("First");
|
|
var MSG_DT_LAST = _("Last");
|
|
var MSG_DT_NEXT = _("Next");
|
|
var MSG_DT_PREVIOUS = _("Previous");
|
|
var MSG_DT_EMPTY_TABLE = _("No data available in table");
|
|
var MSG_DT_INFO = _("Showing _START_ to _END_ of _TOTAL_");
|
|
var MSG_DT_INFO_EMPTY = _("No entries to show");
|
|
var MSG_DT_INFO_FILTERED = _("(filtered from _MAX_ total entries)");
|
|
var MSG_DT_LENGTH_MENU = _("Show _MENU_ entries");
|
|
var MSG_DT_LOADING_RECORDS = _("Loading...");
|
|
var MSG_DT_PROCESSING = _("Processing...");
|
|
var MSG_DT_SEARCH = _("Search:");
|
|
var MSG_DT_ZERO_RECORDS = _("No matching records found");
|
|
var MSG_DT_ALL = _("All");
|
|
var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
|
|
var MSG_DT_COPY_TITLE = _("Copy to clipboard");
|
|
var MSG_DT_COPY_KEYS = _("Press ctrl or ⌘ + C to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.");
|
|
var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
|
|
var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard");
|
|
//]]>
|
|
</script>
|
|
[% Asset.js("js/datatables.js") | $raw %]
|