+
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'prefs-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
+ [% Asset.js("lib/jquery/plugins/multiple-select/jquery.multiple.select.js") | $raw %]
+ <script>
+ [% UNLESS ( searchfield ) %]$(document).ready(function(){
+ $('#toolbar').fixFloat();
+ });[% END %]
+
+ $(document).ready(function(){
+ $("select[multiple='multiple']").multipleSelect( {
+ placeholder: _("Please select ..."),
+ selectAllText: _("Select all"),
+ allSelected: _("All selected"),
+ countSelected: _("# of % selected"),
+ noMatchesFound: _("No matches found")
+ } );
+ $(".force_reload").on("click",function(e){
+ e.preventDefault();
+ window.location.reload(true);
+ });
+ });
+ // This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw
+ var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
+ var search_jumped = [% IF ( search_jumped ) %]true[% ELSE %]false[% END %];
+ var MSG_NOTHING_TO_SAVE = _("Nothing to save");
+ var MSG_SAVING = _("Saving...");
+ var MSG_SAVED_PREFERENCE = _("Saved preference %s");
+ var MSG_MODIFIED = _("modified");
+ var MSG_MADE_CHANGES = _("You have made changes to system preferences.");
+ var MSG_CLICK_TO_EXPAND = _("Click to expand this section");
+ var MSG_CLICK_TO_COLLAPSE = _("Click to collapse this section");
+ var MSG_INTERNAL_SERVER_ERROR = _( "Internal Server Error, please reload the page" );
+ var MSG_SESSION_TIMED_OUT = _( "You need to log in again, your session has timed out" );
+ var MSG_DATA_NOT_SAVED = _( "Error; your data might not have been saved" );
+ var MSG_LOADING = _( "Loading..." );
+ </script>
+ [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
+ [% Asset.js("js/ajax.js") | $raw %]
+ [% Asset.js("js/pages/preferences.js") | $raw %]
+ [%# Add WYSIWYG editor for htmlarea system preferences %]
+ [% INCLUDE 'wysiwyg-systempreferences.inc' %]
+[% END %]
+