@@ -, +, @@ and replace with Font Awesome - Enable the AllowHoldPolicyOverride system preference. - Start the process of placing a hold for a patron on a title which would not normally be available for hold. For instance: The patron already has too many holds. - On the hold confirmation screen the "Place hold" buttons should appear with a little yellow "warning" icon. - Clicking either of the two "Place hold" buttons should trigger a confirmation dialog. Test both the "Confirm" and "Cancel" options. --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 14 +++++++++----- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 16 ++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -411,11 +411,6 @@ input { @include disabled-button; } } - - &.warning { - background: #FFF url("../img/famfamfam/silk/error.png") no-repeat 4px center; - padding: .25em .25em .25em 25px; - } } .input-warning { @@ -1792,6 +1787,15 @@ i { } } +.warning { + i { + &.fa-exclamation-triangle { + color: #FFD700; + text-shadow: 0 -1px 0 rgba( 0, 0, 0, .3); + } + } +} + .accesskey { text-decoration: underline; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -488,11 +488,11 @@
[% IF ( patron.borrowernumber ) %] [% IF ( override_required ) %] - + [% ELSIF ( none_available ) %] - + [% ELSE %] - + [% END %] [% END %]
@@ -771,14 +771,14 @@
[% IF ( patron AND patron.borrowernumber ) %] [% IF ( override_required ) %] - + [% ELSIF ( none_available ) %] - + [% ELSE %] [% IF ( multi_hold ) %] - + [% ELSE %] - + [% END %] [% END %] [% END # /IF patron %] @@ -1162,7 +1162,7 @@ return confirm(msg); }); - $("input.warning").click(function() { + $("button.warning").click(function() { return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") ); }); $("#requestany").click(function() { --