Owen Leonard
8dbf0810a1
This patch breaks the single large tables with multiple header rows into multipl e tables with separate headings for each. Clicking the heading collapses that section. The goal is to improve clarity when scanning through a large number of prefs. Signed-off-by: Jesse Weaver <pianohacker@gmail.com>
186 lines
10 KiB
Cheetah
186 lines
10 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Administration › System Preferences</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang"-->/css/preferences.css" />
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang"-->/css/humanmsg.css" />
|
|
<script src="<!-- TMPL_VAR NAME="themelang" -->/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
|
|
<script src="<!-- TMPL_VAR NAME="themelang" -->/js/ajax.js" type="text/javascript"></script>
|
|
<script src="<!-- TMPL_VAR NAME="themelang" -->/js/pages/preferences.js" type="text/javascript"></script>
|
|
<script src="<!-- TMPL_VAR NAME="themelang" -->/lib/jquery/plugins/jquery.highlight-3.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function(){
|
|
$("h3").attr("class","expanded").attr("title",_("Click to expand this section"));
|
|
var collapsible = $(".collapsed,.expanded");
|
|
|
|
$(collapsible).toggle(function () {
|
|
$(this).addClass("collapsed").removeClass("expanded").attr("title",_("Click to expand this section"));
|
|
$(this).next("table").hide();
|
|
},
|
|
function () {
|
|
$(this).addClass("expanded").removeClass("collapsed").attr("title",_("Click to collapse this section"));
|
|
$(this).next("table").show();
|
|
}
|
|
);
|
|
|
|
|
|
});
|
|
<!-- TMPL_IF NAME="searchfield" -->
|
|
var to_highlight = "<!-- TMPL_VAR NAME="searchfield" ESCAPE="JS"-->";
|
|
|
|
if ( to_highlight ) {
|
|
var words = to_highlight.split( ' ' );
|
|
$( document ).ready( function () {
|
|
$( '.prefs-tab table' ).find( 'td, th' ).not( '.name-cell' ).each( function ( i, td ) {
|
|
$.each( words, function ( i, word ) { $( td ).highlight( word ) } );
|
|
} ).find( 'option' ).removeHighlight();
|
|
} );
|
|
}
|
|
<!-- /TMPL_IF -->
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="prefs-admin-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › System Preferences</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<div id="toolbar">
|
|
<form action="/cgi-bin/koha/admin/preferences.pl" method="get">
|
|
<input type="hidden" name="op" value="jump" />
|
|
<input type="hidden" name="tab" value="<!-- TMPL_VAR NAME="tab" -->" />
|
|
<label for="jumpfield">Jump to named preference:</label>
|
|
<input type="text" name="jumpfield" id="jumpfield" value="<!-- TMPL_VAR NAME="jumpfield" -->" />
|
|
<input type="submit" value="Jump" />
|
|
</form>
|
|
</div>
|
|
|
|
<!-- TMPL_IF NAME="jump_not_found" -->
|
|
<h2>System preferences</h2>
|
|
<div class="dialog error">
|
|
Could not find a system preference named <code><!-- TMPL_VAR NAME="jumpfield" --></code>.
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="search_not_found" -->
|
|
<div class="dialog error">
|
|
No system preferences matched your search for <strong><!-- TMPL_VAR NAME="searchfield" --></strong>. You can try a different search or <a href="/cgi-bin/koha/admin/preferences.pl?tab=<!-- TMPL_VAR NAME="last_tab" -->">return to where you were before.</a>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP NAME="TABS" -->
|
|
<div class="prefs-tab">
|
|
<h2><!-- TMPL_VAR NAME="tab_title" --> preferences</h2>
|
|
<form action="/cgi-bin/koha/admin/preferences.pl" method="post">
|
|
<input type="hidden" name="op" value="save" />
|
|
<input type="hidden" name="tab" value="<!-- TMPL_VAR NAME="tab" -->" />
|
|
|
|
<!-- TMPL_LOOP NAME="LINES" -->
|
|
<!-- TMPL_IF NAME="is_group_title" -->
|
|
<!-- TMPL_IF NAME="__first__" -->
|
|
<h3><!-- TMPL_IF NAME="highlighted" -->
|
|
<span class="term"><!-- TMPL_VAR NAME="title" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="title" -->
|
|
<!-- /TMPL_IF --></h3><table><!-- TMPL_ELSE --></tbody></table>
|
|
<h3><!-- TMPL_IF NAME="highlighted" -->
|
|
<span class="term"><!-- TMPL_VAR NAME="title" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="title" -->
|
|
<!-- /TMPL_IF --></h3><table><!-- /TMPL_IF -->
|
|
<thead><tr><th>Preference</th><th>Value</th></tr></thead>
|
|
<!-- TMPL_UNLESS NAME="__last__" --><tbody><!-- /TMPL_UNLESS -->
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="__first__" --><table><thead><tr><th>Preference</th><th>Value</th></tr></thead><tbody><!-- /TMPL_IF -->
|
|
<tr>
|
|
<td class="name-cell">
|
|
<code>
|
|
<!-- TMPL_LOOP NAME="NAMES" -->
|
|
<label for="pref_<!-- TMPL_VAR NAME="name" -->">
|
|
<!-- TMPL_IF NAME="highlighted" -->
|
|
<span class="term" id="highlighted"><!-- TMPL_VAR NAME="name" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="name" -->
|
|
<!-- /TMPL_IF -->
|
|
</label>
|
|
<!-- TMPL_UNLESS NAME="__last__" --><br /><!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_LOOP -->
|
|
</code>
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_LOOP NAME="CHUNKS" -->
|
|
<!-- TMPL_IF NAME="type_text" -->
|
|
<!-- TMPL_IF NAME="highlighted" -->
|
|
<span class="term"><!-- TMPL_VAR NAME="contents" --></span>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="contents" -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_ELSIF NAME="type_input" -->
|
|
<input type="<!-- TMPL_VAR NAME="input_type" DEFAULT="text" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->" value="<!-- TMPL_VAR NAME="value" -->" autocomplete="off" />
|
|
<!-- TMPL_ELSIF NAME="type_select" -->
|
|
<select name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="choice" -->">
|
|
<!-- TMPL_LOOP NAME="CHOICES" -->
|
|
<!-- TMPL_IF NAME="selected" -->
|
|
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected">
|
|
<!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR NAME="value" -->">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="text" -->
|
|
</option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<!-- TMPL_ELSIF NAME="type_textarea" -->
|
|
<a class="expand-textarea" style="display: none" href="#">Click to Edit</a>
|
|
<textarea name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->"><!-- TMPL_VAR NAME="value" --></textarea>
|
|
<!-- TMPL_ELSIF NAME="type_languages" -->
|
|
<dl>
|
|
<!-- TMPL_LOOP NAME="languages" -->
|
|
<dt>
|
|
<!-- TMPL_IF NAME="plural" -->
|
|
<dt>
|
|
<!-- TMPL_IF NAME="native_description" --><!-- TMPL_VAR NAME="native_description" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="rfc4646_subtag" --><!-- /TMPL_IF -->
|
|
</dt>
|
|
<!-- TMPL_LOOP NAME="sublanguages_loop" -->
|
|
<dd>
|
|
<label for="<!-- TMPL_VAR NAME="rfc4646_subtag" -->"><!-- TMPL_VAR NAME="native_description" --> <!-- TMPL_VAR NAME="script_description" --> <!-- TMPL_VAR NAME="region_description" --> <!-- TMPL_VAR NAME="variant_description" -->(<!-- TMPL_VAR NAME="rfc4646_subtag" -->)</label>
|
|
<!-- TMPL_IF NAME="enabled" -->
|
|
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" checked="checked" />
|
|
<!-- TMPL_ELSE -->
|
|
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" />
|
|
<!-- /TMPL_IF -->
|
|
</dd>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_ELSE -->
|
|
<dt>
|
|
<label for="<!-- TMPL_VAR NAME="rfc4646_subtag" -->"><!-- TMPL_VAR NAME="native_description" -->(<!-- TMPL_VAR NAME="rfc4646_subtag" -->)</label>
|
|
<!-- TMPL_IF NAME="group_enabled" -->
|
|
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" checked="checked" />
|
|
<!-- TMPL_ELSE -->
|
|
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" />
|
|
<!-- /TMPL_IF -->
|
|
</dt>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</dl>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</td>
|
|
</tr>
|
|
<!-- TMPL_IF NAME="__last__" --></tbody></table><!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
<fieldset class="action"><button class="save-all submit" type="submit">Save all <!-- TMPL_VAR NAME="tab_title" --> preferences</button> <a href="/cgi-bin/koha/admin/preferences.pl?tab=<!-- TMPL_VAR NAME="tab" -->" class="cancel">Cancel</a></fieldset>
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="prefs-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|