LP#1511742 Org unit selector typeahead
[working/Evergreen.git] / Open-ILS / src / templates / staff / share / t_org_select.tt2
1 <span>
2   <script type="text/ng-template" id="org-select-entry.html">
3     <a ng-class="{disabled : $parent.$parent.$parent.orgIsDisabled(match.label)}">
4       <span ng-bind-html="match.label | uibTypeaheadHighlight:query"></span>
5     </a>
6   </script>
7
8   <input type="text" class="form-control" ng-model="selectedName"
9     placeholder="{{label}}"
10     ng-click="handleClick($event)"
11     ng-trim="false"
12     empty-typeahead
13     typeahead-min-length="0"
14     typeahead-template-url="org-select-entry.html"
15     typeahead-editable="false"
16     typeahead-on-select="inputChanged($event)"
17     typeahead-input-formatter="formatDisplayName($event)"
18     uib-typeahead="shortName for shortName in shortNames | filter:$viewValue:compare"/>
19 </span>