]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_hold_notify_update.tt2
LP1869898 Angular staff cat place hold from patron
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_hold_notify_update.tt2
1 <div class="modal-header">
2   <button type="button" class="close" ng-click="ok('no-update')"
3     aria-hidden="true">&times;</button>
4   <h4 class="modal-title">[% l('Update Hold Notification Info?') %]</h4>
5 </div>
6 <div class="modal-body">
7 <form name="updateHoldsForm">
8   <div class="row" ng-repeat="f in ch_fields">
9     <div class="col-md-11">
10       <span ng-switch="f.name">
11         <span ng-switch-when="phone_notify">[% l("You have set Notify by Phone to '[_1]'", '{{prettyBool(f.newval)}}') %]</span>
12         <span ng-switch-when="sms_notify">[% l("You have set Notify by SMS to '[_1]'", '{{prettyBool(f.newval)}}') %]</span>
13         <span ng-switch-when="email_notify">[% l("You have set Notify by Email to '[_1]'", '{{prettyBool(f.newval)}}') %]</span>
14         <span ng-switch-when="default_phone">[% l("You have set Default Phone Number to '[_1]'", '{{f.newval}}') %]</span>
15         <span ng-switch-when="default_sms">[% l("You have set Default SMS/Text Number to '[_1]'", '{{f.newval}}') %]</span>
16         <span ng-switch-when="default_sms_carrier_id">[% l("You have set Default SMS Carrier to '[_1]'", '{{prettyCarrier(f.newval)}}') %]</span>
17       </span>
18       <ul style="padding-left:0" ng-if="isNumberCh(f)" class="list-unstyled">
19         <li ng-repeat="(k, h) in f.groups" style="margin-left: 20px">
20           <input id="{{f.name + h[0].id}}" type="checkbox" ng-model="h.isChecked" ng-change="groupChanged(f, k)" style="position: absolute" />
21           <label ng-if="f.newval" for="{{f.name + h[0].id}}" style="padding-left: 1.5em">[% l("'[_1]' is currently used for [_2] hold(s). Update to '[_3]'?", "{{k}}", "{{f.groups[k].length}}", "{{f.newval ? f.newval : '(null)'}}") %]</label>
22           <label ng-if="!f.newval" for="{{f.name + h[0].id}}" style="padding-left: 1.5em">[% l("'[_1]' is currently used for [_2] hold(s). Remove that from the hold(s)?", "{{k}}", "{{f.groups[k].length}}") %]</label>
23         </li>
24       </ul>
25       <ul style="padding-left:0" ng-if="!isNumberCh(f)" class="list-unstyled">
26         <li style="margin-left: 20px">
27           <input id="{{f.name}}" type="checkbox" ng-model="f.isChecked" ng-change="nonGrpChanged(f)" style="position: absolute" />
28           <label ng-if="f.name.includes('sms_carrier')" for="{{f.name}}" style="padding-left: 1.5em">[% l("A carrier other than '[_1]' is currently used in [_2] hold(s). Update to '[_3]'?", "{{prettyCarrier(f.newval)}}", "{{f.affects.length}}", "{{prettyCarrier(f.newval)}}") %]</label>
29           <label ng-if="!f.name.includes('sms_carrier')" for="{{f.name}}" style="padding-left: 1.5em">[% l("[_1] hold(s) have it set to [_2]. Update to [_3]?", "{{f.affects.length}}", "{{prettyBool(f.old)}}", "{{prettyBool(f.newval)}}") %]</label>
30         </li>
31       </ul>
32     </div>
33   </div>
34 <div class="modal-footer">
35   <div class="row">
36     <div class="col-md-10 pull-right">
37       <input type="submit" class="btn btn-primary" ng-disabled="chgCt < 1" ng-click="ok()" value="[% l('Update Holds') %]"/>
38       <input type="submit" class="btn btn-warning" ng-click="ok('no-update')" value="[% l('Do Not Update Holds') %]"/>
39     </div>
40   </div>
41
42 </div>