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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-1 / +2 lines)
Lines 7-12 Link Here
7
    [% INCLUDE 'datatables.inc' %]
7
    [% INCLUDE 'datatables.inc' %]
8
    <script type="text/javascript">
8
    <script type="text/javascript">
9
    //<![CDATA[
9
    //<![CDATA[
10
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
10
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
11
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
11
            $(".focus:last").select();
12
            $(".focus:last").select();
12
        }
13
        }
Lines 226-232 Link Here
226
                                                    <tr>
227
                                                    <tr>
227
                                                        [% FOREACH text_field IN table_loo.text_fields %]
228
                                                        [% FOREACH text_field IN table_loo.text_fields %]
228
                                                            [% IF ( text_field.select_field ) %]
229
                                                            [% IF ( text_field.select_field ) %]
229
                                                                <td><a class="btn btn-mini" onclick="return confirm('Are you sure you want to delete this?');" 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="icon-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="icon-share"></icon> Export</a></td>
230
                                                                <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="icon-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="icon-share"></icon> Export</a></td>
230
                                                                <td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
231
                                                                <td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
231
                                                            [% ELSE %]
232
                                                            [% ELSE %]
232
                                                                <td>
233
                                                                <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-3 / +18 lines)
Lines 4-9 Link Here
4
    [% INCLUDE 'greybox.inc' %]
4
    [% INCLUDE 'greybox.inc' %]
5
    <script type="text/javascript">
5
    <script type="text/javascript">
6
        //<![CDATA[
6
        //<![CDATA[
7
            var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
7
            function Xport() {
8
            function Xport() {
8
                batches= new Array;
9
                batches= new Array;
9
                if(document.layouts.action.length > 0) {
10
                if(document.layouts.action.length > 0) {
Lines 103-109 Link Here
103
                                        <thead>
104
                                        <thead>
104
                                        <tr>
105
                                        <tr>
105
                                            [% FOREACH header_field IN table_loo.header_fields %]
106
                                            [% FOREACH header_field IN table_loo.header_fields %]
106
                                                 <th>[% header_field.field_label %]</th>
107
                                                [% SWITCH header_field.field_label %]
108
                                                    [% CASE 'Layout ID'     %]<th>Layout ID</th>
109
                                                    [% CASE 'Layout'        %]<th>Layout</th>
110
                                                    [% CASE 'Barcode Type'  %]<th>Barcode type</th>
111
                                                    [% CASE 'Print Type'    %]<th>Print type</th>
112
                                                    [% CASE 'Template ID'   %]<th>Template ID</th>
113
                                                    [% CASE 'Template Name' %]<th>Template name</th>
114
                                                    [% CASE 'Description'   %]<th>Description</th>
115
                                                    [% CASE 'Actions'       %]<th>Actions</th>
116
                                                    [% CASE 'Profile ID'    %]<th>Profile ID</th>
117
                                                    [% CASE 'Printer Name'  %]<th>Printer name</th>
118
                                                    [% CASE 'Paper Bin'     %]<th>Paper bin</th>
119
                                                    [% CASE 'Batch ID'      %]<th>Batch ID</th>
120
                                                    [% CASE 'Item Count'    %]<th>Item count</th>
121
                                                    [% CASE                 %]<th>[% header_field.field_label %]</th>
122
                                                [% END %]
107
                                            [% END %]
123
                                            [% END %]
108
                                        </tr>
124
                                        </tr>
109
                                        </thead>
125
                                        </thead>
Lines 111-117 Link Here
111
                                        <tr>
127
                                        <tr>
112
                                        [% FOREACH text_field IN table_loo.text_fields %]
128
                                        [% FOREACH text_field IN table_loo.text_fields %]
113
                                            [% IF ( text_field.select_field ) %]
129
                                            [% IF ( text_field.select_field ) %]
114
                                                <td align="center"><a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><icon class="icon-edit"></icon> Edit</a>  <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]" onclick="return confirm('Are you sure you want to delete this?');"><icon class="icon-trash"></icon> Delete</a></td>
130
                                                <td align="center"><a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><icon class="icon-edit"></icon> Edit</a>  <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]" onclick="return confirm(MSG_CONFIRM_DELETE);"><icon class="icon-trash"></icon> Delete</a></td>
115
                                                [% IF label_element == 'batch' %] <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
131
                                                [% IF label_element == 'batch' %] <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
116
                                            [% ELSIF ( text_field.field_value ) %]
132
                                            [% ELSIF ( text_field.field_value ) %]
117
                                                <td>[% text_field.field_value %]</td>
133
                                                <td>[% text_field.field_value %]</td>
118
- 

Return to bug 14667