passman/templates/views/partials/icon-picker.html
fnuesse 67fbba1a84
implemented search in icon-picker
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
2018-12-15 13:05:58 +01:00

29 lines
No EOL
1,019 B
HTML

<div>
<div class="cell">
<credential-icon credential="credential"></credential-icon>
</div>
<div style="display: none" id="iconPicker" title="{{ 'pick.icon' | translate }}">
<div class="iconList">
<div ng-repeat="(groupName, icons) in iconGroups">
<h2 style="clear: both" id="{{groupName}}">{{groupName}}</h2>
<div class="icon" ng-repeat="icon in icons" ng-click="selectIcon(icon)">
<img ng-src="{{icon.url}}" height="32">
</div>
</div>
</div>
<div class="iconModifier">
<input id="iconPicker-Search" class="iconSearch" type="text" placeholder="{{ 'pick.icon.search' | translate }}">
<!--
<div ng-repeat="(groupName, icons) in iconGroups">
<a ng-click="jumpToGroup(groupName)">{{groupName}}</a>
</div>-->
<div ng-if="selectedIcon">
{{ 'selected.icon' | translate}}: <br />
<img ng-src="{{selectedIcon.url}}" height="32">
<br />
<button ng-click="useIcon()" ng-if="selectedIcon">{{ 'use.icon' | translate}}</button>
</div>
</div>
</div>
</div>