Lines 213-219
Link Here
|
213 |
[% END %] |
213 |
[% END %] |
214 |
</td> |
214 |
</td> |
215 |
<td>[% rule.rentaldiscount %]</td> |
215 |
<td>[% rule.rentaldiscount %]</td> |
216 |
<td>[% rule.note %]</td> |
216 |
<td> |
|
|
217 |
[% IF rule.note %] |
218 |
<a data-toggle="popover" title="Note" data-content="[% rule.note %]">Click to view note</a> |
219 |
[% ELSE %] [% END %] |
220 |
</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 314-320
Link Here
|
314 |
</select> |
318 |
</select> |
315 |
</td> |
319 |
</td> |
316 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
320 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
317 |
<td><input type="text" name="note" id="note" size="15" value=""></td> |
321 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></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 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 |
- |
|
|