Bug 31633: (QA follow-up) Add data-attribute for logged-in library

The class has some advantages, but I thought it would be nice to also
have the complete set of options in data-attributes.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2022-10-01 20:33:00 +00:00 committed by Tomas Cohen Arazi
parent 67910eeb50
commit 504f418957
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -22,8 +22,8 @@
</div>
[% ELSE %]
<body id="labels_spinelabel-print" class="tools labels">
<div id="spinelabel" class="[% Branches.GetLoggedInBranchcode | html %]" data-homebranch="[% itemhomebranch | html %]" data-holdingbranch="[% itemholdingbranch | html %]">
[% content | $raw %]
<div id="spinelabel" class="[% Branches.GetLoggedInBranchcode | html %]" data-loggedinbranch="[% Branches.GetLoggedInBranchcode | html %]" data-homebranch="[% itemhomebranch | html %]" data-holdingbranch="[% itemholdingbranch | html %]">
[% content | $raw %]
</div>
<div id="print_button" class="noprint">
<button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button>