passman/templates/views/partials/icon-picker.html

29 lines
1,019 B
HTML
Raw Normal View History

2017-08-13 20:23:23 +08:00
<div>
<div class="cell">
<credential-icon credential="credential"></credential-icon>
</div>
<div style="display: none" id="iconPicker" title="{{ 'pick.icon' | translate }}">
<div class="iconList">
2017-10-29 19:32:28 +08:00
<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>
2017-08-13 20:23:23 +08:00
</div>
</div>
<div class="iconModifier">
<input id="iconPicker-Search" class="iconSearch" type="text" placeholder="{{ 'pick.icon.search' | translate }}">
2017-10-29 19:32:28 +08:00
<!--
<div ng-repeat="(groupName, icons) in iconGroups">
<a ng-click="jumpToGroup(groupName)">{{groupName}}</a>
</div>-->
2017-08-13 20:23:23 +08:00
<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>