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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-3 / +3 lines)
Lines 401-414 $(document).ready(function() { Link Here
401
                <li>
401
                <li>
402
                  <label for="SQLfieldname_[% letter.message_transport_type %]">Message body:</label>
402
                  <label for="SQLfieldname_[% letter.message_transport_type %]">Message body:</label>
403
                  [% IF letter.message_transport_type == 'sms' %]
403
                  [% IF letter.message_transport_type == 'sms' %]
404
                    <span id="sms_counter">[% IF letter.content.length > 0 %][% letter.content.length %][% ELSE %]0[% END %]/160 characters</span>
404
                    <span id="sms_counter">[% IF letter.content && letter.content.length > 0 %][% letter.content.length %][% ELSE %]0[% END %]/160 characters</span>
405
                  [% END %]
405
                  [% END %]
406
                  <table>
406
                  <table>
407
                    <tr>
407
                    <tr>
408
                      <td>
408
                      <td>
409
                        <select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type %]" multiple="multiple" size="9">
409
                        <select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type %]" multiple="multiple" size="9">
410
                          [% FOREACH SQLfieldnam IN SQLfieldname %]
410
                          [% FOREACH SQLfieldname IN SQLfieldnames %]
411
                            <option value="[% SQLfieldnam.value %]">[% SQLfieldnam.text %]</option>
411
                            <option value="[% SQLfieldname.value %]">[% SQLfieldname.text %]</option>
412
                          [% END %]
412
                          [% END %]
413
                        </select>
413
                        </select>
414
                      </td>
414
                      </td>
(-)a/tools/letter.pl (-2 / +1 lines)
Lines 237-243 sub add_form { Link Here
237
    $template->param(
237
    $template->param(
238
        module     => $module,
238
        module     => $module,
239
        branchloop => _branchloop($branchcode),
239
        branchloop => _branchloop($branchcode),
240
        SQLfieldname => $field_selection,
240
        SQLfieldnames => $field_selection,
241
    );
241
    );
242
    return;
242
    return;
243
}
243
}
244
- 

Return to bug 14445