Skip to content

Commit 8ed1555

Browse files
tmccannasandbergja
authored andcommitted
LP1897121 Make privacy waiver more prominent on patron summary bar
Moves privacy waiver section up on the summary side bar (in the AngularJS circulation interface) under the alerting notes section, and adds a little styling. Release-note: Makes privacy waiver more prominent on patron summary bar Signed-off-by: Terran McCanna <[email protected]> Signed-off-by: Jane Sandberg <[email protected]>
1 parent d15614d commit 8ed1555

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

Open-ILS/src/templates/staff/circ/patron/t_summary.tt2

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919
<div ng-if="patron().photo_url()" class="row">
2020
<div class="col-md-8 patron_photo_wrap"><img class="img-responsive img-rounded" src="{{patron().photo_url()}}" alt=""></div>
2121
</div>
22+
<div class="row panel" ng-if="patron().waiver_entries().length > 0">
23+
<div class="patron-summary-waiver">
24+
[% l('Authorized users of this account') %]
25+
</div>
26+
<div ng-repeat="waiver in patron().waiver_entries()">
27+
<div class="col-md-5">{{waiver.name()}}</div>
28+
<div class="col-md-7">
29+
<ul>
30+
<li ng-show="waiver.place_holds() == 't'">[% l('Place holds') %]</li>
31+
<li ng-show="waiver.pickup_holds() == 't'">[% l('Pick up holds') %]</li>
32+
<li ng-show="waiver.view_history() == 't'">[% l('View borrowing history') %]</li>
33+
<li ng-show="waiver.checkout_items() == 't'">[% l('Check out items') %]</li>
34+
</ul>
35+
</div>
36+
</div>
37+
</div>
2238
<div class="row"
2339
ng-class="{'patron-summary-divider' : alert_penalties().length}">
2440
<div class="col-md-5">[% l('Profile') %]</div>
@@ -177,20 +193,6 @@
177193
<div class="col-md-5">[% l('Name Keywords') %]</div>
178194
<div class="col-md-7">{{patron().name_keywords()}}</div>
179195
</div>
180-
<div class="row patron-summary-divider" ng-if="patron().waiver_entries().length > 0">
181-
[% l('Allow others to use my account') %]
182-
</div>
183-
<div class="row" ng-repeat="waiver in patron().waiver_entries()">
184-
<div class="col-md-5">{{waiver.name()}}</div>
185-
<div class="col-md-7">
186-
<ul>
187-
<li ng-show="waiver.place_holds() == 't'">[% l('Place holds') %]</li>
188-
<li ng-show="waiver.pickup_holds() == 't'">[% l('Pick up holds') %]</li>
189-
<li ng-show="waiver.view_history() == 't'">[% l('View borrowing history') %]</li>
190-
<li ng-show="waiver.checkout_items() == 't'">[% l('Check out items') %]</li>
191-
</ul>
192-
</div>
193-
</div>
194196
</div>
195197

196198
<div class="row" ng-repeat="addr in patron().addresses()">

Open-ILS/src/templates/staff/css/circ.css.tt2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
color: var(--bs-green-600);
3030
}
3131

32+
.patron-summary-waiver {
33+
background-color: var(--badge-info-bg);
34+
color: var(--badge-info-color);
35+
font-weight: bold;
36+
padding: 3px;
37+
}
38+
3239
[data-bs-theme="dark"] .patron-summary-pref-name {
3340
color: var(--bs-green-400);
3441
}

0 commit comments

Comments
 (0)