mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-18 15:07:21 -05:00
128 lines
4.3 KiB
Handlebars
128 lines
4.3 KiB
Handlebars
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
{{> head }}
|
|
<body>
|
|
{{> navbar }}
|
|
|
|
<h1>Admin panel here</h1>
|
|
<h2>register</h2>
|
|
<form action="/admin/api/v1/register" method="POST">
|
|
<input type="text" name="username">
|
|
<input type="text" name="password">
|
|
<button>submit register</button>
|
|
</form>
|
|
|
|
<h2>login</h2>
|
|
<form action="/admin/api/v1/login" method="POST">
|
|
<input type="text" name="username">
|
|
<input type="text" name="password">
|
|
<button>submit login</button>
|
|
</form>
|
|
|
|
<h2>delete admin</h2>
|
|
<form action="/admin/api/v1/removeadmin" method="POST">
|
|
<p>id</p>
|
|
<input type="text" name="id">
|
|
<button>delete admin</button>
|
|
</form>
|
|
|
|
<h2>create blog post</h2>
|
|
<form action="/admin/api/v1/newpost" method="POST">
|
|
<p>content</p>
|
|
<textarea name="content" cols="30" rows="10"></textarea>
|
|
<p>short version</p>
|
|
<textarea name="short" cols="30" rows="10"></textarea>
|
|
<p>category</p>
|
|
<input type="text" name="category">
|
|
<p>title</p>
|
|
<input type="text" name="title">
|
|
<p>author id</p>
|
|
<input type="text" name="author">
|
|
<button>create post</button>
|
|
</form>
|
|
|
|
<h2>edit blog post</h2>
|
|
<form action="/admin/api/v1/editpost" method="POST">
|
|
<p>content</p>
|
|
<textarea name="content" cols="30" rows="10"></textarea>
|
|
<p>short version</p>
|
|
<textarea name="short" cols="30" rows="10"></textarea>
|
|
<p>id</p>
|
|
<input type="text" name="id">
|
|
<p>category</p>
|
|
<input type="text" name="category">
|
|
<p>title</p>
|
|
<input type="text" name="title">
|
|
<p>author id</p>
|
|
<input type="text" name="author">
|
|
<button>edit post</button>
|
|
</form>
|
|
|
|
<h2>new author</h2>
|
|
<form action="/admin/api/v1/newauthor" method="POST">
|
|
<p>name</p>
|
|
<input type="text" name="name">
|
|
<p>description</p>
|
|
<input type="text" name="description">
|
|
<p>image link</p>
|
|
<input type="text" name="image">
|
|
<button>submit author</button>
|
|
</form>
|
|
|
|
<h2>edit author</h2>
|
|
<form action="/admin/api/v1/editauthor" method="POST">
|
|
<p>id</p>
|
|
<input type="text" name="id">
|
|
<p>name</p>
|
|
<input type="text" name="name">
|
|
<p>description</p>
|
|
<input type="text" name="description">
|
|
<p>image link</p>
|
|
<input type="text" name="image">
|
|
<button>edit author</button>
|
|
</form>
|
|
|
|
<h2>new progress entry</h2>
|
|
<form action="/admin/api/v1/newprogress" method="POST">
|
|
<p>title</p>
|
|
<input type="text" name="title">
|
|
<p>description</p>
|
|
<input type="text" name="description">
|
|
<p>state</p>
|
|
<p>0 - backend service<br>1 - no support<br>2 - partial support<br>3 - fully working</p>
|
|
<input type="text" name="state">
|
|
<button>submit progress</button>
|
|
</form>
|
|
|
|
<h2>edit progress entry</h2>
|
|
<form action="/admin/api/v1/editprogress" method="POST">
|
|
<p>id</p>
|
|
<input type="text" name="id">
|
|
<p>title</p>
|
|
<input type="text" name="title">
|
|
<p>description</p>
|
|
<input type="text" name="description">
|
|
<p>state</p>
|
|
<p>0 - backend service<br>1 - no support<br>2 - partial support<br>3 - fully working</p>
|
|
<input type="text" name="state">
|
|
<button>edit progress</button>
|
|
</form>
|
|
|
|
<br>
|
|
<a href="/admin/api/v1/listadmins">List of admin users</a>
|
|
<br>
|
|
<a href="/api/v1/listblog">List of blog posts</a>
|
|
<br>
|
|
<a href="/api/v1/listprogress">List of progress</a>
|
|
<br>
|
|
<a href="/api/v1/listauthors">List of authors</a>
|
|
<br>
|
|
<a href="/admin/api/v1/check">Check if logged in</a>
|
|
<br>
|
|
<a href="/admin/api/v1/logout">Logout</a>
|
|
|
|
{{> footer }}
|
|
</body>
|
|
</html>
|