Lines 66-71
Link Here
|
66 |
<th>Patron category</th> |
66 |
<th>Patron category</th> |
67 |
<th>Item type</th> |
67 |
<th>Item type</th> |
68 |
<th>Actions</th> |
68 |
<th>Actions</th> |
|
|
69 |
<th>Note</th> |
69 |
<th>Current checkouts allowed</th> |
70 |
<th>Current checkouts allowed</th> |
70 |
<th>Current on-site checkouts allowed</th> |
71 |
<th>Current on-site checkouts allowed</th> |
71 |
<th>Loan period</th> |
72 |
<th>Loan period</th> |
Lines 92-98
Link Here
|
92 |
<th>Item level holds</th> |
93 |
<th>Item level holds</th> |
93 |
<th>Article requests</th> |
94 |
<th>Article requests</th> |
94 |
<th>Rental discount (%)</th> |
95 |
<th>Rental discount (%)</th> |
95 |
<th>Note</th> |
|
|
96 |
<th>Actions</th> |
96 |
<th>Actions</th> |
97 |
</tr> |
97 |
</tr> |
98 |
</thead> |
98 |
</thead> |
Lines 116-121
Link Here
|
116 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
116 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
117 |
</td> |
117 |
</td> |
118 |
|
118 |
|
|
|
119 |
<td> |
120 |
[% IF rule.note %] |
121 |
<a data-toggle="popover" title="Note" data-content="[% rule.note %]" data-placement="top" data-trigger="hover">View note</a> |
122 |
[% ELSE %] [% END %] |
123 |
</td> |
119 |
<td>[% IF ( rule.unlimited_maxissueqty ) %] |
124 |
<td>[% IF ( rule.unlimited_maxissueqty ) %] |
120 |
<span>Unlimited</span> |
125 |
<span>Unlimited</span> |
121 |
[% ELSE %] |
126 |
[% ELSE %] |
Lines 213-219
Link Here
|
213 |
[% END %] |
218 |
[% END %] |
214 |
</td> |
219 |
</td> |
215 |
<td>[% rule.rentaldiscount %]</td> |
220 |
<td>[% rule.rentaldiscount %]</td> |
216 |
<td>[% rule.note %]</td> |
|
|
217 |
<td class="actions"> |
221 |
<td class="actions"> |
218 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
222 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
219 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
223 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
Lines 243-248
Link Here
|
243 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
247 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
244 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
248 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
245 |
</td> |
249 |
</td> |
|
|
250 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
246 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
251 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
247 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
252 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
248 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
253 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
Lines 314-320
Link Here
|
314 |
</select> |
319 |
</select> |
315 |
</td> |
320 |
</td> |
316 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
321 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
317 |
<td><input type="text" name="note" id="note" size="15" value=""></td> |
|
|
318 |
<td class="actions"> |
322 |
<td class="actions"> |
319 |
<input type="hidden" name="branch" value="[% current_branch %]"/> |
323 |
<input type="hidden" name="branch" value="[% current_branch %]"/> |
320 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
324 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
Lines 326-331
Link Here
|
326 |
<th>Patron category</th> |
330 |
<th>Patron category</th> |
327 |
<th>Item type</th> |
331 |
<th>Item type</th> |
328 |
<th> </th> |
332 |
<th> </th> |
|
|
333 |
<th>Note</th> |
329 |
<th>Current checkouts allowed</th> |
334 |
<th>Current checkouts allowed</th> |
330 |
<th>Current on-site checkouts allowed</th> |
335 |
<th>Current on-site checkouts allowed</th> |
331 |
<th>Loan period</th> |
336 |
<th>Loan period</th> |
Lines 345-358
Link Here
|
345 |
<th>No renewal before</th> |
350 |
<th>No renewal before</th> |
346 |
<th>Automatic renewal</th> |
351 |
<th>Automatic renewal</th> |
347 |
<th>No automatic renewal after</th> |
352 |
<th>No automatic renewal after</th> |
348 |
<th>No automatic renewal after (hard limit)</th> |
353 |
<th>No automatic renewal after (hard limit)</th> |
349 |
<th>Holds allowed (count)</th> |
354 |
<th>Holds allowed (count)</th> |
350 |
<th>Holds per record (count)</th> |
355 |
<th>Holds per record (count)</th> |
351 |
<th>On shelf holds allowed</th> |
356 |
<th>On shelf holds allowed</th> |
352 |
<th>Item level holds</th> |
357 |
<th>Item level holds</th> |
353 |
<th>Article requests</th> |
358 |
<th>Article requests</th> |
354 |
<th>Rental discount (%)</th> |
359 |
<th>Rental discount (%)</th> |
355 |
<th>Note</th> |
|
|
356 |
<th> </th> |
360 |
<th> </th> |
357 |
</tr> |
361 |
</tr> |
358 |
</tfoot> |
362 |
</tfoot> |
Lines 767-772
Link Here
|
767 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this rule? This cannot be undone."); |
771 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this rule? This cannot be undone."); |
768 |
|
772 |
|
769 |
$(document).ready(function() { |
773 |
$(document).ready(function() { |
|
|
774 |
$('[data-toggle="popover"]').popover(); |
775 |
|
770 |
$(".delete").on("click",function(){ |
776 |
$(".delete").on("click",function(){ |
771 |
return confirmDelete(MSG_CONFIRM_DELETE); |
777 |
return confirmDelete(MSG_CONFIRM_DELETE); |
772 |
}); |
778 |
}); |
773 |
- |
|
|