diff --git a/.gitignore b/.gitignore index 3f04b96..a1c554f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *__pycache__* -db.sqlite3 \ No newline at end of file +db.sqlite3 +bookshelf_management/apps/mgmt/migrations/* \ No newline at end of file diff --git a/bookshelf_management/apps/mgmt/static/booklist.js b/bookshelf_management/apps/mgmt/static/booklist.js index 2104298..b36fccd 100644 --- a/bookshelf_management/apps/mgmt/static/booklist.js +++ b/bookshelf_management/apps/mgmt/static/booklist.js @@ -30,4 +30,10 @@ } + if(urlParams.has('addTitle')){ + // console.log(urlParams.get('addId')) + $('#add-title').val(urlParams.get('addTitle')) + + } + })(jQuery) \ No newline at end of file diff --git a/bookshelf_management/apps/mgmt/templates/bookshelf.html b/bookshelf_management/apps/mgmt/templates/bookshelf.html index c516ba6..6759f21 100644 --- a/bookshelf_management/apps/mgmt/templates/bookshelf.html +++ b/bookshelf_management/apps/mgmt/templates/bookshelf.html @@ -8,6 +8,7 @@ Number of Books in Bookshelf:
{{ total }}
{% if user.is_authenticated %} +