Bug 23095: Correctly display circulation rules (0 vs undef)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / adveditorshortcuts.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Administration &rsaquo; Advanced editor shortcuts</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="adveditor_shortcuts" class="admin">
10     [% INCLUDE 'header.inc' %]
11     [% INCLUDE 'prefs-admin-search.inc' %]
12     [% PROCESS 'keyboard_shortcuts.inc' %]
13
14 <div id="breadcrumbs">
15     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
16     <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
17     <a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Advanced editor shortcuts</a>
18 </div>
19
20 <div class="main container-fluid">
21     <div class="row">
22         <div class="col-sm-10 col-sm-push-2">
23             <main>
24                 <h1>Advanced editor keyboard shortcuts</h1>
25                 [% IF Koha.Preference('EnableAdvancedCatalogingEditor') %]
26                     <ul>
27                         <li>Separate keys using a hyphen "-"</li>
28                         <li>Control key is "Ctrl"</li>
29                         <li>Alt key is "Alt"</li>
30                         <li>Shift is "Shift"</li>
31                         <li>If combining multiple keys they must be in specified order: Shift-Cmd-Ctrl-Alt</li>
32                         <li><a href="https://codemirror.net/doc/manual.html#keymaps">More documentation on defining key maps</a></li>
33                     </ul>
34
35                     <form id="adveditor_shortcuts" method="post" action="/cgi-bin/koha/admin/adveditorshortcuts.pl">
36                         <fieldset>
37                         <input type=hidden name="op" value="save" />
38
39                         <table id="adv_editor_keyboard_shortcuts">
40                             <thead>
41                                 <th>Description</th>
42                                 <th>Shortcut keys</th>
43                             </thead>
44                             <tbody>
45                                [% FOREACH shortcut IN shortcuts %]
46                             <tr>
47                                 <td><label for="shortcut_keys">[% PROCESS keyboard_shortcut_descriptions shortcut_name=shortcut.shortcut_name %]</label></td>
48                                 <td>
49                                     <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name | html %]">
50                                     <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys | html %]">
51                                </td>
52                             </tr>
53                        [% END %]
54                        </table>
55                        </fieldset>
56                        </fieldset class="action"><input type="submit" value="Save shortcuts"></fieldset>
57                    </form>
58                [% ELSE %]
59                    <p>Enable the advanced cataloging editor ( EnableAdvancedCatalogingEditor system preference) to define keyboard shortcuts</p>
60                [% END %]
61            </main>
62         </div> <!-- /.col-sm-10.col-sm-push-2 -->
63
64         <div class="col-sm-2 col-sm-pull-10">
65             <aside>
66                 [% INCLUDE 'admin-menu.inc' %]
67             </aside>
68         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
69     </div> <!-- /.row -->
70
71 [% MACRO jsinclude BLOCK %]
72     [% Asset.js("js/tools-menu.js") | $raw %]
73 [% END %]
74
75 [% INCLUDE 'intranet-bottom.inc' %]