2023-04-27 19:03:28 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2023-05-04 17:16:56 +02:00
|
|
|
|
2023-04-27 19:03:28 +02:00
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
|
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
|
|
|
<title>Add new Shortlink - go-urlsh</title>
|
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
2023-05-04 17:16:56 +02:00
|
|
|
<link rel="stylesheet" href="/admin/pico.min.css">
|
|
|
|
<link rel="stylesheet" href="/admin/custom.css">
|
2023-05-05 15:42:33 +02:00
|
|
|
<script src="/admin/main.js" defer></script>
|
2023-04-27 19:03:28 +02:00
|
|
|
|
|
|
|
</head>
|
2023-04-28 18:24:09 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<body>
|
|
|
|
<nav class="container-fluid">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/" class="contrast"><strong>go-urlsh</strong></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/">Links</a>
|
|
|
|
</li>
|
2023-06-16 14:30:27 +02:00
|
|
|
<li>
|
|
|
|
<a href="/admin/account/">Account</a>
|
|
|
|
</li>
|
2023-05-04 17:16:56 +02:00
|
|
|
<li>
|
|
|
|
<a href="/admin/apikeys/">API Keys</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="javascript: void(0)" >Users (coming soon)</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="javascript: Logout()" style="color: red;">Logout</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<main class="container" style="padding: 0">
|
2023-05-05 15:16:54 +02:00
|
|
|
<form action="javascript:HandleLinkAddSubmit();" style="margin: 0">
|
2023-05-04 17:16:56 +02:00
|
|
|
<fieldset id="form_fields">
|
|
|
|
<hgroup>
|
|
|
|
<h1>Add new shortlink</h1>
|
|
|
|
<h2><i style="color: red;">*</i> marks required fields</h2>
|
|
|
|
</hgroup>
|
|
|
|
<label for="linkname">Shortlink Name (leave empty for random)</label>
|
|
|
|
<input type="text" name="linkname" id="linkname" placeholder="shortlink">
|
2023-04-28 18:24:09 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<label for="link">Link <i style="color: red;">*</i></label>
|
2023-05-05 15:16:54 +02:00
|
|
|
<input type="text" name="link" id="link" placeholder="https://" onchange="HandleLinkFieldChange()">
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<label for="description">Description</label>
|
|
|
|
<input type="text" name="description" id="description" placeholder="">
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<div>
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<input type="submit" id="submit" value="Add" style="margin-top: 1em;">
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
<dialog id="dialog-info">
|
|
|
|
<h2 id="dialog-heading"></h2>
|
|
|
|
<p id="dialog-text"></p>
|
|
|
|
<form method="dialog">
|
|
|
|
<button>Close</button>
|
|
|
|
</form>
|
|
|
|
</dialog>
|
2023-04-27 19:03:28 +02:00
|
|
|
|
2023-05-04 17:16:56 +02:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{{template "partials/footer" .}}
|
2023-04-27 19:03:28 +02:00
|
|
|
</body>
|
2023-05-04 17:16:56 +02:00
|
|
|
|
|
|
|
</html>
|