fixing import/create
parent
31002694c9
commit
b0ca32fdab
@ -1,15 +1,26 @@
|
||||
<div id="create_wallet">
|
||||
<p>Seed: <span class="key">{{ seed }}</span></p>
|
||||
<p>Public Address: <span class="key">{{ address }}</span></p>
|
||||
<p>Public Spend Key: <span class="key">{{ psk }}</span></p>
|
||||
<p>Public View Key: <span class="key">{{ pvk }}</span></p>
|
||||
<p>Secret Spend Key: <span class="key">{{ ssk }}</span></p>
|
||||
<p>Secret View Key: <span class="key">{{ svk }}</span></p>
|
||||
<form method="post" action="{{ url_for('wallet.add') }}" hx-confirm="Please confirm">
|
||||
<form hx-target="#show_wallets" hx-post="{{ url_for('wallet.add') }}" action="#" hx-confirm="hope you saved the seed">
|
||||
<label for="label">Label</label>
|
||||
<input type="text" name="label" />
|
||||
<p>Seed: <span class="key">{{ seed }}</span></p>
|
||||
<p>Public Address: <span class="key">{{ address }}</span></p>
|
||||
<p>Public Spend Key: <span class="key">{{ psk }}</span></p>
|
||||
<p>Public View Key: <span class="key">{{ pvk }}</span></p>
|
||||
<p>Secret Spend Key: <span class="key">{{ ssk }}</span></p>
|
||||
<p>Secret View Key: <span class="key">{{ svk }}</span></p>
|
||||
<input type="text" name="address" value="{{ address }}" class="hidden" />
|
||||
<input type="text" name="view_key" value="{{ svk }}" class="hidden" />
|
||||
<input type="number" name="restore_height" value="-1" class="hidden" />
|
||||
<button onclick="document.getElementById('create_wallet').innerHTML = ''">Cancel</button>
|
||||
<button type="submit" >Create</button>
|
||||
<button onsubmit="cancelCreate()" type="submit">Create</button>
|
||||
<button onclick="cancelCreate()">Cancel</button>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
function cancelCreate() {
|
||||
document.getElementById("create_wallet").innerHTML = "";
|
||||
}
|
||||
|
||||
document.getElementById("create_wallet").addEventListener("submit", function() {
|
||||
cancelCreate();
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
|
@ -1,11 +1,22 @@
|
||||
<form hx-post="{{ url_for('wallet.add') }}" id="import_wallet">
|
||||
<label for="label">Label</label>
|
||||
<input type="text" name="label" />
|
||||
<label for="seed">Mnemonic Seed</label>
|
||||
<p class="subtext">12, 13, or 25 word seeds</p>
|
||||
<input type="password" name="seed" />
|
||||
<label for="restore_height">Restore Height</label>
|
||||
<input type="number" name="restore_height" />
|
||||
<button onclick="document.getElementById('import_wallet').innerHTML = ''">Cancel</button>
|
||||
<button type="submit">Import</button>
|
||||
</form>
|
||||
<div id="import_wallet">
|
||||
<form hx-target="#show_wallets" hx-post="{{ url_for('wallet.add') }}" action="#" >
|
||||
<label for="label">Label</label>
|
||||
<input type="text" name="label" />
|
||||
<label for="seed">Mnemonic Seed</label>
|
||||
<p class="subtext">12, 13, or 25 word seeds</p>
|
||||
<input type="password" name="seed" />
|
||||
<label for="restore_height">Restore Height</label>
|
||||
<input type="number" name="restore_height" value="-1" />
|
||||
<button onsubmit="cancelImport()" type="submit">Import</button>
|
||||
<button onclick="cancelImport()">Cancel</button>
|
||||
</form>
|
||||
<script>
|
||||
function cancelImport() {
|
||||
document.getElementById("import_wallet").innerHTML = "";
|
||||
}
|
||||
|
||||
document.getElementById("import_wallet").addEventListener("submit", function() {
|
||||
cancelImport();
|
||||
})
|
||||
</script>
|
||||
</div>
|
Loading…
Reference in New Issue