mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 06:46:10 +00:00
moves network toggle buttons, popup on tx errors (#16)
This commit is contained in:
parent
f4aaa06663
commit
4281bb2d49
1 changed files with 39 additions and 12 deletions
51
index.html
51
index.html
|
@ -162,9 +162,13 @@
|
||||||
if(err == 404) {
|
if(err == 404) {
|
||||||
$('#feeTxid').addClass('validationError');
|
$('#feeTxid').addClass('validationError');
|
||||||
$('#feeTxid').val('Transaction ID not found');
|
$('#feeTxid').val('Transaction ID not found');
|
||||||
|
$('#error_modal').modal('show');
|
||||||
|
$('#error_text').text('Proposal transaction ID not found');
|
||||||
} else if (err == 400) {
|
} else if (err == 400) {
|
||||||
$('#feeTxid').addClass('validationError');
|
$('#feeTxid').addClass('validationError');
|
||||||
$('#feeTxid').val('Please paste a valid transaction ID');
|
$('#feeTxid').val('Please paste a valid transaction ID');
|
||||||
|
$('#error_modal').modal('show');
|
||||||
|
$('#error_text').text('Please paste a valid transaction ID');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -202,23 +206,34 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<div class="modal fade" id="error_modal" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
|
||||||
|
<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"><span aria-hidden="true">×</span></button>
|
||||||
|
<h4 class="modal-title" id="gridSystemModalLabel">Error</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-offset-4 col-xs-8">
|
||||||
|
<div id="error_text">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
|
</div><!-- /.modal-dialog -->
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row" id="header">
|
<div class="row" id="header">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<img src="images/dash_logo.png" alt="dash governance tools">
|
<img src="images/dash_logo.png" alt="dash governance tools">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
|
||||||
|
|
||||||
<div id="network_toggle" class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="radio" name="options" id="mainnet" autocomplete="off"> Mainnet
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="radio" name="options" id="testnet" autocomplete="off" checked> Testnet
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- Social icons commented out until we get URIs -->
|
<!-- Social icons commented out until we get URIs -->
|
||||||
|
@ -266,6 +281,18 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="step1" class="tab-pane fade in active">
|
<div id="step1" class="tab-pane fade in active">
|
||||||
<div class="proposalBlock createProposal">
|
<div class="proposalBlock createProposal">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-offset-8 col-xs-4">
|
||||||
|
<div id="network_toggle" class="btn-group" data-toggle="buttons">
|
||||||
|
<label class="btn btn-primary">
|
||||||
|
<input type="radio" name="options" id="mainnet" autocomplete="off"> Mainnet
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-primary active">
|
||||||
|
<input type="radio" name="options" id="testnet" autocomplete="off" checked> Testnet
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="row" id="createProposalHeader">
|
<div class="row" id="createProposalHeader">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue