-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautoform-faicon.html
30 lines (29 loc) · 1.2 KB
/
autoform-faicon.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template name="afFaicon">
{{#if loadComplete}}
{{#if selected}}
<span class="float-right text-muted"><i class="fa fa-fw fa-{{selected}}"></i> {{selected}}</span>
{{/if}}
<div>
<p>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-filter"></i></span>
<input type="text" class="form-control input-sm" id="afFaIcon-filter">
</div>
</p>
<div class="af-faicon-container">
{{#each entries}}
<button class="col-xs-1 text-center btn btn-lg af-faicon-entry {{#if (isSelected this)}}
btn-primary{{else}}btn-default{{/if}}" data-icon="{{this}}">
<i class="fa fa-fw fa-2x fa-{{this}}"></i><br>
<div class="af-faicon-text text-center">{{this}}</div>
</button>
{{/each}}
</div>
</div>
{{else}}
<div><i class="fa fa-fw fa-spinner fa-pulse"></i></div>
{{/if}}
<input type="hidden" id="afFaicon-selectedIcon"
data-schema-key="{{dataSchemaKey}}"
value="{{selected}}"/>
</template>