]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/cat/bucket/copy/t_apply_tags.tt2
64a689186cf9e160cad1d3aebcc53befbaaefaff
[Evergreen.git] / Open-ILS / src / templates / staff / cat / bucket / copy / t_apply_tags.tt2
1 <form ng-submit="ok(note)" role="form">
2     <div class="modal-header">
3       <button type="button" class="close" ng-click="cancel()" 
4         aria-hidden="true">&times;</button>
5       <h4 class="modal-title">[% l('Apply Copy Tags') %]</h4>
6     </div>
7     <div class="modal-body">
8       <ul>
9         <li ng-repeat="map in tag_map" ng-show="!map.isdeleted()">
10             <span class="copy_tag_label">{{map.tag().label()}}</span>
11             <button type="button" ng-click="map.isdeleted(1)" class="btn btn-xs btn-warning">[% l('Remove') %]</button>
12         </li>
13       </ul>
14       <div class="row">
15         <div class="col-md-12 form-inline">
16           <div class="form-group">
17             <label for="tagType">[% l('Tag Type') %]</label>
18             <select class="form-control" name="tagType" ng-model="tag_type"
19                     ng-options="t.code() as t.label() for t in tag_types"></select>
20           </div>
21           <div class="form-group">
22             <label for="tagLabel">[% l('Tag') %]</label>
23             <input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
24                 uib-typeahead="tag for tag in getTags($viewValue)" typeahead-editable="false"
25                 class="form-control" autocomplete="off"></input>
26           </div>
27           <button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
28         </div>
29       </div>
30     </div>
31     <div class="modal-footer">
32       <div class="row">
33         <div class="col-md-12 pull-right">
34           <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
35           <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
36         </div>
37       </div>
38     </div>
39 </form>