Bug 22580: Remove deprecated delete_expired_opac_registrations.pl cronjob
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / audio_alerts.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; Audio alerts</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9
10 <body id="admin_audio_alerts" class="admin">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'prefs-admin-search.inc' %]
13
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Audio alerts</div>
15
16 <div class="main container-fluid">
17     <div class="row">
18         <div class="col-sm-10 col-sm-push-2">
19             <main>
20
21                 <div id="toolbar" class="btn-toolbar">
22                     <a class="btn btn-default" id="newalert" href="/cgi-bin/koha/admin/audio_alerts.pl"><i class="fa fa-plus"></i> New alert</a>
23                 </div>
24
25                 <form id="new-alert-form" action="audio_alerts.pl" method="post" class="validated">
26                     <fieldset class="rows">
27                         <legend><span class="create-alert">Add new alert</span><span class="edit-alert">Edit alert</span></legend>
28
29                         <input id="id" name="id" type="hidden" value="" />
30                         <ol>
31                             <li>
32                                 <label for="selector" class="required">Selector: </label>
33                                 <input id="selector" name="selector" type="text" class="required input-large" placeholder="selector" />
34                                 <span class="required">Required</span>
35                             </li>
36                             <li>
37                                 <label for="sound" class="required">Sound: </label>
38                                 <input id="sound" name="sound" type="text" class="required input-large" placeholder="sound" />
39                                 <button id="play-sound" class="btn btn-default btn-xs disabled"><i class="fa fa-play"></i> Play sound</button>
40                                  <span class="required">Required</span>
41                             </li>
42                             <li>
43                                 <label for="koha-sounds">Select a built-in sound: </label>
44                                 <select id="koha-sounds">
45                                     <option value=""> -- Choose one -- </option>
46                                     <option value="beep.ogg">beep.ogg</option>
47                                     <option value="call.ogg">call.ogg</option>
48                                     <option value="critical.ogg">critical.ogg</option>
49                                     <option value="device_connect.ogg">device_connect.ogg</option>
50                                     <option value="device_disconnect.ogg">device_disconnect.ogg</option>
51                                     <option value="ending.ogg">ending.ogg</option>
52                                     <option value="fail.ogg">fail.ogg</option>
53                                     <option value="IM_notification.ogg">IM_notification.ogg</option>
54                                     <option value="incoming_call.ogg">incoming_call.ogg</option>
55                                     <option value="loading.ogg">loading.ogg</option>
56                                     <option value="loading_2.ogg">loading_2.ogg</option>
57                                     <option value="maximize.ogg">maximize.ogg</option>
58                                     <option value="minimize.ogg">minimize.ogg</option>
59                                     <option value="new_mail_notification.ogg">new_mail_notification.ogg</option>
60                                     <option value="opening.ogg">opening.ogg</option>
61                                     <option value="panic.ogg">panic.ogg</option>
62                                     <option value="popup.ogg">popup.ogg</option>
63                                     <option value="warning.ogg">warning.ogg</option>
64                                 </select>
65                             </li>
66                         </ol>
67                     </fieldset>
68                     <fieldset class="action">
69                             <input id="save-alert" type="submit" value="Submit" />
70                             <a href="#" id="cancel-edit" class="cancel cancel-edit">Cancel</a>
71                     </fieldset>
72                 </form>
73
74                 <form id="delete-alert-form" action="audio_alerts.pl" method="post">
75                     <h3>Audio alerts</h3>
76                     [%IF !( Koha.Preference('AudioAlerts') ) %]
77                         <div class="dialog alert">
78                             <p><strong>Note: </strong></p>
79                             <p>Please enable system preference 'AudioAlerts' to activate sounds.</p>
80                         </div>
81                     [% END %]
82                     <table id="audio-alerts-table">
83                         <thead id="audio-alerts-table-head">
84                             <tr>
85                                 <th>&nbsp;</th>
86                                 <th>Precedence</th>
87                                 <th>Change order</th>
88                                 <th>Selector</th>
89                                 <th>Sound</th>
90                                 <th>&nbsp;</th>
91                             </tr>
92                         </thead>
93
94                         <tbody id="audio-alerts-table-body">
95                             [% FOREACH a IN audio_alerts %]
96                                 <tr>
97                                     <td><input type="checkbox" name="delete" value="[% a.id | html %]" /></td>
98                                     <td>[% a.precedence | html %]</td>
99                                     <td style="white-space:nowrap;">
100                                         <a title="Move alert up" href="audio_alerts.pl?action=move&amp;where=up&amp;id=[% a.id | html %]">
101                                             <i class="fa fa-arrow-up fa-lg order-control"></i>
102                                         </a>
103
104                                         <a title="Move alert to top" href="audio_alerts.pl?action=move&amp;where=top&amp;id=[% a.id | html %]">
105                                             <i class="fa fa-arrow-up fa-lg overline order-control"></i>
106                                         </a>
107
108                                         <a title="Move alert to bottom" href="audio_alerts.pl?action=move&amp;where=bottom&amp;id=[% a.id | html %]">
109                                             <i class="fa fa-arrow-down fa-lg underline order-control"></i>
110                                         </a>
111
112                                         <a title="Move alert down" href="audio_alerts.pl?action=move&amp;where=down&amp;id=[% a.id | html %]">
113                                             <i class="fa fa-arrow-down fa-lg order-control"></i>
114                                         </a>
115                                     </td>
116                                     <td>[% a.selector | html %]</td>
117                                     <td>[% a.sound | html %]</td>
118                                     <td>
119                                         <a class="btn btn-default btn-xs edit" data-soundid="[% a.id | html %]" data-precedence="[% a.precedence | html %]" data-selector="[% a.selector | html %]" data-sound="[% a.sound | html %]"><i class="fa fa-pencil"></i> Edit</a></td>
120                                 </tr>
121                             [% END %]
122                         </tbody>
123                     </table>
124
125                     <p>
126                         <button id="delete-alerts" type="submit" class="btn btn-default disabled"><i class="fa fa-trash"></i> Delete selected alerts</button>
127                     </p>
128                 </form>
129             </main>
130         </div> <!-- /.col-sm-10.col-sm-push-2 -->
131
132         <div class="col-sm-2 col-sm-pull-10">
133             <aside>
134                 [% INCLUDE 'admin-menu.inc' %]
135             </aside>
136         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
137      </div> <!-- /.row -->
138 [% MACRO jsinclude BLOCK %]
139     [% Asset.js("js/admin-menu.js") | $raw %]
140     <script>
141         var MSG_AUDIO_EMPTY_SOUND = _("Please select or enter a sound.");
142         var MSG_AUDIO_CONFIRM_DELETE = _("Are you sure you want to delete the selected audio alerts?");
143         var MSG_AUDIO_CHECK_CHECKBOXES = _("Check the box next to the alert you want to delete.")
144     </script>
145     [% Asset.js("js/audio_alerts.js") | $raw %]
146 [% END %]
147 [% INCLUDE 'intranet-bottom.inc' %]