супер попа (обновление)
This commit is contained in:
@@ -5,13 +5,17 @@
|
||||
<link href="/css/upload.css" rel="stylesheet">
|
||||
|
||||
<section id="books">
|
||||
<form class="upload" action="/books/write" enctype="multipart/form-data" method="POST">
|
||||
{% if account is not empty %}
|
||||
{% if account.permissions.books is defined and account.permissions.books == 1 %}
|
||||
<form class="upload unselectable" action="/storage/books/write" enctype="multipart/form-data" method="POST">
|
||||
<input type="file" name="books[]" accept=".pdf" oninput="this.parentElement.submit();" multiple="true">
|
||||
<p>+</p>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for book in books %}
|
||||
<article class="book">
|
||||
<img src="/books/{{ book.id|e }}/cover" alt='Обложка книги "{{ book.title|e }}"'>
|
||||
<img src="/storage/books/{{ book.id|e }}/0" class="unselectable" alt='Обложка книги "{{ book.title|e }}"'>
|
||||
<h4><a href="/books/{{ book.id|e }}">{{ book.title|e }}</a></h3>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user