-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectAccount.html
More file actions
22 lines (22 loc) · 926 Bytes
/
selectAccount.html
File metadata and controls
22 lines (22 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<template name="dapp_selectAccount">
<div class="dapp-select-account {{class}}">
<select name="{{#if name}}{{name}}{{else}}dapp-select-account{{/if}}" class="{{class}}">
{{#each accounts}}
<option value="{{address}}" {{selected}}>
{{#if isAccount}}🔑{{/if}} {{name}}
{{#if balance}}
- {{dapp_formatBalance balance "0,0.00 UNIT"}}
{{#if isNotSeroUnit}}
({{dapp_formatBalance balance "0,0.00 UNIT" "ether"}})
{{/if}}
{{/if}}
</option>
{{/each}}
</select>
{{#if isAddress}}
{{> dapp_identicon identity=(TemplateVar.get "value") class="dapp-small"}}
{{else}}
<i class="no-identicon icon-{{TemplateVar.get 'value'}}"></i>
{{/if}}
</div>
</template>