walnut_launchpad.html/templates/widgets/share-access-multiselect.html

21 lines
946 B
HTML
Raw Permalink Normal View History

2017-10-04 22:27:36 +00:00
<div class="dropdown">
<button class="btn" ng-click="toggleSelect()" ng-disabled="disabled" ng-class="{ 'error': !valid() }">
<span class="pull-left">{{ header }}</span>
<span class="caret pull-right"></span>
</button>
<ul class="dropdown-menu">
<li class="hidden">
<input class="input-block-level" type="text" ng-model="searchText.label" autofocus="autofocus" placeholder="Filter" />
</li>
<li ng-show="multiple" class="">
<button class="btn-link btn-small" ng-click="checkAll()"><i class="icon-ok"></i> Check all</button>
<button class="btn-link btn-small" ng-click="uncheckAll()"><i class="icon-remove"></i> Uncheck all</button>
</li>
<li role="separator" class="divider"></li>
<li ng-repeat="i in items | filter:searchText">
<a ng-click="select(i); focus()">
<i ng-class="{ 'icon-ok': i.checked, 'icon-empty': !i.checked }"></i> {{ i.label }}</a>
</li>
</ul>
</div>