|
Lines 1-58
Link Here
|
| 1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
|
|
2 |
[% SET footerjs = 1 %] |
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Administration › System preferences</title> |
4 |
<title>Koha › Administration › System preferences</title> |
| 4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
| 5 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
| 6 |
[% INCLUDE 'datatables.inc' %] |
|
|
| 7 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/preferences.css" /> |
7 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/preferences.css" /> |
| 8 |
[% IF ( bidi ) %] |
|
|
| 9 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" /> |
| 10 |
[% END %] |
| 11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> |
| 12 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/multiple-select/jquery.multiple.select.js"></script> |
| 13 |
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/plugins/multiple-select/multiple-select.css" /> |
8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/plugins/multiple-select/multiple-select.css" /> |
| 14 |
<script type="text/javascript"> |
|
|
| 15 |
//<![CDATA[ |
| 16 |
[% UNLESS ( searchfield ) %]$(document).ready(function(){ |
| 17 |
$('#toolbar').fixFloat(); |
| 18 |
});[% END %] |
| 19 |
|
| 20 |
$(document).ready(function(){ |
| 21 |
$("select[multiple='multiple']").multipleSelect( { |
| 22 |
placeholder: _("Please select ..."), |
| 23 |
selectAllText: _("Select all"), |
| 24 |
allSelected: _("All selected"), |
| 25 |
countSelected: _("# of % selected"), |
| 26 |
noMatchesFound: _("No matches found") |
| 27 |
} ); |
| 28 |
$(".force_reload").on("click",function(e){ |
| 29 |
e.preventDefault(); |
| 30 |
window.location.reload(true); |
| 31 |
}); |
| 32 |
}); |
| 33 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
| 34 |
var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') |html %]"; |
| 35 |
var search_jumped = [% IF ( search_jumped ) %]true[% ELSE %]false[% END %]; |
| 36 |
var MSG_NOTHING_TO_SAVE = _("Nothing to save"); |
| 37 |
var MSG_SAVING = _("Saving..."); |
| 38 |
var MSG_SAVED_PREFERENCE = _("Saved preference %s"); |
| 39 |
var MSG_MODIFIED = _("modified"); |
| 40 |
var MSG_MADE_CHANGES = _("You have made changes to system preferences."); |
| 41 |
var MSG_CLICK_TO_EXPAND = _("Click to expand this section"); |
| 42 |
var MSG_CLICK_TO_COLLAPSE = _("Click to collapse this section"); |
| 43 |
var MSG_INTERNAL_SERVER_ERROR = _( "Internal Server Error, please reload the page" ); |
| 44 |
var MSG_SESSION_TIMED_OUT = _( "You need to log in again, your session has timed out" ); |
| 45 |
var MSG_DATA_NOT_SAVED = _( "Error; your data might not have been saved" ); |
| 46 |
var MSG_LOADING = _( "Loading..." ); |
| 47 |
|
| 48 |
//]]> |
| 49 |
</script> |
| 50 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/humanmsg.css" /> |
9 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/humanmsg.css" /> |
| 51 |
<script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script> |
|
|
| 52 |
<script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script> |
| 53 |
<script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script> |
| 54 |
[%# Add WYSIWYG editor for htmlarea system preferences %] |
| 55 |
[% INCLUDE 'wysiwyg-systempreferences.inc' %] |
| 56 |
</head> |
10 |
</head> |
| 57 |
<body id="admin_preferences" class="admin"> |
11 |
<body id="admin_preferences" class="admin"> |
| 58 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'header.inc' %] |
|
Lines 195-198
Link Here
|
| 195 |
[% INCLUDE 'prefs-menu.inc' %] |
149 |
[% INCLUDE 'prefs-menu.inc' %] |
| 196 |
</div> |
150 |
</div> |
| 197 |
</div> |
151 |
</div> |
|
|
152 |
|
| 153 |
[% MACRO jsinclude BLOCK %] |
| 154 |
[% INCLUDE 'datatables.inc' %] |
| 155 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> |
| 156 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/multiple-select/jquery.multiple.select.js"></script> |
| 157 |
<script type="text/javascript"> |
| 158 |
[% UNLESS ( searchfield ) %]$(document).ready(function(){ |
| 159 |
$('#toolbar').fixFloat(); |
| 160 |
});[% END %] |
| 161 |
|
| 162 |
$(document).ready(function(){ |
| 163 |
$("select[multiple='multiple']").multipleSelect( { |
| 164 |
placeholder: _("Please select ..."), |
| 165 |
selectAllText: _("Select all"), |
| 166 |
allSelected: _("All selected"), |
| 167 |
countSelected: _("# of % selected"), |
| 168 |
noMatchesFound: _("No matches found") |
| 169 |
} ); |
| 170 |
$(".force_reload").on("click",function(e){ |
| 171 |
e.preventDefault(); |
| 172 |
window.location.reload(true); |
| 173 |
}); |
| 174 |
}); |
| 175 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
| 176 |
var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') |html %]"; |
| 177 |
var search_jumped = [% IF ( search_jumped ) %]true[% ELSE %]false[% END %]; |
| 178 |
var MSG_NOTHING_TO_SAVE = _("Nothing to save"); |
| 179 |
var MSG_SAVING = _("Saving..."); |
| 180 |
var MSG_SAVED_PREFERENCE = _("Saved preference %s"); |
| 181 |
var MSG_MODIFIED = _("modified"); |
| 182 |
var MSG_MADE_CHANGES = _("You have made changes to system preferences."); |
| 183 |
var MSG_CLICK_TO_EXPAND = _("Click to expand this section"); |
| 184 |
var MSG_CLICK_TO_COLLAPSE = _("Click to collapse this section"); |
| 185 |
var MSG_INTERNAL_SERVER_ERROR = _( "Internal Server Error, please reload the page" ); |
| 186 |
var MSG_SESSION_TIMED_OUT = _( "You need to log in again, your session has timed out" ); |
| 187 |
var MSG_DATA_NOT_SAVED = _( "Error; your data might not have been saved" ); |
| 188 |
var MSG_LOADING = _( "Loading..." ); |
| 189 |
</script> |
| 190 |
<script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script> |
| 191 |
<script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script> |
| 192 |
<script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script> |
| 193 |
[%# Add WYSIWYG editor for htmlarea system preferences %] |
| 194 |
[% INCLUDE 'wysiwyg-systempreferences.inc' %] |
| 195 |
[% END %] |
| 196 |
|
| 198 |
[% INCLUDE 'intranet-bottom.inc' %] |
197 |
[% INCLUDE 'intranet-bottom.inc' %] |