added admin page, adjusted way of creating posts
This commit is contained in:
10
templates/create_post.tmpl
Normal file
10
templates/create_post.tmpl
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<h2>Create post</h2>
|
||||
<form action="/admin/post" method="POST">
|
||||
<input type="text" placeholder="url" name="url" />
|
||||
<input type="text" placeholder="title" name="title" />
|
||||
<textarea placeholder="post" name="content" />
|
||||
<button type="submit">Make post</button>
|
||||
<button type="clear">Clear form</button>
|
||||
</form>
|
||||
{{ template "footer.tmpl" . }}
|
||||
Reference in New Issue
Block a user