mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-13 12:35:57 -05:00
135 lines
6.4 KiB
Handlebars
135 lines
6.4 KiB
Handlebars
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
{{> head-common }}
|
|
</head>
|
|
<body>
|
|
{{> nav-default }}
|
|
<div class="contentWrapper bgLinesSmall">
|
|
<div class="bgExtrude"></div>
|
|
<section class="bigCardWrapper">
|
|
<div class="bigCard">
|
|
<h1 class="txt-title">login</h1>
|
|
<form action="/admin/api/v1/login" method="POST">
|
|
<input type="text" name="username">
|
|
<input type="text" name="password">
|
|
<button>submit login</button>
|
|
</form>
|
|
|
|
<div id="container">
|
|
<h1 class="txt-title">register new admin</h1>
|
|
<form action="/admin/api/v1/register" method="POST">
|
|
<input type="text" name="username">
|
|
<input type="text" name="password">
|
|
<button>submit register</button>
|
|
</form>
|
|
|
|
<h1 class="txt-title">delete admin</h1>
|
|
<form action="/admin/api/v1/removeadmin" method="POST">
|
|
<p>id</p>
|
|
<input type="text" name="id">
|
|
<button>delete admin</button>
|
|
</form>
|
|
|
|
<h1 class="txt-title">new blogpost</h1>
|
|
<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>
|
|
|
|
<h1 class="txt-title">edit blogpost</h1>
|
|
<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>
|
|
|
|
<h1 class="txt-title">new blogpost author</h1>
|
|
<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>
|
|
|
|
<h1 class="txt-title">edit author info</h1>
|
|
<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>
|
|
|
|
<h1 class="txt-title">new progress entry</h1>
|
|
<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>
|
|
|
|
<h1 class="txt-title">edit progress entry</h1>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
{{> footer-default }}
|
|
</body>
|
|
</html>
|