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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-48 / +51 lines)
Lines 137-192 Link Here
137
                            [% IF ( table_loop ) %]
137
                            [% IF ( table_loop ) %]
138
                                <form name="items">
138
                                <form name="items">
139
                                    <h2>Items in batch number [% batch_id | html %]</h2>
139
                                    <h2>Items in batch number [% batch_id | html %]</h2>
140
                                    <table id="batcht">
140
141
                                        [% FOREACH table_loo IN table_loop %]
141
                                    <div class="page-section">
142
                                            [% IF ( table_loo.header_fields ) %]
142
                                        <table id="batcht">
143
                                                <thead>
143
                                            [% FOREACH table_loo IN table_loop %]
144
                                                    <tr>
144
                                                [% IF ( table_loo.header_fields ) %]
145
                                                        [% FOREACH header_field IN table_loo.header_fields %]
145
                                                    <thead>
146
                                                            [% SWITCH header_field.field_label -%]
146
                                                        <tr>
147
                                                                [% CASE "Label number" -%]
147
                                                            [% FOREACH header_field IN table_loo.header_fields %]
148
                                                                    <th>Label number</th>
148
                                                                [% SWITCH header_field.field_label -%]
149
                                                                [% CASE "Summary" -%]
149
                                                                    [% CASE "Label number" -%]
150
                                                                    <th class="anti-the">Summary</th>
150
                                                                        <th>Label number</th>
151
                                                                [% CASE "Item type" %]
151
                                                                    [% CASE "Summary" -%]
152
                                                                    <th>Item type</th>
152
                                                                        <th class="anti-the">Summary</th>
153
                                                                [% CASE "Call number" %]
153
                                                                    [% CASE "Item type" %]
154
                                                                    <th>Call number</th>
154
                                                                        <th>Item type</th>
155
                                                                [% CASE "Barcode" %]
155
                                                                    [% CASE "Call number" %]
156
                                                                    <th>Barcode</th>
156
                                                                        <th>Call number</th>
157
                                                                [% CASE "Select" -%]
157
                                                                    [% CASE "Barcode" %]
158
                                                                    <th>Select</th>
158
                                                                        <th>Barcode</th>
159
                                                                [% CASE %]
159
                                                                    [% CASE "Select" -%]
160
                                                                    <th>[% header_field.field_label | html %]</th>
160
                                                                        <th>Select</th>
161
                                                            [% END -%]
161
                                                                    [% CASE %]
162
                                                        [% END %]
162
                                                                        <th>[% header_field.field_label | html %]</th>
163
                                                    </tr>
163
                                                                [% END -%]
164
                                                </thead>
164
                                                            [% END %]
165
                                                <tbody>
165
                                                        </tr>
166
                                            [% ELSE %]
166
                                                    </thead>
167
                                                    <tr>
167
                                                    <tbody>
168
                                                        [% FOREACH text_field IN table_loo.text_fields %]
168
                                                [% ELSE %]
169
                                                            [% IF ( text_field.select_field ) %]
169
                                                        <tr>
170
                                                                <td>
170
                                                            [% FOREACH text_field IN table_loo.text_fields %]
171
                                                                    <a class="btn btn-default btn-xs 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 %]"><i class="fa fa-trash"></i> Delete</a>
171
                                                                [% IF ( text_field.select_field ) %]
172
                                                                    <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id | html %]" data-label-id="[% text_field.field_value | html %]"><i class="fa fa-share-square-o"></i> Export</a>
172
                                                                    <td>
173
                                                                </td>
173
                                                                        <a class="btn btn-default btn-xs 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 %]"><i class="fa fa-trash"></i> Delete</a>
174
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
174
                                                                        <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id | html %]" data-label-id="[% text_field.field_value | html %]"><i class="fa fa-share-square-o"></i> Export</a>
175
                                                            [% ELSE %]
175
                                                                    </td>
176
                                                                <td>
176
                                                                    <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
177
                                                                    [% IF ( text_field.field_name == '_item_type_tbl' ) %]
177
                                                                [% ELSE %]
178
                                                                        [% ItemTypes.GetDescription( text_field.field_value ) | html %]
178
                                                                    <td>
179
                                                                    [% ELSE %]
179
                                                                        [% IF ( text_field.field_name == '_item_type_tbl' ) %]
180
                                                                        [% text_field.field_value | $raw %]
180
                                                                            [% ItemTypes.GetDescription( text_field.field_value ) | html %]
181
                                                                    [% END %]
181
                                                                        [% ELSE %]
182
                                                                </td>
182
                                                                            [% text_field.field_value | $raw %]
183
                                                                        [% END %]
184
                                                                    </td>
185
                                                                [% END %]
183
                                                            [% END %]
186
                                                            [% END %]
184
                                                        [% END %]
187
                                                        </tr>
185
                                                    </tr>
188
                                                [% END %]
186
                                            [% END %]
189
                                            [% END %]
187
                                        [% END %]
190
                                            </tbody>
188
                                        </tbody>
191
                                        </table>
189
                                    </table>
192
                                    </div> <!-- /.page-section -->
190
                                </form>
193
                                </form>
191
                                [% ELSE %]
194
                                [% ELSE %]
192
                                    <div class="dialog message">
195
                                    <div class="dialog message">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-42 / +44 lines)
Lines 71-121 Link Here
71
                            [% ELSIF ( label_element == 'batch' ) %]
71
                            [% ELSIF ( label_element == 'batch' ) %]
72
                            <h2>Currently available batches</h2>
72
                            <h2>Currently available batches</h2>
73
                            [% END %]
73
                            [% END %]
74
                            <table id="labels-table">
74
75
                                [% FOREACH table_loo IN table_loop %]
75
                            <div class="page-section">
76
                                    [% IF ( table_loo.header_fields ) %]
76
                                <table id="labels-table">
77
                                        <thead>
77
                                    [% FOREACH table_loo IN table_loop %]
78
                                        <tr>
78
                                        [% IF ( table_loo.header_fields ) %]
79
                                            [% FOREACH header_field IN table_loo.header_fields %]
79
                                            <thead>
80
                                                [% SWITCH header_field.field_label %]
80
                                            <tr>
81
                                                    [% CASE 'Layout ID'       %]<th>Layout ID</th>
81
                                                [% FOREACH header_field IN table_loo.header_fields %]
82
                                                    [% CASE 'Layout'          %]<th>Layout</th>
82
                                                    [% SWITCH header_field.field_label %]
83
                                                    [% CASE 'Barcode Type'    %]<th>Barcode type</th>
83
                                                        [% CASE 'Layout ID'       %]<th>Layout ID</th>
84
                                                    [% CASE 'Print Type'      %]<th>Print type</th>
84
                                                        [% CASE 'Layout'          %]<th>Layout</th>
85
                                                    [% CASE 'Template ID'     %]<th>Template ID</th>
85
                                                        [% CASE 'Barcode Type'    %]<th>Barcode type</th>
86
                                                    [% CASE 'Template Name'   %]<th>Template name</th>
86
                                                        [% CASE 'Print Type'      %]<th>Print type</th>
87
                                                    [% CASE 'Description'     %]<th>Description</th>
87
                                                        [% CASE 'Template ID'     %]<th>Template ID</th>
88
                                                    [% CASE 'Actions'         %]<th class="noExport">Actions</th>
88
                                                        [% CASE 'Template Name'   %]<th>Template name</th>
89
                                                    [% CASE 'Profile ID'      %]<th>Profile ID</th>
89
                                                        [% CASE 'Description'     %]<th>Description</th>
90
                                                    [% CASE 'Printer Name'    %]<th>Printer name</th>
90
                                                        [% CASE 'Actions'         %]<th class="noExport">Actions</th>
91
                                                    [% CASE 'Paper Bin'       %]<th>Paper bin</th>
91
                                                        [% CASE 'Profile ID'      %]<th>Profile ID</th>
92
                                                    [% CASE 'Batch ID'        %]<th>Batch ID</th>
92
                                                        [% CASE 'Printer Name'    %]<th>Printer name</th>
93
                                                    [% CASE 'Item Count'      %]<th>Item count</th>
93
                                                        [% CASE 'Paper Bin'       %]<th>Paper bin</th>
94
                                                    [% CASE 'Fields to Print' %]<th>Fields to print</th>
94
                                                        [% CASE 'Batch ID'        %]<th>Batch ID</th>
95
                                                    [% CASE                   %]<th>[% header_field.field_label | html %]</th>
95
                                                        [% CASE 'Item Count'      %]<th>Item count</th>
96
                                                        [% CASE 'Fields to Print' %]<th>Fields to print</th>
97
                                                        [% CASE                   %]<th>[% header_field.field_label | html %]</th>
98
                                                    [% END %]
99
                                                [% END %]
100
                                            </tr>
101
                                            </thead>
102
                                        [% ELSE %]
103
                                            <tr>
104
                                            [% FOREACH text_field IN table_loo.text_fields %]
105
                                                [% IF ( text_field.select_field ) %]
106
                                                    <td class="actions">
107
                                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-edit"></i> Edit</a>
108
                                                        <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element | html %]&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
109
                                                    </td>
110
                                                    [% IF label_element == 'batch' %] <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
111
                                                [% ELSIF ( text_field.field_value ) %]
112
                                                    <td>[% text_field.field_value | html %]</td>
113
                                                [% ELSE %]
114
                                                    <td>&nbsp;</td>
96
                                                [% END %]
115
                                                [% END %]
97
                                            [% END %]
116
                                            [% END %]
98
                                        </tr>
117
                                            </tr>
99
                                        </thead>
100
                                    [% ELSE %]
101
                                        <tr>
102
                                        [% FOREACH text_field IN table_loo.text_fields %]
103
                                            [% IF ( text_field.select_field ) %]
104
                                                <td class="actions">
105
                                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-edit"></i> Edit</a>
106
                                                    <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element | html %]&amp;element_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
107
                                                </td>
108
                                                [% IF label_element == 'batch' %] <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
109
                                            [% ELSIF ( text_field.field_value ) %]
110
                                                <td>[% text_field.field_value | html %]</td>
111
                                            [% ELSE %]
112
                                                <td>&nbsp;</td>
113
                                            [% END %]
114
                                        [% END %]
118
                                        [% END %]
115
                                        </tr>
116
                                    [% END %]
119
                                    [% END %]
117
                                [% END %]
120
                                </table>
118
                            </table>
121
                            </div> <!-- /.page-section -->
119
                            [% IF ( print ) %]<button type="button" class="btn btn-default" id="print">Export selected</button>[% END %]
122
                            [% IF ( print ) %]<button type="button" class="btn btn-default" id="print">Export selected</button>[% END %]
120
                            </fieldset>
123
                            </fieldset>
121
                            </form>
124
                            </form>
122
- 

Return to bug 32238