Bug 23957: (follow-up) Disable both place hold buttons

This follow-up adds the correct markup to the second of two "Place hold"
buttons so that it is disabled when the first is disabled.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2019-12-10 13:36:19 +00:00 committed by Martin Renvoize
parent 40bae6db38
commit d43b01ba13
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -783,7 +783,7 @@
[% IF ( override_required ) %] [% IF ( override_required ) %]
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> <button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
[% ELSIF ( none_available ) %] [% ELSIF ( none_available ) %]
<button type="submit" class="btn btn-default btn-disabled">Place hold</button> <button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button>
[% ELSE %] [% ELSE %]
[% IF ( multi_hold ) %] [% IF ( multi_hold ) %]
<button type="submit" class="btn btn-default" id="multi_hold_submit">Place hold</button> <button type="submit" class="btn btn-default" id="multi_hold_submit">Place hold</button>