diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-12-22 22:29:30 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-12-22 22:29:30 +0000 |
| commit | 79f4e162863302cbcaa5ecc41347959d8c9218c1 (patch) | |
| tree | 9ca507b7608365fd78308a2dbd28c693ab05f41f /app/templates/threads | |
| parent | 137a6928bcb247cf080012b20db05e0fd796a4a8 (diff) | |
| download | cheatdb-79f4e162863302cbcaa5ecc41347959d8c9218c1.tar.xz | |
Improve style of forms
Diffstat (limited to 'app/templates/threads')
| -rw-r--r-- | app/templates/threads/new.html | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/app/templates/threads/new.html b/app/templates/threads/new.html index 22f5b72..10fa7c8 100644 --- a/app/templates/threads/new.html +++ b/app/templates/threads/new.html @@ -5,15 +5,37 @@ {% endblock %} {% block content %} - {% from "macros/forms.html" import render_field, render_submit_field %} - <form method="POST" action="" enctype="multipart/form-data"> - {{ form.hidden_tag() }} - {{ render_field(form.title) }} - {{ render_field(form.comment) }} - {{ render_field(form.private) }} - {{ render_submit_field(form.submit) }} +{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %} +<form method="POST" action="" enctype="multipart/form-data"> + {{ form.hidden_tag() }} + {{ render_field(form.title) }} + + <div class="row mt-0 mb-4 comments mx-0"> + <div class="col-md-1 p-1"> + <img class="img-responsive user-photo img-thumbnail img-thumbnail-1" src="{{ (current_user.email or '') | gravatar }}"> + </div> + <div class="col"> + <div class="card"> + <div class="card-header {{ current_user.rank.name }}"> + {{ current_user.display_name }} + <a name="reply"></a> + </div> + <div class="card-body"> + {{ render_field(form.comment, label="", class_="m-0") }} + </div> + </div> + </div> + </div> + + {{ render_checkbox_field(form.private, class_="my-3") }} + <p> + Only the you, the package author, and users of Editor rank + and above can read private threads. + </p> + + {{ render_submit_field(form.submit) }} +</form> + - <p>Only the you, the package author, and users of Editor rank and above can read private threads.</p> - </form> {% endblock %} |
