opensmtpd-filter-sake/pwa/index.html

117 lines
4.3 KiB
HTML
Raw Normal View History

2023-07-23 15:06:57 +02:00
<!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>
2023-07-25 18:44:04 +02:00
<link rel="manifest" href="manifest.webmanifest">
2023-07-25 18:59:23 +02:00
<link rel="stylesheet" href="vendor/bulma.min.css">
2023-07-25 18:44:04 +02:00
<script src="vendor/base32.min.js" defer></script>
<script src="vendor/sha256.min.js" defer></script>
<script src="app.js" defer></script>
2023-07-23 15:06:57 +02:00
</head>
<body>
2023-07-25 19:01:38 +02:00
<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>
2023-07-25 21:46:03 +02:00
<form action="" method="get" id="form-generate-addr">
2023-07-25 19:01:38 +02:00
<label class="label" for="account-name">Account</label>
<div class="field has-addons">
<div class="control is-expanded">
<div class="select is-fullwidth">
2023-07-25 21:46:03 +02:00
<select id="account-name"></select>
2023-07-25 19:01:38 +02:00
</div>
</div>
<p class="control">
2023-07-25 23:10:32 +02:00
<a class="button is-danger js-modal-trigger" data-target="modal-del-account" id="btn-del-account">Delete</a>
</p>
<p class="control">
2023-07-25 21:46:03 +02:00
<a class="button is-primary js-modal-trigger" data-target="modal-add-account" id="btn-add-account">New</a>
2023-07-25 19:01:38 +02:00
</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>
2023-07-25 21:46:03 +02:00
<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">
2023-07-26 19:15:08 +02:00
<div class="container" id="new-account-error-msg-container"></div>
2023-07-25 21:46:03 +02:00
<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>
2023-07-25 23:10:32 +02:00
<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>
2023-07-25 23:10:32 +02:00
<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>
2023-07-23 15:06:57 +02:00
</body>
</html>