From bdc4518ddc5a0eca1f36e326e53d4eef71fc02b0 Mon Sep 17 00:00:00 2001 From: Rebecca Shoptaw Date: Mon, 22 Jul 2024 12:08:48 -0400 Subject: [PATCH] Replace jQuery validate in book/author/tag edit forms --- openlibrary/templates/books/edit.html | 4 ++-- openlibrary/templates/tag/add.html | 4 ++-- openlibrary/templates/type/author/edit.html | 4 ++-- openlibrary/templates/type/tag/edit.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openlibrary/templates/books/edit.html b/openlibrary/templates/books/edit.html index 2f21dc7970d..7a64b8e32d6 100644 --- a/openlibrary/templates/books/edit.html +++ b/openlibrary/templates/books/edit.html @@ -51,7 +51,7 @@

$:title

$ work_key = query_param('work_key', None) $ action = '?work_key=%s' % work_key if work_key else '' -
+ $ authors = work.authors and [a.author for a in work.authors] @@ -87,7 +87,7 @@

$:_("Use Title: Subtitle to add a subtitle.") *$_("Required field")

- +
diff --git a/openlibrary/templates/tag/add.html b/openlibrary/templates/tag/add.html index 965b2ad30dd..2998fe023cf 100644 --- a/openlibrary/templates/tag/add.html +++ b/openlibrary/templates/tag/add.html @@ -13,14 +13,14 @@

$_("Add a tag to Open Library")

- +
*$_("Required field")
- +
diff --git a/openlibrary/templates/type/author/edit.html b/openlibrary/templates/type/author/edit.html index c8d8f913bc4..c0d16fbda33 100644 --- a/openlibrary/templates/type/author/edit.html +++ b/openlibrary/templates/type/author/edit.html @@ -19,7 +19,7 @@

$_("Edit Author")

- +
@@ -32,7 +32,7 @@

$_("Edit Author")

- +
diff --git a/openlibrary/templates/type/tag/edit.html b/openlibrary/templates/type/tag/edit.html index d50cabdc8ce..20d4ca5a5b9 100644 --- a/openlibrary/templates/type/tag/edit.html +++ b/openlibrary/templates/type/tag/edit.html @@ -13,13 +13,13 @@

$_("Edit Tag")

- +
*$_("Required field")
- +