Bugzilla – Attachment 25763 Details for
Bug 11868
Multi transport types: disable sms and phone if not in use
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11868: MTT: disable sms and phone if not in use
Bug-11868-MTT-disable-sms-and-phone-if-not-in-use.patch (text/plain), 4.37 KB, created by
Jonathan Druart
on 2014-03-03 13:38:30 UTC
(
hide
)
Description:
Bug 11868: MTT: disable sms and phone if not in use
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-03-03 13:38:30 UTC
Size:
4.37 KB
patch
obsolete
>From 43d9000877665008fdba0d6a65b3dabba781a576 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 27 Feb 2014 14:30:50 +0100 >Subject: [PATCH] Bug 11868: MTT: disable sms and phone if not in use > >On both pages "Notices and slips" and "Overdue rules", it would be great >to disable sms and phone if there are not in use. > >Test plan: >1/ Edit a notice >2/ Enable/disable the SMSSendDriver pref and verify the sms block is >enabled/disabled. >3/ Enable/disable the TalkingTechItivaPhoneNotification pref and verify >the phone block is enabled/disabled. > >4/ Go on tools/overdues.pl >5/ Enable/disable the SMSSendDriver pref and verify the sms checkboxes >are enabled/disabled. >6/ Enable/disable the TalkingTechItivaPhoneNotification pref and verify >the phone checkboxes are enabled/disabled. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 11 ++++++++++- > .../intranet-tmpl/prog/en/modules/tools/overduerules.tt | 9 ++++++++- > 2 files changed, 18 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index 92c3421..7aea3f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -1,3 +1,4 @@ >+[% USE Koha %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › Notices[% IF ( add_form ) %][% IF ( modify ) %] › Modify notice[% ELSE %] › Add notice[% END %][% END %][% IF ( add_validate ) %] › Notice added[% END %][% IF ( delete_confirm ) %] › Confirm deletion[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -291,7 +292,15 @@ $(document).ready(function() { > > [% FOREACH letter IN letters %] > <li> >- <fieldset class="rows mtt" id="[% letter.message_transport_type %]"> >+ [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] >+ <fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled"> >+ <div class="dialog message">You should enable the SMSSendDriver preference to use the sms templates.</div> >+ [% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] >+ <fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled"> >+ <div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div> >+ [% ELSE %] >+ <fieldset class="rows mtt" id="[% letter.message_transport_type %]"> >+ [% END %] > <legend> > [% SWITCH letter.message_transport_type %] > [% CASE 'email' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >index dd90499..a751e14 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >@@ -1,3 +1,4 @@ >+[% USE Koha %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › Notice triggers</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -146,7 +147,13 @@ $(document).ready(function() { > [% IF mtt.selected %] > <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" checked="checked" /> > [% ELSE %] >- <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" /> >+ [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %] >+ <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" /> >+ [% ELSIF mtt.value == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] >+ <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" /> >+ [% ELSE %] >+ <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" /> >+ [% END %] > [% END %] > </td> > [% END %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11868
:
25701
|
25763
|
25764
|
27289