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&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&label_element=[% label_element | html %]&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> </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&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&label_element=[% label_element | html %]&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> </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 |
- |
|
|