diff --git a/demodata.sql b/demodata.sql index ac493ef..da6a9b1 100644 --- a/demodata.sql +++ b/demodata.sql @@ -129,7 +129,7 @@ INSERT INTO user_books(created_at, user_id, book_id, start_read_date, rating) VA -- collections INSERT INTO collections(name, user_id) VALUES ('Littérature française',(SELECT id FROM users WHERE name = 'demo')); INSERT INTO collections(name, user_id) VALUES ('Nouvelles',(SELECT id FROM users WHERE name = 'demo')); -INSERT INTO collections(name, user_id) VALUES ('Non fiction',(SELECT id FROM users WHERE name = 'demo')); +INSERT INTO collections(name, user_id) VALUES ('Non fiction',(SELECT id FROM users WHERE name = 'demo2')); INSERT INTO collection_books(collection_id, book_id) VALUES ((SELECT id FROM collections WHERE name = 'Littérature française'), (SELECT id FROM books WHERE title = 'Nord')); INSERT INTO collection_books(collection_id, book_id) VALUES ((SELECT id FROM collections WHERE name = 'Littérature française'), (SELECT id FROM books WHERE title = 'Gargantua')); diff --git a/front/src/CollectionForm.vue b/front/src/CollectionForm.vue new file mode 100644 index 0000000..7636d01 --- /dev/null +++ b/front/src/CollectionForm.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/front/src/CollectionFormBookItem.vue b/front/src/CollectionFormBookItem.vue new file mode 100644 index 0000000..57e9fca --- /dev/null +++ b/front/src/CollectionFormBookItem.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/front/src/CollectionListElement.vue b/front/src/CollectionListElement.vue index b513a14..1689024 100644 --- a/front/src/CollectionListElement.vue +++ b/front/src/CollectionListElement.vue @@ -1,26 +1,36 @@ + +