diff --git a/src/Controller/BookController.php b/src/Controller/BookController.php
index 43d2ffa..4b571f5 100644
--- a/src/Controller/BookController.php
+++ b/src/Controller/BookController.php
@@ -44,7 +44,6 @@ class BookController extends AbstractController
$ebook = $request->files->get('book')['ebook'];
if ($ebook) {
- dd($ebook);
$ebook->move(
$this->getParameter('book_files'),
'ebook_' . $book->getId() . '.' . $ebook->guessClientExtension()
diff --git a/templates/book/index.html.twig b/templates/book/index.html.twig
index 3ec7ef3..66617a0 100644
--- a/templates/book/index.html.twig
+++ b/templates/book/index.html.twig
@@ -21,7 +21,7 @@
{% for book in books %}
- {% if file_exists(asset('book_covers/cover_' ~ book.id ~ '.jpg')) %} {% endif %} |
+ {% if file_exists(asset('book_covers/cover_' ~ book.id ~ '.jpg')) %} {% endif %} |
{{ book.id }} |
{{ book.Title }} |
{{ book.language }} |
diff --git a/templates/book/show.html.twig b/templates/book/show.html.twig
index c0be308..450a76d 100644
--- a/templates/book/show.html.twig
+++ b/templates/book/show.html.twig
@@ -7,33 +7,61 @@
-
- | Id |
- {{ book.id }} |
-
-
- | Title |
- {{ book.Title }} |
-
-
- | Language |
- {{ book.language }} |
-
-
- | Description |
- {{ book.description }} |
-
-
- | Publisher |
- {{ book.publisher }} |
-
-
- | Publish_date |
- {{ book.publishDate ? book.publishDate|date('Y-m-d') : '' }} |
-
+
+ | Id |
+ {{ book.id }} |
+
+
+ | Title |
+ {{ book.Title }} |
+
+
+ | Language |
+ {{ book.language }} |
+
+
+ | Description |
+ {{ book.description }} |
+
+
+ | Publisher |
+ {{ book.publisher }} |
+
+
+ | Publish_date |
+ {{ book.publishDate ? book.publishDate|date('Y-m-d') : '' }} |
+
+
+
+
+ | Id |
+ File name |
+ File size |
+ Extension |
+ Download |
+ Remove |
+
+
+
+ {% for file in book.files %}
+
+ | {{ file.id }} |
+ {{ file.fileName }} |
+ {{ file.fileSize }} |
+ {{ file.extension }} |
+ download |
+ remove |
+
+ {% else %}
+
+ | no files found |
+
+ {% endfor %}
+
+
back to list
edit