Lines 2-7
Link Here
|
2 |
<title>Koha › Tools › Patron card creator › Manage patron card batches</title> |
2 |
<title>Koha › Tools › Patron card creator › Manage patron card batches</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'greybox.inc' %] |
4 |
[% INCLUDE 'greybox.inc' %] |
|
|
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
6 |
[% INCLUDE 'datatables.inc' %] |
5 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
8 |
//<![CDATA[ |
7 |
function DeleteConfirm() { |
9 |
function DeleteConfirm() { |
Lines 99-104
Link Here
|
99 |
}; |
101 |
}; |
100 |
|
102 |
|
101 |
$(document).ready(function() { |
103 |
$(document).ready(function() { |
|
|
104 |
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, { |
105 |
"aoColumnDefs": [ |
106 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false } |
107 |
], |
108 |
"aaSorting": [[ 1, "asc" ]], |
109 |
"sPaginationType": "four_button" |
110 |
})); |
102 |
$("#additems").click(function(){ |
111 |
$("#additems").click(function(){ |
103 |
Add(); |
112 |
Add(); |
104 |
return false; |
113 |
return false; |
Lines 151-197
Link Here
|
151 |
<a class="btn btn-small" id="exportbatch" href="#">Export batch</a>[% END %] |
160 |
<a class="btn btn-small" id="exportbatch" href="#">Export batch</a>[% END %] |
152 |
</div> |
161 |
</div> |
153 |
|
162 |
|
|
|
163 |
[% IF ( duplicate_message ) %] |
164 |
<div class="dialog message"> |
165 |
<strong>[% duplicate_count %] duplicate item(s) found</strong> and removed from batch [% batch_id %]. |
166 |
</div> |
167 |
[% END %] |
154 |
|
168 |
|
155 |
[% INCLUDE 'patroncards-errors.inc' %] |
169 |
[% INCLUDE 'patroncards-errors.inc' %] |
156 |
<div class="yui-g"> |
170 |
<div id="manage-patroncard-batches"> |
157 |
<div class="yui-u first" id="manage-patroncard-batches"> |
171 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
158 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
172 |
[% IF ( table_loop ) %] |
159 |
[% IF ( table_loop ) %] |
173 |
<form name="items" class="checkboxed"> |
160 |
<form name="items" class="checkboxed"> |
174 |
<h2>Items in batch number [% batch_id %]</h2> |
161 |
<h2>Items in batch number [% batch_id %]</h2> |
175 |
<table id="batcht"> |
162 |
<table> |
176 |
[% FOREACH table_loo IN table_loop %] |
163 |
[% FOREACH table_loo IN table_loop %] |
|
|
164 |
[% IF ( table_loo.header_fields ) %] |
177 |
[% IF ( table_loo.header_fields ) %] |
165 |
<tr> |
178 |
<thead> |
166 |
[% FOREACH header_field IN table_loo.header_fields %] |
179 |
<tr> |
167 |
<th>[% header_field.field_label %]</th> |
180 |
[% FOREACH header_field IN table_loo.header_fields %] |
168 |
[% END %] |
181 |
[% SWITCH header_field.field_label -%] |
169 |
</tr> |
182 |
[% CASE "Card Number" -%] |
170 |
[% ELSE %] |
183 |
<th>Card number</th> |
171 |
<tr> |
184 |
[% CASE "Summary" -%] |
172 |
[% FOREACH text_field IN table_loo.text_fields %] |
185 |
<th>Summary</th> |
173 |
[% IF ( text_field.select_field ) %] |
186 |
[% CASE "Borrower Number" %] |
174 |
<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]"></td> |
187 |
<th>Borrower number</th> |
|
|
188 |
[% CASE "Select" -%] |
189 |
<th>Select</th> |
190 |
[% CASE %] |
191 |
<th>[% header_field.field_label %]</th> |
192 |
[% END -%] |
193 |
[% END %] |
194 |
</tr> |
195 |
</thead> |
196 |
<tbody> |
175 |
[% ELSE %] |
197 |
[% ELSE %] |
176 |
<td>[% text_field.field_value %]</td> |
198 |
<tr> |
177 |
[% END %] |
199 |
[% FOREACH text_field IN table_loo.text_fields %] |
178 |
[% END %] |
200 |
[% IF ( text_field.select_field ) %] |
179 |
</tr> |
201 |
<td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> |
180 |
[% END %] |
202 |
[% ELSE %] |
|
|
203 |
<td>[% text_field.field_value %]</td> |
204 |
[% END %] |
205 |
[% END %] |
206 |
</tr> |
181 |
[% END %] |
207 |
[% END %] |
182 |
</table> |
208 |
[% END %] |
183 |
</form> |
209 |
</tbody> |
184 |
[% ELSE %] |
210 |
</table> |
185 |
<div class="dialog message"><h4>There are no items in batch [% batch_id %] yet</h4> |
211 |
</form> |
186 |
<p>Use the toolbar above to add items.</p></div> |
212 |
[% ELSE %] |
187 |
[% END %] |
|
|
188 |
</div> |
189 |
[% IF ( duplicate_message ) %] |
190 |
<div class="yui-u"> |
191 |
<div class="dialog message"> |
213 |
<div class="dialog message"> |
192 |
<strong>[% duplicate_count %] duplicate item(s) found</strong> and removed from batch [% batch_id %]. |
214 |
<h4>There are no items in batch [% batch_id %] yet</h4> |
193 |
</div> |
215 |
<p>Use the toolbar above to add items.</p></div> |
194 |
</div> |
|
|
195 |
[% END %] |
216 |
[% END %] |
196 |
</div> |
217 |
</div> |
197 |
</div> |
218 |
</div> |
Lines 200-204
Link Here
|
200 |
[% INCLUDE 'patroncards-menu.inc' %] |
221 |
[% INCLUDE 'patroncards-menu.inc' %] |
201 |
</div> |
222 |
</div> |
202 |
</div> |
223 |
</div> |
203 |
</div> |
|
|
204 |
[% INCLUDE 'intranet-bottom.inc' %] |
224 |
[% INCLUDE 'intranet-bottom.inc' %] |
205 |
- |
|
|