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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (-14 / +55 lines)
Lines 54-68 Link Here
54
      [% IF ( messaging_preference.transport_sms ) %]
54
      [% IF ( messaging_preference.transport_sms ) %]
55
      [% IF ( SMSSendDriver ) %]<td>
55
      [% IF ( SMSSendDriver ) %]<td>
56
          [% IF ( messaging_form_inactive ) %]
56
          [% IF ( messaging_form_inactive ) %]
57
              [% IF ( messaging_preference.transports_sms ) %]
57
                 <input type="checkbox"
58
                 <input type="checkbox"
58
                 id="sms[% messaging_preference.message_attribute_id %]"
59
                 id="sms[% messaging_preference.message_attribute_id %]"
59
                 name="[% messaging_preference.message_attribute_id %]"
60
                 name="[% messaging_preference.message_attribute_id %]"
60
                 value="sms"   [% messaging_preference.transport_sms %] disabled="disabled" />
61
                 value="sms" checked="checked" disabled="disabled" />
62
              [% ELSE %]
63
                 <input type="checkbox"
64
                 id="sms[% messaging_preference.message_attribute_id %]"
65
                 name="[% messaging_preference.message_attribute_id %]"
66
                 value="sms" disabled="disabled" />
67
              [% END %]
61
          [% ELSE %]
68
          [% ELSE %]
69
              [% IF ( messaging_preference.transports_sms ) %]
70
                 <input type="checkbox"
71
                 id="sms[% messaging_preference.message_attribute_id %]"
72
                 name="[% messaging_preference.message_attribute_id %]"
73
                 value="sms" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
74
              [% ELSE %]
62
                 <input type="checkbox"
75
                 <input type="checkbox"
63
                 id="sms[% messaging_preference.message_attribute_id %]"
76
                 id="sms[% messaging_preference.message_attribute_id %]"
64
                 name="[% messaging_preference.message_attribute_id %]"
77
                 name="[% messaging_preference.message_attribute_id %]"
65
                 value="sms"   [% messaging_preference.transport_sms %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
78
                 value="sms" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
79
              [% END %]
66
          [% END %]
80
          [% END %]
67
      </td>[% END %]
81
      </td>[% END %]
68
      [% ELSE %]
82
      [% ELSE %]
Lines 72-86 Link Here
72
      [% IF ( messaging_preference.transport_email ) %]
86
      [% IF ( messaging_preference.transport_email ) %]
73
      <td>
87
      <td>
74
          [% IF ( messaging_form_inactive ) %]
88
          [% IF ( messaging_form_inactive ) %]
89
              [% IF ( messaging_preference.transports_email ) %]
90
                <input type="checkbox"
91
                   id="email[% messaging_preference.message_attribute_id %]"
92
                   name="[% messaging_preference.message_attribute_id %]"
93
                   value="email" checked="checked" disabled="disabled" />
94
              [% ELSE %]
95
                <input type="checkbox"
96
                   id="email[% messaging_preference.message_attribute_id %]"
97
                   name="[% messaging_preference.message_attribute_id %]"
98
                   value="email" disabled="disabled" />
99
              [% END %]
100
          [% ELSE %]
101
              [% IF ( messaging_preference.transports_email ) %]
75
            <input type="checkbox"
102
            <input type="checkbox"
76
                 id="email[% messaging_preference.message_attribute_id %]"
103
                 id="email[% messaging_preference.message_attribute_id %]"
77
                 name="[% messaging_preference.message_attribute_id %]"
104
                 name="[% messaging_preference.message_attribute_id %]"
78
                 value="email"   [% messaging_preference.transport_email %] disabled="disabled" />
105
                 value="email" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
79
          [% ELSE %]
106
              [% ELSE %]
80
            <input type="checkbox"
107
            <input type="checkbox"
81
                 id="email[% messaging_preference.message_attribute_id %]"
108
                 id="email[% messaging_preference.message_attribute_id %]"
82
                 name="[% messaging_preference.message_attribute_id %]"
109
                 name="[% messaging_preference.message_attribute_id %]"
83
                 value="email"   [% messaging_preference.transport_email %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
110
                 value="email" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
111
              [% END %]
84
          [% END %]
112
          [% END %]
85
      </td>
113
      </td>
86
      [% ELSE %]
114
      [% ELSE %]
Lines 90-104 Link Here
90
      [% IF ( messaging_preference.has_digest ) %]
118
      [% IF ( messaging_preference.has_digest ) %]
91
      <td>
119
      <td>
92
          [% IF ( messaging_form_inactive ) %]
120
          [% IF ( messaging_form_inactive ) %]
93
            <input type="checkbox"
121
              [% IF ( messaging_preference.digest ) %]
94
                 id="digest[% messaging_preference.message_attribute_id %]"
122
                <input type="checkbox"
95
                 value="[% messaging_preference.message_attribute_id %]"
123
                     id="digest[% messaging_preference.message_attribute_id %]"
96
                 name="digest"   [% messaging_preference.digest %] disabled="disabled" />
124
                     value="[% messaging_preference.message_attribute_id %]"
125
                     name="digest" checked="checked" disabled="disabled" />
126
              [% ELSE %]
127
                <input type="checkbox"
128
                     id="digest[% messaging_preference.message_attribute_id %]"
129
                     value="[% messaging_preference.message_attribute_id %]"
130
                     name="digest" disabled="disabled" />
131
              [% END %]
97
          [% ELSE %]
132
          [% ELSE %]
98
            <input type="checkbox"
133
              [% IF ( messaging_preference.digest ) %]
99
                 id="digest[% messaging_preference.message_attribute_id %]"
134
                <input type="checkbox"
100
                 value="[% messaging_preference.message_attribute_id %]"
135
                     id="digest[% messaging_preference.message_attribute_id %]"
101
                 name="digest"   [% messaging_preference.digest %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
136
                     value="[% messaging_preference.message_attribute_id %]"
137
                     name="digest" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
138
              [% ELSE %]
139
                <input type="checkbox"
140
                     id="digest[% messaging_preference.message_attribute_id %]"
141
                     value="[% messaging_preference.message_attribute_id %]"
142
                     name="digest" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').attr('checked','');" />
143
              [% END %]
102
          [% END %]
144
          [% END %]
103
      </td>
145
      </td>
104
      [% ELSE %]
146
      [% ELSE %]
105
- 

Return to bug 6458