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

(-)a/admin/columns_settings.yml (+18 lines)
Lines 564-566 modules: Link Here
564
          columnname: serial_status
564
          columnname: serial_status
565
        -
565
        -
566
          columnname: serial_notes
566
          columnname: serial_notes
567
568
  tools:
569
    notices:
570
      lettert:
571
        -
572
          columnname: library
573
        -
574
          columnname: module
575
        -
576
          columnname: code
577
        -
578
          columnname: name
579
        -
580
          columnname: copy_notice
581
        -
582
          columnname: actions
583
          cannot_be_toggled: 1
584
          cannot_be_modified: 1
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (+6 lines)
Lines 145-150 Link Here
145
            [% PROCESS pagelist module=modules.members modulename="members" %]
145
            [% PROCESS pagelist module=modules.members modulename="members" %]
146
          </div>
146
          </div>
147
147
148
            <h3><a href="#tools">Tools</a></h3>
149
            <div id="tools">
150
                <h4>Tools tables</h4>
151
                [% PROCESS pagelist module=modules.tools modulename="tools" %]
152
            </div>
153
148
          <h3><a href="#opac">OPAC</a></h3>
154
          <h3><a href="#opac">OPAC</a></h3>
149
          <div id="opac">
155
          <div id="opac">
150
            <h4>OPAC tables</h4>
156
            <h4>OPAC tables</h4>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (+4 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE ColumnsSettings %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Notices[% IF ( add_form or copy_form ) %][% IF ( modify ) %] &rsaquo; Modify notice[% ELSE %] &rsaquo; Add notice[% END %][% END %][% IF ( add_validate or copy_validate) %] &rsaquo; Notice added[% END %][% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]</title>
8
<title>Koha &rsaquo; Tools &rsaquo; Notices[% IF ( add_form or copy_form ) %][% IF ( modify ) %] &rsaquo; Modify notice[% ELSE %] &rsaquo; Add notice[% END %][% END %][% IF ( add_validate or copy_validate) %] &rsaquo; Notice added[% END %][% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]</title>
Lines 446-451 Link Here
446
[% MACRO jsinclude BLOCK %]
447
[% MACRO jsinclude BLOCK %]
447
    [% Asset.js("js/tools-menu.js") | $raw %]
448
    [% Asset.js("js/tools-menu.js") | $raw %]
448
    [% INCLUDE 'datatables.inc' %]
449
    [% INCLUDE 'datatables.inc' %]
450
    [% INCLUDE 'columns_settings.inc' %]
449
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
451
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
450
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
452
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
451
    <script>
453
    <script>
Lines 462-467 Link Here
462
        var MSG_EMPTY_TITLE_AND_CONTENT = _("Please specify title and content for %s");
464
        var MSG_EMPTY_TITLE_AND_CONTENT = _("Please specify title and content for %s");
463
        var MSG_EMPTY_TEMPLATES = _("Please fill at least one template.");
465
        var MSG_EMPTY_TEMPLATES = _("Please fill at least one template.");
464
        var MSG_LOADING = _("Loading");
466
        var MSG_LOADING = _("Loading");
467
        var MSG_NO_NOTICE_FOUND = _("No matching notices found");
468
        var columns_settings = [% ColumnsSettings.GetColumns( 'tools', 'notices', 'lettert', 'json' ) | $raw %];
465
     </script>
469
     </script>
466
    [% Asset.js("js/letter.js") | $raw %]
470
    [% Asset.js("js/letter.js") | $raw %]
467
[% END %]
471
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/letter.js (-8 / +12 lines)
Lines 1-5 Link Here
1
/* Variables defined in letter.tt: */
1
/* Variables defined in letter.tt: */
2
/* global _ module add_form copy_form dataTablesDefaults no_op_set MSG_EMPTY_TITLE_AND_CONTENT MSG_EMPTY_TEMPLATES code MSG_CODE_EXISTS MSG_CODE_EXISTS_FOR_LIBRARY MSG_DT_LOADING_RECORDS interface theme */
2
/* global _ module add_form copy_form no_op_set MSG_EMPTY_TITLE_AND_CONTENT MSG_EMPTY_TEMPLATES code MSG_CODE_EXISTS MSG_CODE_EXISTS_FOR_LIBRARY MSG_DT_LOADING_RECORDS interface theme KohaTable columns_settings */
3
3
4
var modal_loading = "<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+ MSG_DT_LOADING_RECORDS +"</div>";
4
var modal_loading = "<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+ MSG_DT_LOADING_RECORDS +"</div>";
5
5
Lines 35-47 $(document).ready(function() { Link Here
35
        $('#toolbar').fixFloat();
35
        $('#toolbar').fixFloat();
36
    }
36
    }
37
37
38
    $("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, {
38
    var ntable = KohaTable("lettert", {
39
        "sDom": 't',
39
        "autoWidth": false,
40
        "aoColumnDefs": [
40
        "paging": false,
41
            { "bSortable": false, "bSearchable": false, 'aTargets': [ 'nosort' ] }
41
        "aaSorting": [[ 3, "asc" ]],
42
        "columnDefs": [
43
            { "bSortable": false, "aTargets": [ "nosort" ] },
44
            { "sType": "title-string", "aTargets" : [ "title-string"] }
42
        ],
45
        ],
43
        "bPaginate": false
46
        "oLanguage": {
44
    }));
47
            "sZeroRecords": MSG_NO_NOTICE_FOUND
48
        },
49
    }, columns_settings);
45
50
46
    if( no_op_set ){
51
    if( no_op_set ){
47
        $('#branch').change(function() {
52
        $('#branch').change(function() {
48
- 

Return to bug 21216