diff --git a/frontend/src/components/BookOverview.vue b/frontend/src/components/BookOverview.vue
index 196e75a..a1f4402 100644
--- a/frontend/src/components/BookOverview.vue
+++ b/frontend/src/components/BookOverview.vue
@@ -86,6 +86,10 @@
// Build the list object
this.bookList = [
+ {
+ header: this.translate('books').description,
+ content: this.book.Description.replace(/\n/g, '
')
+ },
{
header: this.translate('books').gridColumns.isbn,
content: this.book.Isbn
@@ -98,6 +102,10 @@
header: this.translate('books').gridColumns.price,
content: this.book.Price
},
+ {
+ header: this.translate('books').gridColumns.quantity,
+ content: this.book.Quantity
+ },
{
header: this.translate('books').gridColumns.status,
content: this.book.Status
diff --git a/frontend/src/components/BooksAddEdit.vue b/frontend/src/components/BooksAddEdit.vue
index d3c8612..63ca7e0 100644
--- a/frontend/src/components/BooksAddEdit.vue
+++ b/frontend/src/components/BooksAddEdit.vue
@@ -5,6 +5,10 @@
+
@@ -48,7 +52,7 @@
-
+
@@ -101,6 +105,7 @@
edit: false,
book: {
Title: '',
+ Description: '',
Isbn: '',
Year: (new Date()).getFullYear(),
Price: 0,
diff --git a/frontend/src/components/List.vue b/frontend/src/components/List.vue
index a7f8a49..8cc791b 100644
--- a/frontend/src/components/List.vue
+++ b/frontend/src/components/List.vue
@@ -27,7 +27,7 @@
- {{ info.content }}
+
diff --git a/frontend/src/lang/de.js b/frontend/src/lang/de.js
index 74533b7..c0712b1 100644
--- a/frontend/src/lang/de.js
+++ b/frontend/src/lang/de.js
@@ -37,6 +37,7 @@ export default {
},
books: {
title: 'Bücherübersicht',
+ description: 'Beschreibung',
add: 'Buch hinzufügen',
deleteHeader: 'Buch löschen',
deleteMsg: 'Bist du sicher dass du dieses Buch löschen willst?
Das kann nicht Rückgängig gemacht werden!',
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 1c1af90..cd35352 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -37,6 +37,7 @@ export default {
},
books: {
title: 'Books overview',
+ description: 'Description',
add: 'Add a book',
deleteHeader: 'Delete this book',
deleteMsg: 'Are you sure you want to delete this book?
This cannot be undone!',
diff --git a/frontend/src/lang/fr.js b/frontend/src/lang/fr.js
index 04e3e0b..d0e06f6 100644
--- a/frontend/src/lang/fr.js
+++ b/frontend/src/lang/fr.js
@@ -37,6 +37,7 @@ export default {
},
books: {
title: 'Liste des livres',
+ description: 'Description',
add: 'Ajouter un livre',
deleteHeader: 'Supprimer le livre',
deleteMsg: 'Est-ce que vous êtes sur que vous voulez supprimer cette livre?
Cette operation est irréversible !',
diff --git a/models/book.go b/models/book.go
index 4790e6a..01eee5c 100644
--- a/models/book.go
+++ b/models/book.go
@@ -8,6 +8,7 @@ import (
type Book struct {
ID int64 `xorm:"int(11) autoincr not null unique pk"`
Title string `xorm:"varchar(250) not null"`
+ Description string `xorm:"varchar(750)"`
Isbn string `xorm:"varchar(30)"`
Year int64 `xorm:"int(11)"`
Price float64 `xorm:"double"`