LP#1676608: copy alert and suppression matrix
[working/Evergreen.git] / Open-ILS / src / templates / staff / share / t_copy_alert_manager_dialog.tt2
1 <!--
2   Copy alert manager dialog
3 -->
4 <div>
5   <div class="modal-header">
6     <h4 class="modal-title alert alert-info">[% l('Copy alerts') %]</h4> 
7   </div>
8   <div class="modal-body">
9     <div>
10       <div class="row" ng-repeat="alert in alerts" style="border-bottom: 1px solid grey; margin-top: 3px;">
11         <div class="col-md-2">{{alert.evt}}</div>
12         <div class="col-md-8" ng-class="{ acknowledged: isAcknowledged(alert) }">{{alert.message}}</div>
13         <div class="col-md-2">
14           <button ng-if="canBeAcknowledged(alert)"
15                   class="btn btn-xs btn-default"
16                   ng-click="alert.acked = !alert.acked" >[% l('Clear') %]</button>
17           <button ng-if="canBeRemoved(alert) && mode == 'manage'"
18                   class="btn btn-xs btn-default"
19                   ng-click="alert.acked = !alert.acked" >[% l('Remove') %]</button>
20         </div>
21       </div>
22     </div>
23     <div ng-if="mode == 'checkin' && next_statuses.length > 0">
24         <div ng-if="next_statuses.length == 1" class="row">
25             <div class="col-md-8">
26                 <b>[% l('Next copy status: ') %]</b> {{next_statuses[0].name()}}
27             </div>
28         </div>
29         <div ng-if="next_statuses.length > 1" class="row">
30           <div class="col-md-4">
31             <label for="select-next-status"><b>[% l('Next copy status') %]<b></label>
32           </div>
33           <div class="col-md-4">
34             <select id="select-next-status" class="form-control"
35                     ng-model="params.the_next_status" focus-me="true"
36                     ng-options="st.id() as st.name() for st in next_statuses">
37             </select>
38           </select>
39         </div>
40     </div>
41   </div>
42   <div class="modal-footer">
43     [% dialog_footer %]
44     <input type="submit" class="btn btn-primary" 
45       ng-click="ok()" value="[% l('OK/Continue') %]"/>
46     <button class="btn btn-warning" 
47       ng-click="cancel()">[% l('Cancel') %]</button>
48   </div>
49 </div>