From 3456456ea46c1e9e4e9b062d6dd198e4c7bfe8ff Mon Sep 17 00:00:00 2001 From: grandeljay Date: Mon, 13 Jun 2022 08:50:54 +0200 Subject: [PATCH] Add wish price field placeholder --- src/assets/js/wishlists.js | 11 +++++++++++ src/pages/parts/wish-add.php | 11 +++++++++++ src/pages/wishlists.php | 4 ++++ 3 files changed, 26 insertions(+) diff --git a/src/assets/js/wishlists.js b/src/assets/js/wishlists.js index d8ca799c..fe3dee7a 100644 --- a/src/assets/js/wishlists.js +++ b/src/assets/js/wishlists.js @@ -511,6 +511,17 @@ $(function () { var validateURL = true; function validateWishURL(formAddOrEdit, buttonAddOrSave, modalAddOrEdit) { + /** + * Validate Form + */ + formAddOrEdit + .form({ + fields: { + wish_price : ['number'], + } + }) + .form('validate form'); + /** * Validate URL */ diff --git a/src/pages/parts/wish-add.php b/src/pages/parts/wish-add.php index 3d420658..f58917f7 100644 --- a/src/pages/parts/wish-add.php +++ b/src/pages/parts/wish-add.php @@ -67,6 +67,17 @@ $scriptPart = '/src/assets/js/parts/wish-add.js'; +
+ + + +
+
diff --git a/src/pages/wishlists.php b/src/pages/wishlists.php index 26cb776d..3941034b 100644 --- a/src/pages/wishlists.php +++ b/src/pages/wishlists.php @@ -175,6 +175,8 @@ $page->navigation();
+ +
@@ -202,6 +204,8 @@ $page->navigation();
+ +