Add markup for the qr code link and modal in the adress overview

pull/232/head
Ryan Arthur 7 years ago committed by Tim Mecklem
parent df1d034339
commit 1777c11fd1
  1. 4
      apps/explorer_web/assets/css/_content.scss
  2. 5
      apps/explorer_web/assets/css/app.scss
  3. 38
      apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex

@ -19,7 +19,7 @@
display: flex;
position: fixed;
width: 100%;
z-index: 10001;
z-index: 1001;
}
.container {
@ -32,7 +32,7 @@
}
@media (max-width: 768px) {
#content {
height: 100%;
}

@ -20,6 +20,11 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/grid";
@import "node_modules/bootstrap/scss/code";
@import "node_modules/bootstrap/scss/modal";
@import "node_modules/bootstrap/scss/close";
@import "node_modules/bootstrap/scss/buttons";
@import "node_modules/bootstrap/scss/forms";
@import "node_modules/bootstrap/scss/input-group";
@import "node_modules/bootstrap/scss/utilities/spacing";
@import "node_modules/bootstrap/scss/utilities/sizing";
@import "node_modules/bootstrap/scss/utilities/display";

@ -8,6 +8,17 @@
<div class="col-sm-6">
<table class="table table-font table-responsive-sm table-horizontal">
<tbody>
<tr>
<th scpoe="row">
<%= gettext "QR Code" %>
</th>
<td>
<!-- Button trigger modal -->
<button type="button" class="btn btn-link" >
<i class="fas fa-qrcode" data-toggle="modal" data-target="#qrModal"></i>
</button>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Balance" %>
@ -32,3 +43,30 @@
</div>
</div>
</section>
<!-- Modal -->
<div class="modal fade" id="qrModal" tabindex="-1" role="dialog" aria-labelledby="qrModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="qrModalLabel">QR Code</h2>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<label class="sr-only" for="inlineFormInputGroup">Address</label>
<div class="input-group mb-3">
<input type="text" readonly class="form-control" id="inlineFormInputGroup" value="<%= @address %>">
<div class="input-group-append">
<button class="btn btn-primary" data-clipboard-text="<%= @address %>">Copy</button>
</div>
</div>
<img src="http://via.placeholder.com/300x300" alt="qr_code">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save