-
Notifications
You must be signed in to change notification settings - Fork 1
/
modal.html
73 lines (73 loc) · 4.28 KB
/
modal.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
<!-- All user-widget interaction happens through a global modal window -->
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
<h4 class="modal-title" id="send-btc-modal-title">
<!-- Set anchor href to submit URI -->
<!-- Set span inner text to destination address -->
Send to <a id="send-btc-address" target="_blank"></a>
</h4>
</div>
<form id="send-btc-modal-form" class="form-horizontal" role="form">
<div class="modal-body">
<p>
<!-- Transaction label form input -->
<div class="form-group">
<label class="control-label col-sm-2" for="send-btc-label">Label</label>
<span class="col-sm-9">
<input type="text" id="send-btc-label" class="form-control" name="label"
placeholder="subject" oninput="sendBTC.refreshURI(true);">
</span>
</div>
<!-- Transaction amount form input -->
<div class="form-group">
<label class="control-label col-sm-2" for="send-btc-amount">Amount</label>
<span class="col-sm-4">
<span class="input-group">
<input type="number" id="send-btc-amount" class="form-control" name="amount"
min="0" step="1e-8" oninput="sendBTC.refreshFiat();sendBTC.refreshURI(true);"
required>
<span class="input-group-addon" aria-hidden="true">
<span class="fa fa-btc"></span>
</span>
</span>
</span>
<!-- Fiat equivalent (for convenience) -->
<label class="control-label col-sm-1" for="send-btc-amount-fiat">
<span class="fa fa-exchange" aria-hidden="true" aria-label="Amount (in fiat)"
style="font-size:2em;"></span>
</label>
<span class="col-sm-4">
<span class="input-group">
<input type="number" id="send-btc-fiat-amount" class="form-control"
min="0" step="1e-2" oninput="sendBTC.refreshBTC();">
<span class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fa fa-caret-down"></span>
<span id="send-btc-modal-fiat-symbol"></span>
</button>
<!-- Update dropdown items during sendBTC.updateExchange() -->
<ul id="send-btc-modal-fiat-options" class="dropdown-menu">
<li class="disabled">No market data</li>
<li role="separator" class="divider"></li>
<li><a href="#" onclick="sendBTC.updateExchange();">
<span class="fa fa-refresh"></span> Refresh
</a></li>
</ul>
</span>
</span>
</span>
</div>
<!-- Set div inner HTML to QR code -->
<div id="send-btc-modal-qrcode" class="text-center"></div>
</p>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Open in wallet">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>