From 3f4807a3451ff6b3271c9d9f4161f0928181e885 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 10 May 2021 14:56:43 -0700 Subject: [PATCH] Revert "Adds datepicker script dependencies to templates" This reverts commit 33ca7b4b763c118cf84ee85205e64ccd1355b220. --- bookwyrm/templates/author.html | 3 --- bookwyrm/templates/book/book.html | 1 - bookwyrm/templates/book/edit_book.html | 8 ++------ bookwyrm/templates/book/editions.html | 4 ---- bookwyrm/templates/edit_author.html | 4 ---- bookwyrm/templates/feed/feed_layout.html | 1 - bookwyrm/templates/get_started/books.html | 4 ---- bookwyrm/templates/user/layout.html | 5 ----- 8 files changed, 2 insertions(+), 28 deletions(-) diff --git a/bookwyrm/templates/author.html b/bookwyrm/templates/author.html index ec952d4c6..a7ea9db56 100644 --- a/bookwyrm/templates/author.html +++ b/bookwyrm/templates/author.html @@ -38,6 +38,3 @@ {% endblock %} -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %} diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 53be123d8..40da64861 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -333,5 +333,4 @@ {% block scripts %} -{% include 'snippets/datepicker_js.html' %} {% endblock %} diff --git a/bookwyrm/templates/book/edit_book.html b/bookwyrm/templates/book/edit_book.html index 5fe63595e..bcf111267 100644 --- a/bookwyrm/templates/book/edit_book.html +++ b/bookwyrm/templates/book/edit_book.html @@ -133,7 +133,7 @@

- +

{% for error in form.first_published_date.errors %}

{{ error | escape }}

@@ -141,7 +141,7 @@

- +

{% for error in form.published_date.errors %}

{{ error | escape }}

@@ -245,7 +245,3 @@ {% endblock %} - -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %} diff --git a/bookwyrm/templates/book/editions.html b/bookwyrm/templates/book/editions.html index 64dd2775f..775b05c86 100644 --- a/bookwyrm/templates/book/editions.html +++ b/bookwyrm/templates/book/editions.html @@ -51,7 +51,3 @@ {% include 'snippets/pagination.html' with page=editions path=request.path %} {% endblock %} - -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %} diff --git a/bookwyrm/templates/edit_author.html b/bookwyrm/templates/edit_author.html index ecf32358e..b575bbb2f 100644 --- a/bookwyrm/templates/edit_author.html +++ b/bookwyrm/templates/edit_author.html @@ -81,7 +81,3 @@ {% endblock %} - -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %} diff --git a/bookwyrm/templates/feed/feed_layout.html b/bookwyrm/templates/feed/feed_layout.html index 431cf6dd7..75fc1951a 100644 --- a/bookwyrm/templates/feed/feed_layout.html +++ b/bookwyrm/templates/feed/feed_layout.html @@ -105,5 +105,4 @@ {% block scripts %} -{% include 'snippets/datepicker_js.html' %} {% endblock %} diff --git a/bookwyrm/templates/get_started/books.html b/bookwyrm/templates/get_started/books.html index e3fd87bbd..9613508b9 100644 --- a/bookwyrm/templates/get_started/books.html +++ b/bookwyrm/templates/get_started/books.html @@ -64,7 +64,3 @@ {% endblock %} - -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %} diff --git a/bookwyrm/templates/user/layout.html b/bookwyrm/templates/user/layout.html index 1aa762027..661d80781 100644 --- a/bookwyrm/templates/user/layout.html +++ b/bookwyrm/templates/user/layout.html @@ -81,8 +81,3 @@ {% block panel %}{% endblock %} {% endblock %} - - -{% block scripts %} -{% include 'snippets/datepicker_js.html' %} -{% endblock %}