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