mirror of
https://github.com/rls-moe/nyx
synced 2024-11-14 22:12:24 +00:00
77 lines
2.3 KiB
HTML
77 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.Config.Site.Title}} Admin Panel</title>
|
|
<link rel="stylesheet" href="/@/style.css">
|
|
<link rel="stylesheet" href="/@/custom.css">
|
|
<link rel="stylesheet" href="/@/admin.css">
|
|
</head>
|
|
<body>
|
|
<div class="welcome">
|
|
Welcome {{.Admin.Id}}<br>
|
|
<form class="form logout" method="POST" action="/admin/logout.sh">
|
|
<input
|
|
type="hidden"
|
|
name="csrf_token"
|
|
value="{{ .CSRFToken }}" />
|
|
<input type="submit" value="Logout" />
|
|
</form>
|
|
</div>
|
|
<div class="panel boardmgr">
|
|
<form method="POST" action="/admin/new_board.sh">
|
|
<input
|
|
type="hidden"
|
|
name="csrf_token"
|
|
value="{{ .CSRFToken }}" />
|
|
<input type="text" placeholder="shortname" name="shortname"/>
|
|
<input type="text" placeholder="longname" name="longname"/>
|
|
<input type="submit" value="Create Board" />
|
|
<input type="reset" value="Reset" />
|
|
</form>
|
|
</div>
|
|
<div class="postarea">
|
|
<form id="postform1" action="/admin/new_admin.sh" method="POST">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class="postblock">
|
|
Action
|
|
</td>
|
|
<td>
|
|
New Administrator
|
|
<input
|
|
type="hidden"
|
|
name="csrf_token"
|
|
value="{{ .CSRFToken }}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="postblock">
|
|
ID
|
|
</td>
|
|
<td>
|
|
<input type="text"
|
|
minlength="8"
|
|
name="id" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="postblock">
|
|
Password
|
|
</td>
|
|
<td>
|
|
<input type="password"
|
|
minlength="12"
|
|
maxlength="255"
|
|
name="id" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<br clear="left" /><hr />
|
|
</body>
|
|
</html> |