forked from genzstaking/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shima78
committed
Jan 9, 2023
1 parent
2156b76
commit a1db40e
Showing
6 changed files
with
242 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<templates xml:space="preserve"> | ||
<t t-name="pages.avax" owl="1"> | ||
<div class="container-lg bg-white justify-content-center align-items-center"> | ||
<div class="row justify-content-center align-items-center"> | ||
<img class="figure-img img-fluid p-3" | ||
style="width:128px;" | ||
src="./img/avax.svg" /> | ||
</div> | ||
|
||
<div class="row p-5 justify-content-center align-items-center nav-justified "> | ||
<!-- Nav tabs --> | ||
<ul class="nav nav-tabs" id="myTab" role="tablist"> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link active" id="stake-tab" data-bs-toggle="tab" | ||
data-bs-target="#stake" type="button" role="tab" aria-controls="stake" | ||
aria-selected="true" | ||
style="color:green;" | ||
> | ||
Stake | ||
</button> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link" id="unstake-tab" data-bs-toggle="tab" | ||
data-bs-target="#unstake" type="button" role="tab" aria-controls="unstake" | ||
aria-selected="false" | ||
style="color:green;" | ||
> | ||
Unstake | ||
</button> | ||
</li> | ||
</ul> | ||
|
||
<!-- Tab panes --> | ||
<div class="tab-content justify-content-center align-items-center m-5"> | ||
<div class="tab-pane active" id="stake" role="tabpanel" aria-labelledby="stake-tab"> | ||
<div class="row justify-content-center align-items-center"> | ||
<div class="card mb-5" | ||
style="width: 800px; border: none; "> | ||
<div class="card-body"> | ||
<h2 class="text-center"> | ||
<t t-if="wallet.chainId === '${mainnetChainId}'">Stake CET</t> | ||
<t t-if="wallet.chainId === '${testnetChainId}'">Stake CET TestNet</t> | ||
<t t-if="wallet.chainId !== '${mainnetChainId}' and wallet.chainId !== '${testnetChainId}'">Not Connected/Unsupported Network !!</t> | ||
</h2> | ||
<div class="p-2"> | ||
<div class="input-group justify-content-center align-items-center"> | ||
<input class="form-control" | ||
id="myInp" | ||
placeholder="Enter Cet Amount" | ||
t-model="state.value" | ||
type="number" | ||
aria-label="Example text with two button addons" /> | ||
<button class="btn btn-outline-secondary text-center" | ||
type="button"> | ||
<img class="" | ||
src="./img/avax.svg" | ||
style="width: 16px" /> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="d-flex flex-row justify-content-center align-items-center" | ||
id="actions"> | ||
<button class="btn btn-success text-white m-2" | ||
t-on-click="stakeit" | ||
t-if="wallet.chainId === '${mainnetChainId}' or wallet.chainId === '${testnetChainId}'" | ||
id="stakeBtn"> | ||
<span t-if="wallet.isConnected and wallet.chainId === '${mainnetChainId}'">Stake <t t-esc="state.value" /> CET</span> | ||
<span t-if="wallet.isConnected and wallet.chainId === '${testnetChainId}'">Stake <t t-esc="state.value" /> CET Test</span> | ||
<span t-if="state.staking"><span class="spinner-border spinner-grow spinner-grow-sm" | ||
role="status" | ||
aria-hidden="true"></span>Loading...</span> | ||
</button> | ||
<button class="btn btn-success text-white m-2" | ||
t-on-click="stakeit" | ||
t-if="wallet.chainId !== '${mainnetChainId}' and wallet.chainId !== '${testnetChainId}'" | ||
id="switch-to-cet-network"> | ||
<span>Switch Network</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tab-pane" id="unstake" role="tabpanel" aria-labelledby="unstake-tab"><div class="row justify-content-center align-items-center p-2 ml-5"> | ||
<h2 class="text-center"> | ||
<t t-if="wallet.chainId === '${mainnetChainId}'">Un-stake CET</t> | ||
<t t-if="wallet.chainId === '${testnetChainId}'">Un-stake CET Test Net</t> | ||
<t t-if="wallet.chainId !== '${mainnetChainId}' and wallet.chainId !== '${testnetChainId}'">Not Connected/Unsupported Network !!</t> | ||
</h2> | ||
<div class="card mb-3 " style="width: 700px; border: none;"> | ||
<div class="card-body "> | ||
<div id="actions" class="d-flex flex-row justify-content-center align-items-center"> | ||
<button class="btn btn-outline-success" | ||
t-on-click="unstakeit" | ||
t-if="wallet.chainId === '${mainnetChainId}' or wallet.chainId === '${testnetChainId}'" | ||
id="unstakeBtn"> | ||
<span t-if="wallet.isConnected and wallet.chainId === '${mainnetChainId}'">Un-stake CET</span> | ||
<span t-if="wallet.isConnected and wallet.chainId === '${testnetChainId}'">Un-stake CET Test</span> | ||
<span t-if="state.unstaking"><span class="spinner-border spinner-grow spinner-grow-sm" | ||
role="status" | ||
aria-hidden="true"></span>Loading...</span> | ||
</button> | ||
<button class="btn btn-success text-white m-2" | ||
t-on-click="stakeit" | ||
t-if="wallet.chainId !== '${mainnetChainId}' and wallet.chainId !== '${testnetChainId}'" | ||
id="switch-to-cet-network"> | ||
<span>Switch Network</span> | ||
</button> | ||
</div> | ||
</div> | ||
<br/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</t> | ||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters