]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/catalog/t_add_to_carousel.tt2
LP#1832897: add miscellaneous carousels functionality to staff interface
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / catalog / t_add_to_carousel.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 Carousel') %]</h4>
5 </div>
6 <div class="modal-body">
7   <div class="row">
8     <div class="col-md-4">
9       <label for="select-carousel">[% l('Name of Carousel') %]</label>
10     </div>
11     <div class="col-md-4">
12       <!-- we're taking a short-cut and indexing by the carousel's bucket -->
13       <select id="select-carousel" class="form-control" ng-model="bucket_id"
14               ng-options="carousel.bucket as carousel.name for carousel in allCarousels | orderBy:'name'">
15       </select>
16     </div>
17     <div class="col-md-4">
18       <button class="btn btn-primary" ng-class="{disabled : !bucket_id}" 
19           ng-click="add_to_carousel()">[% l('Add to Selected Carousel') %]</button>
20     </div>
21   </div>
22   </div>
23 </div>
24 <div class="modal-footer">
25   <div class="col-md-6 pull-right">
26     <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
27   </div>
28 </div>