##// END OF EJS Templates
Added checkinf form fields when creating a new thread.
Added checkinf form fields when creating a new thread.

File last commit:

r18:174f8766 default
r18:174f8766 default
Show More
posting_general.html
52 lines | 1.4 KiB | text/html | HtmlLexer
/ templates / posting_general.html
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9 {% extends "base.html" %}
{% block content %}
Ilyas
Added creating new thread form...
r14 {% if threads %}
{% for thread in threads %}
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <span class="title">{{ thread.title }}</span><br />
<span class="text">{{ thread.text }}</span><br />
neko259
Fixed getting posts for a thread. Implemented thread getting test.
r17 <a class="link" href="/boards/post/{{ thread.id }}/">View
thread</a>
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <hr />
Ilyas
Added creating new thread form...
r14 {% endfor %}
{% else %}
No threads found.
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <hr />
Ilyas
Added creating new thread form...
r14 {% endif %}
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <div class="post-form">
<form action="/boards/" method="post">{% csrf_token %}
Ilyas
Added checkinf form fields when creating a new thread.
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
Added creating new thread form...
r14 </form>
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 </div>
Ilyas
Added creating new thread form...
r14
<HR />
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9
{% endblock %}