]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/bucket/t_rollback.tt2
LP#1689608: Batch user editing
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / bucket / t_rollback.tt2
1 <!-- edit bucket dialog -->
2 <style>
3 progress {
4   text-align: center;
5   height: 25px;
6   width: 500px;
7   margin-bottom: 10px;
8 }
9
10 progress:before {
11   content: attr(label);
12   position: relative;
13   top: 5px;
14 }
15 </style>
16
17 <form class="form-validated" novalidate ng-submit="ok(args)" name="form">
18   <div>
19     <div class="modal-header">
20       <button type="button" class="close" 
21         ng-click="cancel()" aria-hidden="true">&times;</button>
22       <h4 class="modal-title">[% l('Roll back batch edit') %]</h4>
23     </div>
24     <div class="modal-body">
25       <div class="form-group">
26         <select
27             class="form-control"
28             ng-model="revert_me"
29             required
30             ng-options="g.name() for g in revertable_fieldset_groups track by g.id()"
31         >
32           <option value="">[% l('--- Select edit to roll back ---') %]</option>
33         </select>
34       </div>
35     </div>
36     <div class="modal-footer">
37       <input type="submit" class="btn btn-primary" 
38           ng-disabled="form.$invalid" value="[% l('Roll Back Changes') %]"/>
39       <button class="btn btn-warning" ng-click="cancel()"
40           ng-class="{disabled : actionPending}">[% l('Cancel') %]</button>
41     </div>
42     <div class="modal-body" ng-show='running'>
43       <div ng-repeat="progress in states">
44         <progress label="{{progress.label}}" max="{{progress.max}}" value="{{progress.count}}">{{progress.label}}</progress>
45       </div>
46     </div>
47   </div> <!-- modal-content -->
48 </form>