{% extends 'base.html' %} {% block main %}
back
{{ form.csrf_token }}

{{ form.title.label }} {{ form.title(size=20, class="form-control") }}



{{ form.author.label }} {% for author in form.author %} {% endfor %}
{{ author.author_name }}

Category: {{ form.category(size=20, class="form-control") }}
Year published: {{ form.year_published(size=8, class="form-control") }}
Current file: {{ book.file }}
Upload new file: {{form.file}}
If uploading, write a new message: {{form.message(size=150, class="form-control") }}

{% endblock %}