From b6cb18c4a8292cabe5fd611b349b51d5c79b5fe4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Wed, 15 Feb 2017 10:24:56 +0100 Subject: [PATCH] Bug 18122 - Audio alerts: Add hint on where to enable sounds This patch adds a hint to page Home > Administration > Audio alerts and related help page about where to enable the sound system (syspref 'AudioAlerts'). To test: - Apply patch - Disable syspref 'AudioAlerts' - Go to Home > Administration > Audio alerts - Note hint below title 'Audio alerts' - Enable syspref 'AudioAlerts' - Go to Home > Administration > Audio alerts - Hint is no longer visible (since audios are enabled) - Open Help page (top right) - Verify that hint on help page makes sense. Amended to add alert class as requested by comment #2 2017-02-21 mv Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/admin/audio_alerts.tt | 7 +++++++ .../prog/en/modules/help/admin/audio_alerts.tt | 2 ++ 2 files changed, 9 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt index 340198e0cd..a1d330988e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Audio alerts [% INCLUDE 'doc-head-close.inc' %] @@ -75,6 +76,12 @@

Audio alerts

+ [%IF !( Koha.Preference('AudioAlerts') ) %] +
+

Note:

+

Please enable system preference 'AudioAlerts' to activate sounds.

+
+ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt index 01c07d77c2..5b824cf897 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt @@ -4,6 +4,8 @@

This section of Koha lets you specify a given sound to play when a given jQuery selector is matched.

+

Note: Use system preference 'AudioAlerts' to enable/disable sounds.

+

Adding a new alert

To add a new alert:

-- 2.39.5