-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.html
206 lines (197 loc) · 7.4 KB
/
options.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!doctype html>
<html>
<head>
<title>Bitcoin Wallet Options</title>
<link rel="icon" href="img/bitcoin.png" />
<link type="text/css" href="css/bootstrap.css" rel="stylesheet" />
<link type="text/css" href="css/bootstrap-responsive.css" rel="stylesheet" />
<style>
div.navbar.navbar-fixed-top {
display: none;
}
body {
padding-top: 0px;
}
.hidden {
display: none;
}
input {
margin-bottom: 0px;
}
#seed_tab #seed_value {
width: 239px;
}
#seed_tab .control-group,
#seed_tab form {
margin-bottom: 0px;
}
#seed_tab .alert {
width: 224px;
padding-right: 9px;
}
#seed_tab #alert-description {
padding-bottom: 9px;
}
#seed_tab #pass_error {
color: red;
padding-left: 9px;
}
</style>
<script id="general-template" type="text/x-handlebars-template">
<form>
<fieldset>
<div class="control-group"><div class="controls">
<label for="default_fee">Transaction fee</label>
<!--<div class="input-prepend">
<span class="add-on">BTC</span>--><input type="text" name="default_fee" value="{{default_fee}}" id="default_fee" class="input-mini">
<!--</div>-->
<input type="hidden" name="was_default_fee" value="{{default_fee}}" id="was_default_fee">
</div></div>
<div class="control-group"><div class="controls">
<label for="txs_shown">Number of transactions shown</label>
<input type="text" name="txs_shown" value="{{txs_shown}}" id="txs_shown" class="input-mini">
<input type="hidden" name="was_txs_shown" value="{{txs_shown}}" id="was_txs_shown">
</div></div>
<div class="control-group"><div class="controls">
<label for="confs_required">Confirmations required</label>
<input type="text" name="confs_required" value="{{confs_required}}" id="confs_required" class="input-mini">
<input type="hidden" name="was_confs_required" value="{{confs_required}}" id="was_confs_required">
</div></div>
<div class="control-group"><div class="controls">
<label for="server_address">Server address <span id="connection_status"></span></label>
<input type="text" name="server_address" value="{{server_address}}" id="server_address" class="input">
<input type="hidden" name="was_server_address" value="{{server_address}}" id="was_server_address">
</div></div>
<div class="control-group"><div class="controls">
<label for="available_servers">Other servers (double click to select)</label>
<select multiple="multiple" id="available_servers">
{{#available_servers}}
<option>{{.}}</option>
{{/available_servers}}
</select>
</div></div>
</fieldset>
<input type="submit" name="save" value="Save" id="save" class="btn btn-primary">
<button id="revert" class="btn">Revert</button>
</form>
</script>
<script id="seed-template" type="text/x-handlebars-template">
<!-- <h3 style='padding:0;margin:0'>Seed</h3> -->
<input style='margin:0' type="text" name="seed_value" value="" readonly id="seed_value" />
<div id="is_encrypted" class="hidden alert alert-warning" style='margin-bottom: 0px'>
<div id="alert-description">
<div>Your seed is encrypted.</div>
</div>
<form>
<fieldset>
<div class="control-group"><div class="controls">
<input type="password" name="passwd" value="" id="passwd" placeholder="Password">
</div></div>
<input type="submit" name="submit" value="Decrypt" id="submit" class="btn btn-primary">
<span id="pass_error" class="hidden">wrong password</span>
</fieldset>
</form>
</div>
<div id="not_encrypted" class="hidden alert alert-warning" style='display:none'>
<b>Warning!</b>
<div id="alert-description">
Seed and private keys are being stored unencrypted. To encrypt them, enter a password:
</div>
<form>
<fieldset>
<div class="control-group"><div class="controls">
<input type="password" name="passwd" value="" id="passwd" placeholder="Password">
</div></div>
<div class="control-group"><div class="controls">
<input type="password" name="passwd_conf" value="" id="passwd_conf" placeholder="Repeat password">
</div></div>
<input type="submit" name="submit" value="Encrypt" id="submit" class="btn btn-primary">
<span id="pass_error" class="hidden">passwords must match</span>
<fieldset>
</form>
</div>
</script>
<script id="transactions-template" type="text/x-handlebars-template">
<h3>Transactions</h3>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Tx</th><th>Date</th><th>Confirmations</th><th>Amount</th><th>Balance</th>
</tr>
</thead>
<tbody>
{{#transactions}}
<tr>
<td><a href="https://blockchain.info/tx/{{hash}}" target="_blank">{{hash}}</a></td>
<td>{{datetime}}</td>
<td>{{confs}}</td>
<td>{{amount}}</td>
<td>{{balance}}</td>
</tr>
{{/transactions}}
</tbody>
</table>
</script>
<script id="accounts-template" type="text/x-handlebars-template">
<h3>Accounts</h3>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Address</th><th>Label</th><th>Type</th><th># tx</th><th>Balance</th>
</tr>
</thead>
<tbody>
{{#accounts}}
<tr>
<td>{{addr}}</td>
<td>{{label}}</td>
<td>{{type}}</td>
<td>{{len_hist}}</td>
<td>{{balance}}</td>
</tr>
{{/accounts}}
</tbody>
</table>
</script>
<script src="lib/mustache.js"></script>
<script src="options.js"></script>
</head>
<body style='padding: 10px'>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Bitcoin Wallet Options</a>
<div>
<ul class="nav">
<li>
<a href="#general" id="general" class="tabselector">General</a>
</li>
<li >
<a href="#seed" id="seed" class="tabselector">Seed</a>
</li>
<li >
<a href="#transactions" id="transactions" class="tabselector">Transactions</a>
</li>
<li >
<a href="#accounts" id="accounts" class="tabselector">Accounts</a>
</li>
<li class="divider-vertical"></li>
<li >
<a href="#about" id="about" class="tabselector">About</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="general_tab" class="container tab hidden"></div>
<div id="seed_tab" class="container tab hidden"></div>
<div id="accounts_tab" class="container tab hidden"></div>
<div id="transactions_tab" class="container tab hidden"></div>
<div id="about_tab" class="container tab hidden">
<h3>About</h3>
Bitcoin Wallet v0.1.9<br>
by Andrey Fedorov (<a href='mailto:[email protected]'>[email protected]</a>)
</div>
</body>
</html>