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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-2 / +2 lines)
Lines 3021-3031 button, Link Here
3021
/* Bootstrap Collapse */
3021
/* Bootstrap Collapse */
3022
3022
3023
.panel {
3023
.panel {
3024
    background: #F4F8F9 none;
3024
    background: #F7F9F6 none;
3025
    box-shadow: none;
3025
    box-shadow: none;
3026
3026
3027
    &:hover {
3027
    &:hover {
3028
        background: #e3f1df none;
3028
        background: #E3F1DF none;
3029
    }
3029
    }
3030
}
3030
}
3031
3031
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-219 / +220 lines)
Lines 346-578 Link Here
346
                                    [% ELSE %]
346
                                    [% ELSE %]
347
                                        <select name="module" id="module">
347
                                        <select name="module" id="module">
348
                                    [% END %]
348
                                    [% END %]
349
                                    [% IF ( module == "acquisition" ) %]
349
                                        [% IF ( module == "acquisition" ) %]
350
                                        <option value="acquisition" selected="selected">Acquisition</option>
350
                                            <option value="acquisition" selected="selected">Acquisition</option>
351
                                    [% ELSE %]
351
                                        [% ELSE %]
352
                                        <option value="acquisition" >Acquisition</option>
352
                                            <option value="acquisition" >Acquisition</option>
353
                                    [% END %]
353
                                        [% END %]
354
                                    [% IF ( module == "catalogue" ) %]
354
                                        [% IF ( module == "catalogue" ) %]
355
                                        <option value="catalogue" selected="selected">Catalog</option>
355
                                            <option value="catalogue" selected="selected">Catalog</option>
356
                                    [% ELSE %]
356
                                        [% ELSE %]
357
                                        <option value="catalogue" >Catalog</option>
357
                                            <option value="catalogue" >Catalog</option>
358
                                    [% END %]
358
                                        [% END %]
359
                                    [% IF ( module == "circulation" ) %]
359
                                        [% IF ( module == "circulation" ) %]
360
                                        <option value="circulation" selected="selected">Circulation</option>
360
                                            <option value="circulation" selected="selected">Circulation</option>
361
                                    [% ELSE %]
361
                                        [% ELSE %]
362
                                        <option value="circulation">Circulation</option>
362
                                            <option value="circulation">Circulation</option>
363
                                    [% END %]
363
                                        [% END %]
364
                                    [% IF ( module == "orderacquisition" ) %]
364
                                        [% IF ( module == "orderacquisition" ) %]
365
                                        <option value="orderacquisition" selected="selected">Order acquisition</option>
365
                                            <option value="orderacquisition" selected="selected">Order acquisition</option>
366
                                    [% ELSE %]
366
                                        [% ELSE %]
367
                                        <option value="orderacquisition">Order acquisition</option>
367
                                            <option value="orderacquisition">Order acquisition</option>
368
                                    [% END %]
368
                                        [% END %]
369
                                    [% IF ( module == "claimacquisition" ) %]
369
                                        [% IF ( module == "claimacquisition" ) %]
370
                                        <option value="claimacquisition" selected="selected">Claim acquisition</option>
370
                                            <option value="claimacquisition" selected="selected">Claim acquisition</option>
371
                                    [% ELSE %]
371
                                        [% ELSE %]
372
                                        <option value="claimacquisition">Claim acquisition</option>
372
                                            <option value="claimacquisition">Claim acquisition</option>
373
                                    [% END %]
373
                                        [% END %]
374
                                    [% IF ( module == "claimissues" ) %]
374
                                        [% IF ( module == "claimissues" ) %]
375
                                        <option value="claimissues" selected="selected">Claim serial issue</option>
375
                                            <option value="claimissues" selected="selected">Claim serial issue</option>
376
                                    [% ELSE %]
376
                                        [% ELSE %]
377
                                        <option value="claimissues">Claim serial issue</option>
377
                                            <option value="claimissues">Claim serial issue</option>
378
                                    [% END %]
378
                                        [% END %]
379
                                    [% IF ( module == "reserves" ) %]
379
                                        [% IF ( module == "reserves" ) %]
380
                                        <option value="reserves" selected="selected">Holds</option>
380
                                            <option value="reserves" selected="selected">Holds</option>
381
                                    [% ELSE %]
381
                                        [% ELSE %]
382
                                        <option value="reserves">Holds</option>
382
                                            <option value="reserves">Holds</option>
383
                                    [% END %]
383
                                        [% END %]
384
                                    [% IF ( module == "ill" ) %]
384
                                        [% IF ( module == "ill" ) %]
385
                                      <option value="ill" selected="selected">Interlibrary loans</option>
385
                                        <option value="ill" selected="selected">Interlibrary loans</option>
386
                                    [% ELSE %]
386
                                        [% ELSE %]
387
                                      <option value="ill">Interlibrary loans</option>
387
                                        <option value="ill">Interlibrary loans</option>
388
                                    [% END %]
388
                                        [% END %]
389
                                    [% IF ( module == "members" ) %]
389
                                        [% IF ( module == "members" ) %]
390
                                        <option value="members" selected="selected">Patrons</option>
390
                                            <option value="members" selected="selected">Patrons</option>
391
                                    [% ELSE %]
391
                                        [% ELSE %]
392
                                        <option value="members">Patrons</option>
392
                                            <option value="members">Patrons</option>
393
                                    [% END %]
393
                                        [% END %]
394
                                    [% IF ( module == "serial" ) %]
394
                                        [% IF ( module == "serial" ) %]
395
                                        <option value="serial" selected="selected">Serials (new issue)</option>
395
                                            <option value="serial" selected="selected">Serials (new issue)</option>
396
                                    [% ELSE %]
396
                                        [% ELSE %]
397
                                        <option value="serial">Serials (new issue)</option>
397
                                            <option value="serial">Serials (new issue)</option>
398
                                    [% END %]
398
                                        [% END %]
399
                                    [% IF ( module == "suggestions" ) %]
399
                                        [% IF ( module == "suggestions" ) %]
400
                                        <option value="suggestions" selected="selected">Suggestions</option>
400
                                            <option value="suggestions" selected="selected">Suggestions</option>
401
                                    [% ELSE %]
401
                                        [% ELSE %]
402
                                        <option value="suggestions">Suggestions</option>
402
                                            <option value="suggestions">Suggestions</option>
403
                                    [% END %]
403
                                        [% END %]
404
                                    [% IF ( module == "pos" ) %]
404
                                        [% IF ( module == "pos" ) %]
405
                                        <option value="pos" selected="selected">Point of sale</option>
405
                                            <option value="pos" selected="selected">Point of sale</option>
406
                                        [% ELSE %]
407
                                            <option value="pos">Point of sale</option>
408
                                        [% END %]
409
                                    </select>
410
                                </li>
411
                                <li>
412
                                    [% IF adding %]
413
                                        <label for="code" class="required">Code:</label>
414
                                        <input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required"/>
415
                                        <span class="required">Required</span>
406
                                    [% ELSE %]
416
                                    [% ELSE %]
407
                                        <option value="pos">Point of sale</option>
417
                                        <span class="label">Code:</span>
418
                                        <input type="hidden" id="code" name="code" value="[% code | html %]" />
419
                                        [% code | html %]
408
                                    [% END %]
420
                                    [% END %]
409
                                </select>
421
                                </li>
410
                            </li>
411
                            <li>
412
                                [% IF adding %]
413
                                    <label for="code" class="required">Code:</label>
414
                                    <input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required"/>
415
                                    <span class="required">Required</span>
416
                                [% ELSE %]
417
                                    <span class="label">Code:</span>
418
                                    <input type="hidden" id="code" name="code" value="[% code | html %]" />
419
                                    [% code | html %]
420
                                [% END %]
421
                            </li>
422
                            <li>
423
                                <label for="name" class="required">Name:</label>
424
                                <input type="text" id="name" name="name" size="60" value="[% letter_name | html %]" required="required" />
425
                                <span class="required">Required</span>
426
                            </li>
427
                            [% IF code and preview_is_available%]
428
                                <li>
422
                                <li>
429
                                    <label for="name">Data for preview:</label>
423
                                    <label for="name" class="required">Name:</label>
430
                                    [% SWITCH code %]
424
                                    <input type="text" id="name" name="name" size="60" value="[% letter_name | html %]" required="required" />
431
                                        [% CASE 'CHECKIN' %]
425
                                    <span class="required">Required</span>
432
                                            <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode" />
433
                                        [% CASE 'CHECKOUT' %]
434
                                            <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode|borrowernumber" />
435
                                        [% CASE 'HOLD_SLIP' %]
436
                                            <input type="text" id="data_preview" name="data_preview" value="" placeholder="biblionumber|borrowernumber" />
437
                                        [% CASE %]
438
                                            Not supported yet.
439
                                    [% END %]
440
                                    </li>
441
                            [% END # /IF code %]
442
                        </ol>
443
                    </fieldset> <!-- /#add_notice -->
444
445
                    [% IF Koha.Preference('TranslateNotices') %]
446
                        <div style="clear:both"></div>
447
                        <div id="tabs">
448
                            <!-- Nav tabs -->
449
                            <ul class="nav nav-tabs" role="tablist">
450
                                <li role="presentation">
451
                                    <a href="#lang_default" aria-controls="lang_default" role="tab" data-toggle="tab">Default</a>
452
                                </li>
426
                                </li>
453
                                [% FOR language IN languages %]
427
                                [% IF code and preview_is_available%]
454
                                    [% FOR sublanguage IN language.sublanguages_loop %]
428
                                    <li>
455
                                        [% IF language.plural %]
429
                                        <label for="name">Data for preview:</label>
456
                                            <li role="presentation">
430
                                        [% SWITCH code %]
457
                                                <a href="#lang_[% sublanguage.rfc4646_subtag | uri %]" aria-controls="lang_[% sublanguage.rfc4646_subtag | uri %]" role="tab" data-toggle="tab">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a>
431
                                            [% CASE 'CHECKIN' %]
458
                                            </li>
432
                                                <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode" />
459
                                        [% ELSE %]
433
                                            [% CASE 'CHECKOUT' %]
460
                                            <li role="presentation">
434
                                                <input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode|borrowernumber" />
461
                                                <a href="#lang_[% sublanguage.rfc4646_subtag | uri %]" aria-controls="lang_[% sublanguage.rfc4646_subtag | uri %]" role="tab" data-toggle="tab">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a>
435
                                            [% CASE 'HOLD_SLIP' %]
462
                                            </li>
436
                                                <input type="text" id="data_preview" name="data_preview" value="" placeholder="biblionumber|borrowernumber" />
437
                                            [% CASE %]
438
                                                Not supported yet.
463
                                        [% END %]
439
                                        [% END %]
464
                                    [% END %]
440
                                    </li>
465
                                [% END %]
441
                                [% END # /IF code %]
466
                            </ul>
442
                            </ol>
467
                            <div class="tab-content">
443
                        </fieldset> <!-- /#add_notice -->
468
                    [% ELSE %]
469
                        <div style="clear:both"></div>
470
                    [% END # /IF TranslateNotices %]
471
444
472
                    [% FOREACH lang IN letters.keys %]
445
                        [% IF Koha.Preference('TranslateNotices') %]
473
                        <div role="tabpanel" class="tab-pane" id="lang_[% lang | html %]">
446
                            <div style="clear:both"></div>
474
                            <div class="panel-group" id="group_[% lang | html %]" role="tablist" aria-multiselectable="true">
447
                            [% WRAPPER tabs id= "tabs" %]
475
                            [% FOR mtt IN letters.$lang.templates.keys.sort %]
448
                                [% WRAPPER tabs_nav %]
476
                                [% SET letter = letters.$lang.templates.$mtt %]
449
                                    [% WRAPPER tab_item tabname= "lang_default" bt_active= 1 %] Default [% END %]
477
                                [% NEXT IF letter.message_transport_type == "itiva" && !Koha.Preference('TalkingTechItivaPhoneNotification') %]
450
                                    [% FOR language IN languages %]
478
                                [% NEXT IF letter.message_transport_type == "phone" && !Koha.Preference('PhoneNotification') %]
451
                                        [% FOR sublanguage IN language.sublanguages_loop %]
479
                                <div class="panel panel-default">
452
                                            [% IF language.plural %]
480
                                    <div class="panel-heading" role="tab" id="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
453
                                                [% WRAPPER tab_item tabname= "lang_${sublanguage.rfc4646_subtag}" %] [% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %]) [% END %]
481
                                        <h3 class="panel-title">
482
                                            <a role="button" class="collapsed" data-toggle="collapse" data-parent="#group_[% lang | html %]" href="#[% letter.message_transport_type | html %]_[% lang | html %]" aria-expanded="false" aria-controls="[% letter.message_transport_type | html %]_[% lang | html %]">
483
                                                [% SWITCH letter.message_transport_type %]
484
                                                    [% CASE 'email' %]<span>Email</span>
485
                                                    [% CASE 'print' %]<span>[% tp('Message transport type', 'Print') | html %]</span>
486
                                                    [% CASE 'sms' %]<span>SMS</span>
487
                                                    [% CASE 'feed' %]<span>Feed</span>
488
                                                    [% CASE 'itiva' %]<span>Phone (i-tiva)</span>
489
                                                    [% CASE 'phone' %]<span>Phone</span>
490
                                                    [% CASE %]<span>[% letter.message_transport_type | html %]</span>
491
                                                [% END %]
492
                                            </a>
493
                                        </h3>
494
                                    </div> <!-- /.panel-heading -->
495
                                    <div id="[% letter.message_transport_type | html %]_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
496
                                        <div class="panel-body">
497
                                            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
498
                                                <fieldset class="rows mtt" disabled="disabled">
499
                                                    <div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div>
500
                                            [% ELSE %]
454
                                            [% ELSE %]
501
                                                <fieldset class="rows mtt">
455
                                                [% WRAPPER tab_item tabname= "lang_${sublanguage.rfc4646_subtag}" %] [% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %]) [% END %]
502
                                            [% END %]
456
                                            [% END %]
503
                                                <input type="hidden" name="message_transport_type" value="[% letter.message_transport_type | html %]" />
457
                                        [% END %]
504
                                                <input type="hidden" name="lang" value="[% lang | html %]" />
458
                                    [% END %]
505
                                                <ol>
459
                                [% END # /.tabs_nav %]
506
                                                    [% IF ( letter.tt_error ) %]
507
                                                        <li class="template_toolkit_error">
508
                                                            <span class="label error">Template Toolkit error:</span>
509
                                                            [% letter.tt_error | html %]
510
                                                        </li>
511
                                                    [% END %]
512
                                                    [% IF ( letter.updated_on ) %]
513
                                                        <li>
514
                                                            <span class="label">Last updated:</span>
515
                                                            [% letter.updated_on | $KohaDates with_hours = 1 %]
516
                                                        </li>
517
                                                    [% END %]
518
                                                    <li>
519
                                                        <label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label>
520
                                                        [% IF letter.is_html %]
521
                                                            <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" />
522
                                                        [% ELSE %]
523
                                                            <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" />
524
                                                        [% END %]
525
                                                    </li>
526
                                                    <li>
527
                                                        <label for="title_[% letter.message_transport_type | html %]_[% lang | html %]">Message subject:</label><input type="text" id="title_[% letter.message_transport_type | html %]_[% lang | html %]" name="title" size="60" value="[% letter.title | html %]" />
528
                                                    </li>
529
                                                    <li>
530
                                                        <label for="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]">Message body:</label>
531
                                                        [% IF letter.message_transport_type == 'sms' %]
532
                                                            <span class="sms_counter" id="sms_counter_[% lang | html %]">
533
                                                                [% IF letter.content && letter.content.length > 0 %]
534
                                                                    [% letter.content.length | html %]
535
                                                                [% ELSE %]
536
                                                                    0
537
                                                                [% END %]/160 characters</span>
538
                                                        [% END %]
539
                                                        <table>
540
                                                            <tr>
541
                                                                <td>
542
                                                                    <select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]" multiple="multiple" size="9">
543
                                                                        [% FOREACH SQLfieldname IN SQLfieldnames %]
544
                                                                            <option value="[% SQLfieldname.value | html %]">[% SQLfieldname.text | html %]</option>
545
                                                                        [% END %]
546
                                                                    </select>
547
                                                                </td>
548
                                                                <td class="actions">
549
                                                                    <button type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button>
550
                                                                </td>
551
                                                                <td>
552
                                                                    <textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea>
553
                                                                </td>
554
                                                            </tr>
555
                                                        </table>
556
                                                    </li>
557
                                                    [% IF preview_is_available %]
558
                                                        <li>
559
                                                            <a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="Preview this notice template" data-mtt="[% letter.message_transport_type | html %]" data-lang="[% lang | html %]"><i class="fa fa-eye"></i> Preview</a>
560
                                                        </li>
561
                                                    [% END %]
562
                                                </ol>
563
                                            </fieldset> <!-- /.rows.mtt -->
564
                                        </div> <!-- /.panel-body -->
565
                                    </div> <!-- /.panel-collapse -->
566
                                </div> <!-- /.panel.panel-default -->
567
                            [% END # /FOR mtt %]
568
                        </div> <!-- /.panel-group#lang_[% lang | html %] -->
569
                    </div> <!-- /.tab-panel -->
570
                    [% END # /FOREACH lang %]
571
460
572
                    [% IF Koha.Preference('TranslateNotices') %]
461
                                [% WRAPPER tab_panels %]
573
                            </div> <!-- /.tab-content -->
462
                                    [% FOREACH lang IN letters.keys %]
574
                        </div> <!-- /#tabs -->
463
                                        [% IF( loop.first ) %]
575
                    [% END %]
464
                                            [% SET bt_active = 1 %]
465
                                        [% ELSE %]
466
                                            [% SET bt_active = 0 %]
467
                                        [% END %]
468
                                        [% WRAPPER tab_panel tabname="lang_${lang}" bt_active= bt_active %]
469
                                            [% PROCESS message_templates %]
470
                                        [% END # /WRAPPER tab_panel %]
471
                                    [% END # /FOREACH lang %]
472
                                [% END # /WRAPPER tab_panels %]
473
                            [% END # /WRAPPER tabs#tabs %]
474
                        [% ELSE %]
475
                            <div style="clear:both"></div>
476
                            [% FOREACH lang IN letters.keys %]
477
                                [% PROCESS message_templates %]
478
                            [% END # /FOREACH lang %]
479
                        [% END # /IF TranslateNotices %]
576
480
577
                        <input type="hidden" id="redirect" name="redirect" value="" />
481
                        <input type="hidden" id="redirect" name="redirect" value="" />
578
                        <input type="hidden" id="section" name="section" value="[% section | html %]" />
482
                        <input type="hidden" id="section" name="section" value="[% section | html %]" />
Lines 643-648 Link Here
643
        </div> <!-- /.row -->
547
        </div> <!-- /.row -->
644
    [% END %]
548
    [% END %]
645
549
550
[% BLOCK message_templates %]
551
    <div class="panel-group" id="group_[% lang | html %]" role="tablist" aria-multiselectable="true">
552
        [% FOR mtt IN letters.$lang.templates.keys.sort %]
553
            [% SET letter = letters.$lang.templates.$mtt %]
554
            [% NEXT IF letter.message_transport_type == "itiva" && !Koha.Preference('TalkingTechItivaPhoneNotification') %]
555
            [% NEXT IF letter.message_transport_type == "phone" && !Koha.Preference('PhoneNotification') %]
556
            <div class="panel panel-default">
557
                <div class="panel-heading" role="tab" id="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
558
                    <h3 class="panel-title">
559
                        <a role="button" class="collapsed" data-toggle="collapse" data-parent="#group_[% lang | html %]" href="#[% letter.message_transport_type | html %]_[% lang | html %]" aria-expanded="false" aria-controls="[% letter.message_transport_type | html %]_[% lang | html %]">
560
                            [% SWITCH letter.message_transport_type %]
561
                                [% CASE 'email' %]<span>Email</span>
562
                                [% CASE 'print' %]<span>[% tp('Message transport type', 'Print') | html %]</span>
563
                                [% CASE 'sms' %]<span>SMS</span>
564
                                [% CASE 'feed' %]<span>Feed</span>
565
                                [% CASE 'itiva' %]<span>Phone (i-tiva)</span>
566
                                [% CASE 'phone' %]<span>Phone</span>
567
                                [% CASE %]<span>[% letter.message_transport_type | html %]</span>
568
                            [% END %]
569
                        </a>
570
                    </h3>
571
                </div> <!-- /.panel-heading -->
572
                <div id="[% letter.message_transport_type | html %]_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
573
                    <div class="panel-body">
574
                        [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
575
                            <fieldset class="rows mtt" disabled="disabled">
576
                                <div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div>
577
                        [% ELSE %]
578
                            <fieldset class="rows mtt">
579
                        [% END %]
580
                            <input type="hidden" name="message_transport_type" value="[% letter.message_transport_type | html %]" />
581
                            <input type="hidden" name="lang" value="[% lang | html %]" />
582
                            <ol>
583
                                [% IF ( letter.tt_error ) %]
584
                                    <li class="template_toolkit_error">
585
                                        <span class="label error">Template Toolkit error:</span>
586
                                        [% letter.tt_error | html %]
587
                                    </li>
588
                                [% END %]
589
                                [% IF ( letter.updated_on ) %]
590
                                    <li>
591
                                        <span class="label">Last updated:</span>
592
                                        [% letter.updated_on | $KohaDates with_hours = 1 %]
593
                                    </li>
594
                                [% END %]
595
                                <li>
596
                                    <label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label>
597
                                    [% IF letter.is_html %]
598
                                        <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" />
599
                                    [% ELSE %]
600
                                        <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" />
601
                                    [% END %]
602
                                </li>
603
                                <li>
604
                                    <label for="title_[% letter.message_transport_type | html %]_[% lang | html %]">Message subject:</label><input type="text" id="title_[% letter.message_transport_type | html %]_[% lang | html %]" name="title" size="60" value="[% letter.title | html %]" />
605
                                </li>
606
                                <li>
607
                                    <label for="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]">Message body:</label>
608
                                    [% IF letter.message_transport_type == 'sms' %]
609
                                        <span class="sms_counter" id="sms_counter_[% lang | html %]">
610
                                            [% IF letter.content && letter.content.length > 0 %]
611
                                                [% letter.content.length | html %]
612
                                            [% ELSE %]
613
                                                0
614
                                            [% END %]/160 characters</span>
615
                                    [% END %]
616
                                    <table>
617
                                        <tr>
618
                                            <td>
619
                                                <select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]" multiple="multiple" size="9">
620
                                                    [% FOREACH SQLfieldname IN SQLfieldnames %]
621
                                                        <option value="[% SQLfieldname.value | html %]">[% SQLfieldname.text | html %]</option>
622
                                                    [% END %]
623
                                                </select>
624
                                            </td>
625
                                            <td class="actions">
626
                                                <button type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button>
627
                                            </td>
628
                                            <td>
629
                                                <textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea>
630
                                            </td>
631
                                        </tr>
632
                                    </table>
633
                                </li>
634
                                [% IF preview_is_available %]
635
                                    <li>
636
                                        <a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="Preview this notice template" data-mtt="[% letter.message_transport_type | html %]" data-lang="[% lang | html %]"><i class="fa fa-eye"></i> Preview</a>
637
                                    </li>
638
                                [% END %]
639
                            </ol>
640
                        </fieldset> <!-- /.rows.mtt -->
641
                    </div> <!-- /.panel-body -->
642
                </div> <!-- /.panel-collapse -->
643
            </div> <!-- /.panel.panel-default -->
644
        [% END # /FOR mtt %]
645
    </div> <!-- /.panel-group#lang_lang -->
646
[% END %]
647
646
[% MACRO jsinclude BLOCK %]
648
[% MACRO jsinclude BLOCK %]
647
    [% Asset.js("js/tools-menu.js") | $raw %]
649
    [% Asset.js("js/tools-menu.js") | $raw %]
648
    [% INCLUDE 'datatables.inc' %]
650
    [% INCLUDE 'datatables.inc' %]
649
- 

Return to bug 32912