go-urlsh/views/edit_link.tmpl

77 lines
2.1 KiB
Cheetah
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Edit Shortlink - go-urlsh</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="stylesheet" href="/admin/pico.min.css">
<link rel="stylesheet" href="/admin/custom.css">
2023-05-05 15:16:54 +02:00
<script src="/admin/main.js" defer></script>
</head>
<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>
<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-06-16 12:46:08 +02:00
<form action="javascript:HandleLinkEditSubmit();" style="margin: 0">
<fieldset id="form_fields">
<hgroup>
<h1>Edit shortlink</h1>
<h2><i style="color: red;">*</i> marks required fields</h2>
</hgroup>
<label for="linkname">Shortlink Name (to change this, delete the shortlink and add it again)</label>
<input type="text" name="linkname" id="linkname" value="{{.ID}}" data-tooltip="" readonly>
<label for="link">Link <i style="color: red;">*</i></label>
<input type="text" name="link" id="link" value="{{.URL}}">
<label for="description">Description</label>
<input type="text" name="description" id="description" value="{{.Description}}">
<div>
<input type="submit" id="submit" value="Save" style="margin-top: 1em;">
</div>
</fieldset>
<dialog id="dialog-info">
<h2 id="dialog-heading"></h2>
<p id="dialog-text"></p>
<form method="dialog">
<button>Close</button>
</form>
</dialog>
</form>
</main>
{{template "partials/footer" .}}
</body>
</html>