115 lines
4.3 KiB
HTML
115 lines
4.3 KiB
HTML
<!doctype html>
|
|
<html lang="en" prefix="og: https://ogp.me/ns#">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Sub-Address KEy</title>
|
|
<link rel="manifest" href="manifest.webmanifest">
|
|
<link rel="stylesheet" href="vendor/bulma.min.css">
|
|
<script src="vendor/base32.min.js" defer></script>
|
|
<script src="vendor/sha256.min.js" defer></script>
|
|
<script src="app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<section class="section">
|
|
<div class="container">
|
|
<div class="columns is-centered">
|
|
<div class="column is-three-fifths">
|
|
<h1 class="title is-1">New email address</h1>
|
|
<form action="" method="get" id="form-generate-addr">
|
|
<label class="label" for="account-name">Account</label>
|
|
<div class="field has-addons">
|
|
<div class="control is-expanded">
|
|
<div class="select is-fullwidth">
|
|
<select id="account-name"></select>
|
|
</div>
|
|
</div>
|
|
<p class="control">
|
|
<a class="button is-danger js-modal-trigger" data-target="modal-del-account" id="btn-del-account">Delete</a>
|
|
</p>
|
|
<p class="control">
|
|
<a class="button is-primary js-modal-trigger" data-target="modal-add-account" id="btn-add-account">New</a>
|
|
</p>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label" for="sub-addr-name">Name</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="sub-addr-name" placeholder="Text input">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label" for="generated-addr">Address</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="generated-addr" disabled>
|
|
</div>
|
|
</div>
|
|
<div class="control has-text-centered">
|
|
<button class="button is-primary" id="btn-generate">Generate</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div id="modal-add-account" class="modal">
|
|
<div class="modal-background"></div>
|
|
<div class="modal-card">
|
|
<header class="modal-card-head">
|
|
<p class="modal-card-title">Add a new account</p>
|
|
<button class="delete" aria-label="close"></button>
|
|
</header>
|
|
<section class="modal-card-body">
|
|
<form action="" method="get" id="form-new-account">
|
|
<div class="field">
|
|
<label class="label" for="new-addr-local-part">Local part</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="new-addr-local-part" minlength="1">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label" for="new-addr-separator">Separator</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="new-addr-separator" value="+" minlength="1" maxlength="1">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label" for="new-addr-domain">Domain name</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="new-addr-domain" placeholder="example.org" minlength="1">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label" for="new-addr-key">Private key</label>
|
|
<div class="control">
|
|
<input class="input" type="text" id="new-addr-key" minlength="1">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<footer class="modal-card-foot buttons is-centered">
|
|
<button class="button is-success" id="btn-new-account">Add</button>
|
|
<button class="button button-close">Cancel</button>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
<div id="modal-del-account" class="modal">
|
|
<div class="modal-background"></div>
|
|
<div class="modal-card">
|
|
<header class="modal-card-head">
|
|
<p class="modal-card-title">Delete account</p>
|
|
<button class="delete" aria-label="close"></button>
|
|
</header>
|
|
<section class="modal-card-body">
|
|
<p>You are about to delete the following account:</p>
|
|
<p class="has-text-weight-semibold has-text-centered is-size-5" id="del-account-name"></p>
|
|
<p>Are you sure?</p>
|
|
</section>
|
|
<footer class="modal-card-foot buttons is-centered">
|
|
<button class="button is-danger" id="btn-del-account-confirm">Delete</button>
|
|
<button class="button button-close">Cancel</button>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|