posting_general.html
52 lines
| 1.4 KiB
| text/html
|
HtmlLexer
/ templates / posting_general.html
Ilyas
|
r9 | {% extends "base.html" %} | ||
{% block content %} | ||||
Ilyas
|
r14 | {% if threads %} | ||
{% for thread in threads %} | ||||
neko259
|
r16 | <span class="title">{{ thread.title }}</span><br /> | ||
<span class="text">{{ thread.text }}</span><br /> | ||||
neko259
|
r17 | <a class="link" href="/boards/post/{{ thread.id }}/">View | ||
thread</a> | ||||
neko259
|
r16 | <hr /> | ||
Ilyas
|
r14 | {% endfor %} | ||
{% else %} | ||||
No threads found. | ||||
neko259
|
r16 | <hr /> | ||
Ilyas
|
r14 | {% endif %} | ||
neko259
|
r16 | <div class="post-form"> | ||
<form action="/boards/" method="post">{% csrf_token %} | ||||
Ilyas
|
r18 | <div class="input_field_name"> | ||
<span class=input_field_error>{{ form.title.errors }}</span> | ||||
<label class=input_field_name for="title">Title</label> | ||||
{{ form.title }} | ||||
</div> | ||||
<div class="input_field_name"> | ||||
<span class=input_field_error>{{ form.text.errors }}</span> | ||||
<label class=input_field_name for="text">Text</label> | ||||
{{ form.text }} | ||||
</div> | ||||
<div class="input_field_name"> | ||||
<label class=input_field_name for="image">Avatar</label> | ||||
{{ form.image }} | ||||
</div> | ||||
<div class="input_field_name"> | ||||
<span class=input_field_error>{{ form.tags.errors}}</span> | ||||
<label class=input_field_name for="tags">Name</label> | ||||
{{ form.tags }} | ||||
</div> | ||||
<input type="submit" value="Create" /> | ||||
Ilyas
|
r14 | </form> | ||
neko259
|
r16 | </div> | ||
Ilyas
|
r14 | |||
<HR /> | ||||
Ilyas
|
r9 | |||
{% endblock %} | ||||