74 lines
2.1 KiB
HTML
74 lines
2.1 KiB
HTML
<!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/pico.colors.min.css">
|
|
<link rel="stylesheet" href="/admin/custom.css">
|
|
<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>
|
|
<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">
|
|
<form action="javascript:HandleSubmit();" 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>
|