webstaff: implement add to record bucket from catalog view
[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="form-inline">
9       <div class="form-gruop">
10         <label for="select-bucket">[% l('Copy this record into which bucket?') %]</label>
11         <select id="select-bucket" class="form-control" ng-model="bucket_id"
12                 ng-options="bucket.name() for bucket in allBuckets track by bucket.id()">
13         </select>
14         <button class="btn btn-primary" ng-class="{disabled : !bucket_id}" 
15                 ng-click="add_to_bucket()">[% l('Add To Selected Bucket') %]</button>
16       </div>
17     </div>
18   </div>
19   <div class="row">
20     <div class="form-inline">
21       <div class="form-gruop">
22         <label for="new-bucket-name">[% l('Name For New Bucket') %]</label>
23         <input type="text" class="form-control" id="new-bucket-name" ng-model="newBucketName" />
24         <button class="btn btn-primary" ng-class="{disabled : !newBucketName}"
25                 ng-click="add_to_new_bucket()">[% l('Add To New Bucket') %]</button>
26       </div>
27   </div>
28   </div>
29 </div>
30 <div class="modal-footer">
31   <div class="col-md-6 pull-right">
32     <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
33   </div>
34 </div>