{% 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 }}

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

{{ form.year_published.label }} {{ form.year_published(size=4, class="form-control") }}
Current file: {{ book.file }}
Upload new file: {{form.file}}

{% endblock %}