add handler, html templates, Makefile and migrations
This commit is contained in:
commit
a06e8db2ff
22 changed files with 1001 additions and 0 deletions
18
templates/thread_create.html
Normal file
18
templates/thread_create.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{{define "header"}}
|
||||
<h1 class="mb-0">Create a new thread</h1>
|
||||
{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<form action="/threads" method="POST">
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input name="title" type="text" class="form-control" placeholder="Give your thread a great title">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Description</label>
|
||||
<textarea name="description" class="form-control" rows="3"
|
||||
placeholder="Tell people what your thread is about"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Create Thread</button>
|
||||
</form>
|
||||
{{end}}
|
Reference in a new issue