diff options
| author | Fuwn <[email protected]> | 2020-12-04 21:53:08 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-12-04 21:53:08 -0800 |
| commit | 299ef187bb83345ca12796e56a7b5ed8d2e04c67 (patch) | |
| tree | 44768f0b39ac20755b213c72918cf98f614ff122 /templates_old/threads.html.hbs | |
| parent | chore: update log (diff) | |
| download | chan-test_actix-yarte.tar.xz chan-test_actix-yarte.zip | |
not working loltest_actix-yarte
Diffstat (limited to 'templates_old/threads.html.hbs')
| -rw-r--r-- | templates_old/threads.html.hbs | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/templates_old/threads.html.hbs b/templates_old/threads.html.hbs new file mode 100644 index 0000000..f9f1b85 --- /dev/null +++ b/templates_old/threads.html.hbs @@ -0,0 +1,57 @@ +<title>chan - /{{ this.0.board }}/</title> + +{{> header }} + +<form action="/api/v1/post" method="post"> + <div class="form-group"> + <label for="name">Name <span class="badge badge-info">Optional</span></label> + <input class="form-control" name="name" type="text" + placeholder="Anonymous"> + </div> + + <div class="form-group"> + <label for="comment">Comment <span class="badge badge-warning">Required</span></label> + <textarea class="form-control" name="comment" cols="48" rows="4" + wrap="soft" placeholder="comment" required></textarea> + </div> + + <div class="form-group form-check"> + <input class="form-check-input" type="checkbox" disabled> + <label class="form-check-label">I'm not a robot. <span class="badge badge-warning">Required</span> <span class="badge badge-danger">Disabled</span></label> + </div> + + <div class="form-group"> + <label class="form-check-label">Image <span class="badge badge-info">Optional</span> <span class="badge badge-danger">Disabled</span></label> + <input class="form-control-file" type="file" disabled> + </div> + + <input type="hidden" name="board" value="{{ this.0.board }}"> + + <button type="submit" class="btn btn-primary">Post</button> +</form> +<br> + +<hr> + +{{ #if this }} + {{ #each this }} + <!-- <div class="post" style="width: 420px"> + <h2>{{ this.name }}</h4> + <p>{{ this.comment }}</p> + </div> --> + + <div class="card"> + <div class="card-body"> + <h2>{{ this.name }}</h4> + <p>{{ this.comment }}</p> + + <button class="btn btn-primary" disabled>View thread</button> + </div> + </div> + <br> + {{ /each }} +{{ else }} + <div class="alert alert-primary" role="alert"> + No posts have been made today! + </div> +{{ /if }} |