blob: 4848eedd62ac62fbfa916b5d63250765e7125ea8 (
plain) (
blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
{{#yield-scripts}}
<script src="/bower/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script>
<script src="/bower/jquery-serialize-object/dist/jquery.serialize-object.min.js"></script>
<script src="/bower/crypto-js/crypto-js.js"></script>
<script src="/js/bip39.min.js"></script>
<script src="/js/wallet.js"></script>
{{/yield-scripts}}
<div class="wallet" style="display: none">
<h1>Wallet Balance</h1>
<input type="hidden" id="username" name="username" value="{{user}}" />
<input type="hidden" id="email" name="email" />
<div id="keys_updated" class="alert alert-success" style="display: none">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
Wallet keys updated
</div>
<div class="well">
<b id="balance" class="lead">0</b> <b id="unit" class="lead"></b>
(<b id="fiat" class="lead">0 CAD</b>)
<div class="pull-right">
<button id="withdraw" type="button" class="btn btn-default" style="display: none" data-toggle="tooltip" data-placement="bottom" title="Withdraw">
<i class="fa fa-btc fa-lg"></i>
</button>
<button id="manage" type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Manage Keys">
<i class="fa fa-key fa-lg"></i>
</button>
<button id="backup" type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Download Backup">
<i class="fa fa-download fa-lg"></i>
</button>
</div>
</div>
<div id="keys" style="display: none">
<h3>Keys</h3>
<form>
<div class="form-group">
<label for="pubkey">Bitcoin Address or HD Wallet xpub Key:</label>
<textarea id="pubkey" name="pubkey" class="form-control" placeholder="xpub..." rows="3"></textarea>
</div>
<button id="generate" class="btn btn-primary pull-right" type="button"><i class="fa fa-bolt"></i> Generate New HD Wallet</button>
<br class="clear" />
<div class="form-group" style="display: none">
<label for="new_password">Password:</label>
<input id="new_password" name="new_password" type="password" class="form-control" />
</div>
<div class="form-group">
<label for="pubkey">Encrypted Private Key:</label>
<textarea id="privkey" name="privkey" class="form-control" placeholder="xpriv..." rows="5"></textarea>
</div>
<input class="btn btn-primary" type="button" value="Save" />
</form>
</div>
<div id="withdrawal" style="display: none">
<h3>Send Payment / Withdrawal</h3>
<div id="transaction_sent" class="alert alert-success" style="display: none">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
<p>Transaction sent!</p><br />
<button id="blockchain" class="btn btn-success">View on Blockchain</button>
</div>
<div id="invalid_keys" class="alert alert-danger" style="display: none">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
Invalid password or problem with private key
</div>
<form>
<div class="form-group has-feedback">
<div class="input-group">
<label for="amount">Amount:</label>
<input type="number" id="amount" name="amount" class="form-control" min="0" required />
<span class="input-group-btn">
<button id="currency_toggle" type="button" class="btn btn-primary"></button>
</span>
<span class="input-group-btn">
<button id="max" type="button" class="btn btn-primary">Max</button>
</span>
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group has-feedback">
<div class="input-group" style="width: 100%">
<label for="amount">To Address:</label>
<input type="text" id="recipient" name="recipient" class="form-control" data-address="true" required />
</div>
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
<div class="help-block with-errors"></div>
</div>
<div class="form-group has-feedback">
<div class="input-group" style="width: 100%">
<label for="priority">Fee Priority for Confirmation Time:</label>
<select id="priority" name="priority" class="form-control" required>
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</div>
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
</div>
<div class="form-group has-feedback">
<div class="input-group" style="width: 100%">
<label for="password">Password:</label>
<input id="password" name="password" type="password" class="form-control" data-password="true" required />
</div>
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
<div class="help-block with-errors"></div>
</div>
<input id="send" class="btn btn-primary" type="button" value="Calculate Fee and Confirm Transaction" />
</form>
</div>
</div>
<div class="dialog" style="display: none">
<div style="margin-bottom: 10px">
<label>Amount:</label> <span class="amount"></span><br />
<label>Fee:</label> <span class="fee"></span><br />
<label>To:</label> <span class="address"></span>
</div>
</div>
|