LP1904036 Ang Patron UI updating non-menu links
[evergreen-equinox.git] / Open-ILS / src / templates / staff / circ / curbside / t_to_be_staged_manager.tt2
1 <div>
2   <div ng-style="{visibility : refreshNeeded ? 'visible' : 'hidden'}" class="alert alert-warning">
3     [% l('Updates to the curbside appointment list are available. Please refresh.') %]
4   </div>
5   <eg-grid
6     id-field="slot_id"
7     features="-sort,-multisort,-picker,-multiselect"
8     items-provider="gridDataProvider"
9     grid-controls="gridControls"
10     dateformat="{{$root.egDateAndTimeFormat}}">
11
12     <eg-grid-menu-item handler="refresh_staging" standalone="true"
13         label="[% l('Refresh List')%]"></eg-grid-menu-item>
14
15     <eg-grid-field label="[% l('Pickup Date/Time') %]" path="slot.slot" datatype="timestamp"></eg-grid-field>
16     <eg-grid-field label="[% l('Patron') %]" path="slot.patron" compiled handlers="gridCellHandlers">
17       <a href="/eg2/staff/circ/patron/{{item.slot.patron().id()}}/holds" target="_blank">
18         {{item.slot.patron().family_name()}} / {{item.slot.patron().card().barcode()}}
19         <span class="glyphicon glyphicon-new-window"></span>
20       </a>
21       <br>
22       <span ng-show="item.slot.notes()">
23         <strong>[% l('Notes:') %]</strong> {{item.slot.notes()}}
24       </span>
25       <div class="alert alert-warning" ng-show="col.handlers.patronIsBlocked(item['slot'].patron())">
26         [% l('Patron is blocked from checkouts.') %]
27       </div>
28       <div class="alert alert-danger" ng-show="item['slot'].arrival()">
29         [% l('Patron has already arrived!') %]
30       </div>
31     </eg-grid-field>
32     <eg-grid-field label="[% l('Appointment ID') %]" path="slot.id"></eg-grid-field>
33     <eg-grid-field label="[% l('Items for Pickup') %]" path="holds" compiled>
34       <eg-curbside-holds-list holds="item.holds" bib-data="item.bib_data_by_hold" slot="item.slot"></eg-curbside-holds-list>
35     </eg-grid-field>
36     <eg-grid-field label="[% l('Staging Staff') %]" path="slot.stage_staff" handlers="gridCellHandlers" compiled>
37       {{item.slot.stage_staff().usrname()}}
38       <button class="btn btn-sm btn-default"
39         ng-show="col.handlers.canClaimStaging(item)"
40         ng-click="col.handlers.claim_staging(item)">
41         [% l('Claim') %]
42       </button>
43       <button class="btn btn-sm btn-default"
44         ng-show="col.handlers.canUnclaimStaging(item)"
45         ng-click="col.handlers.unclaim_staging(item)">
46         [% l('Release Claim') %]
47       </button>
48     </eg-grid-field>
49     <eg-grid-field label="[% l('Action') %]" handlers="gridCellHandlers" compiled>
50       <button class="btn btn-sm btn-primary"
51         ng-disabled="col.handlers.wasHandled(item['slot_id']) || col.handlers.patronIsBlocked(item['slot'].patron())"
52         ng-click="col.handlers.mark_staged(item['slot_id'])">
53         [% l('Mark As Staged And Ready') %]
54       </button>
55     </eg-grid-field>
56   </eg-grid>
57 </div>