View | Details | Raw Unified | Return to bug 11868
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +10 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Notices[% IF ( add_form ) %][% IF ( modify ) %] &rsaquo; Modify notice[% ELSE %] &rsaquo; Add notice[% END %][% END %][% IF ( add_validate ) %] &rsaquo; Notice added[% END %][% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]</title>
3
<title>Koha &rsaquo; Tools &rsaquo; Notices[% IF ( add_form ) %][% IF ( modify ) %] &rsaquo; Modify notice[% ELSE %] &rsaquo; Add notice[% END %][% END %][% IF ( add_validate ) %] &rsaquo; Notice added[% END %][% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 310-316 $(document).ready(function() { Link Here
310
311
311
        [% FOREACH letter IN letters %]
312
        [% FOREACH letter IN letters %]
312
          <li>
313
          <li>
313
            <fieldset class="rows mtt" id="[% letter.message_transport_type %]">
314
            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
315
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled">
316
                <div class="dialog message">You should enable the SMSSendDriver preference to use the sms templates.</div>
317
            [% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
318
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled">
319
                <div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div>
320
            [% ELSE %]
321
              <fieldset class="rows mtt" id="[% letter.message_transport_type %]">
322
            [% END %]
314
              <legend>
323
              <legend>
315
                [% SWITCH letter.message_transport_type %]
324
                [% SWITCH letter.message_transport_type %]
316
                [% CASE 'email' %]
325
                [% CASE 'email' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt (-2 / +8 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Notice triggers</title>
3
<title>Koha &rsaquo; Tools &rsaquo; Notice triggers</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 146-152 $(document).ready(function() { Link Here
146
                  [% IF mtt.selected %]
147
                  [% IF mtt.selected %]
147
                    <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" checked="checked" />
148
                    <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" checked="checked" />
148
                  [% ELSE %]
149
                  [% ELSE %]
149
                    <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" />
150
                    [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %]
151
                      <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
152
                    [% ELSIF mtt.value == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
153
                      <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
154
                    [% ELSE %]
155
                      <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" />
156
                    [% END %]
150
                  [% END %]
157
                  [% END %]
151
                </td>
158
                </td>
152
              [% END %]
159
              [% END %]
153
- 

Return to bug 11868