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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-4 / +5 lines)
Lines 90-99 Link Here
90
                        alert(_("Please select at least one label to export."));
90
                        alert(_("Please select at least one label to export."));
91
                        return;     // no batch selected
91
                        return;     // no batch selected
92
                    }
92
                    }
93
                    return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800);
93
                    return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 400, 800);
94
                }
94
                }
95
                else if (mode == 'batch') {
95
                else if (mode == 'batch') {
96
                    return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 700, 800);
96
                    return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 400, 800);
97
                }
97
                }
98
                else {
98
                else {
99
                    // some pass-thru error trapping just in case...
99
                    // some pass-thru error trapping just in case...
Lines 118-126 Link Here
118
118
119
         $(document).ready(function() {
119
         $(document).ready(function() {
120
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
120
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
121
                "autoWidth": false,
121
                "aoColumnDefs": [
122
                "aoColumnDefs": [
122
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
123
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
123
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }
124
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
124
                ],
125
                ],
125
                "aaSorting": [[ 0, "asc" ]],
126
                "aaSorting": [[ 0, "asc" ]],
126
                "sPaginationType": "four_button"
127
                "sPaginationType": "four_button"
Lines 245-251 Link Here
245
                                                    <tr>
246
                                                    <tr>
246
                                                        [% FOREACH text_field IN table_loo.text_fields %]
247
                                                        [% FOREACH text_field IN table_loo.text_fields %]
247
                                                            [% IF ( text_field.select_field ) %]
248
                                                            [% IF ( text_field.select_field ) %]
248
                                                                <td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><icon class="fa fa-trash"></icon> Delete</a> <a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value |url %]')"><icon class="fa fa-share-square-o"></icon> Export</a></td>
249
                                                                <td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><icon class="fa fa-trash"></icon> Delete</a><a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value |url %]', 400, 800)"><icon class="fa fa-share-square-o"></icon> Export</a></td>
249
                                                                <td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
250
                                                                <td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
250
                                                            [% ELSE %]
251
                                                            [% ELSE %]
251
                                                                <td>
252
                                                                <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-1 / +1 lines)
Lines 38-44 Link Here
38
                    alert(_("Please select at least one batch to export."));
38
                    alert(_("Please select at least one batch to export."));
39
                    return;     // no batch selected
39
                    return;     // no batch selected
40
                }
40
                }
41
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 700, 800);
41
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 400, 800);
42
            };
42
            };
43
            function selected_layout(op) {
43
            function selected_layout(op) {
44
                var selected = new Array;
44
                var selected = new Array;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-3 / +4 lines)
Lines 89-98 Link Here
89
                        alert(_("Please select at least one card to export."));
89
                        alert(_("Please select at least one card to export."));
90
                        return;     // no batch selected
90
                        return;     // no batch selected
91
                    }
91
                    }
92
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800);
92
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 400, 800);
93
                }
93
                }
94
                else if (mode == 'batch') {
94
                else if (mode == 'batch') {
95
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 700, 800);
95
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 400, 800);
96
                }
96
                }
97
                else {
97
                else {
98
                    // some pass-thru error trapping just in case...
98
                    // some pass-thru error trapping just in case...
Lines 121-127 Link Here
121
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
121
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
122
                ],
122
                ],
123
                "aaSorting": [[ 0, "asc" ]],
123
                "aaSorting": [[ 0, "asc" ]],
124
                "sPaginationType": "four_button"
124
                "sPaginationType": "four_button",
125
                "autoWidth": false
125
            }));
126
            }));
126
            $("#additems").click(function(){
127
            $("#additems").click(function(){
127
                Add();
128
                Add();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-3 / +2 lines)
Lines 65-71 Link Here
65
                    alert(_("Please select at least one batch to export."));
65
                    alert(_("Please select at least one batch to export."));
66
                    return;     // no batch selected
66
                    return;     // no batch selected
67
                }
67
                }
68
                return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
68
                return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 400, 800);
69
            };
69
            };
70
            function selected_layout(op) {
70
            function selected_layout(op) {
71
                var selected = new Array;
71
                var selected = new Array;
Lines 149-155 Link Here
149
                                [% IF ( text_field.select_field ) %]
149
                                [% IF ( text_field.select_field ) %]
150
                                    <td>
150
                                    <td>
151
                                      <a class="btn btn-mini" href="/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=[% text_field.field_value %]"><icon class="fa fa-edit"></icon> Edit</a>
151
                                      <a class="btn btn-mini" href="/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=[% text_field.field_value %]"><icon class="fa fa-edit"></icon> Edit</a>
152
                                      [% IF ( print ) %]<a class="btn btn-mini" href="#" onclick="GB_showCenter('Export single batch','/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]')"><icon class="fa fa-share-square-o"></icon> Export</a>[% END %]
152
                                      [% IF ( print ) %]<a class="btn btn-mini" href="#" onclick="GB_showCenter('Export single batch','/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]', 400, 800)"><icon class="fa fa-share-square-o"></icon> Export</a>[% END %]
153
                                      <a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=[% text_field.field_value %]"><icon class="fa fa-trash"></icon> Delete</a>
153
                                      <a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=[% text_field.field_value %]"><icon class="fa fa-trash"></icon> Delete</a>
154
                                    </td>
154
                                    </td>
155
                                    [% IF ( print ) %]<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
155
                                    [% IF ( print ) %]<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
156
- 

Return to bug 15112