Bug 27947: Add cancellation reason to article request
[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>Advanced editor shortcuts &rsaquo; Administration &rsaquo; Koha</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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15     <ol>
16         <li>
17             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18         </li>
19         <li>
20             <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
21         </li>
22         <li>
23             <a href="#" aria-current="page">Advanced editor shortcuts</a>
24         </li>
25     </ol>
26 </nav>
27
28 <div class="main container-fluid">
29     <div class="row">
30         <div class="col-sm-10 col-sm-push-2">
31             <main>
32                 <h1>Advanced editor keyboard shortcuts</h1>
33                 [% IF Koha.Preference('EnableAdvancedCatalogingEditor') %]
34                     <ul>
35                         <li>Separate keys using a hyphen "-"</li>
36                         <li>Control key is "Ctrl"</li>
37                         <li>Alt key is "Alt"</li>
38                         <li>Shift is "Shift"</li>
39                         <li>If combining multiple keys they must be in specified order: Shift-Cmd-Ctrl-Alt</li>
40                         <li><a href="https://codemirror.net/doc/manual.html#keymaps">More documentation on defining key maps</a></li>
41                     </ul>
42
43                     <form id="adveditor_shortcuts" method="post" action="/cgi-bin/koha/admin/adveditorshortcuts.pl">
44                         <fieldset>
45                         <input type=hidden name="op" value="save" />
46
47                         <table id="adv_editor_keyboard_shortcuts">
48                             <thead>
49                                 <th>Description</th>
50                                 <th>Shortcut keys</th>
51                             </thead>
52                             <tbody>
53                                [% FOREACH shortcut IN shortcuts %]
54                             <tr>
55                                 <td><label for="shortcut_keys">[% PROCESS keyboard_shortcut_descriptions shortcut_name=shortcut.shortcut_name %]</label></td>
56                                 <td>
57                                     <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name | html %]">
58                                     <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys | html %]">
59                                </td>
60                             </tr>
61                        [% END %]
62                        </table>
63                        </fieldset>
64                        </fieldset class="action"><input type="submit" value="Save shortcuts"></fieldset>
65                    </form>
66                [% ELSE %]
67                    <p>Enable the advanced cataloging editor ( EnableAdvancedCatalogingEditor system preference) to define keyboard shortcuts</p>
68                [% END %]
69            </main>
70         </div> <!-- /.col-sm-10.col-sm-push-2 -->
71
72         <div class="col-sm-2 col-sm-pull-10">
73             <aside>
74                 [% INCLUDE 'admin-menu.inc' %]
75             </aside>
76         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77     </div> <!-- /.row -->
78
79 [% MACRO jsinclude BLOCK %]
80     [% Asset.js("js/tools-menu.js") | $raw %]
81 [% END %]
82
83 [% INCLUDE 'intranet-bottom.inc' %]