webstaff: Add "add items to bucket" action to holdings maint
[Evergreen.git] / Open-ILS / src / templates / staff / cat / catalog / t_add_to_bucket.tt2
1 <div class="modal-header">
2   <button type="button" class="close" ng-click="cancel()"
3     aria-hidden="true">&times;</button>
4   <h4 class="modal-title">[% l('Add To Bucket') %]</h4>
5 </div>
6 <div class="modal-body">
7   <div class="row">
8     <div class="col-md-4">
9       <label for="select-bucket">[% l('Name of existing bucket') %]</label>
10     </div>
11     <div class="col-md-4">
12       <select id="select-bucket" class="form-control" ng-model="bucket_id"
13               ng-options="bucket.id() as bucket.name() for bucket in allBuckets | orderBy:bucket.name()">
14       </select>
15     </div>
16     <div class="col-md-4">
17       <button class="btn btn-primary" ng-class="{disabled : !bucket_id}" 
18           ng-click="add_to_bucket()">[% l('Add To Selected Bucket') %]</button>
19     </div>
20   </div>
21   <div class="row pad-vert">
22     <div class="col-md-4">
23       <label for="new-bucket-name">[% l('Name For New Bucket') %]</label>
24     </div>
25     <div class="col-md-4">
26         <input type="text" class="form-control" id="new-bucket-name" ng-model="newBucketName" />
27     </div>
28     <div class="col-md-4">
29       <button class="btn btn-primary" ng-class="{disabled : !newBucketName}"
30           ng-click="add_to_new_bucket()">[% l('Add To New Bucket') %]</button>
31       </div>
32   </div>
33   </div>
34 </div>
35 <div class="modal-footer">
36   <div class="col-md-6 pull-right">
37     <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
38   </div>
39 </div>