+ This Module Helps Customize the Signup Page with Extra Information. +
+ ++ Easily procure and sell your products
++ Easy configuration and convivial experience
++ A platform for + educational management
++ Plan, track and schedule your operations
++ Mobile friendly, awe-inspiring product pages
++ Keep track of services and invoice
++ Run your bar or + restaurant methodically
++ An + all-inclusive + hotel management application
+${_.str.escapeHTML("Enter Valid Number ") || ""}
`, + buttons: [{ text: _t("Ok"), close: true }], + }).open(); + } + } + return; + }, + // This method is used to validate the image given in the signup form. + validateImageFile: function (ev) { + const fileInput = this.$(ev.currentTarget); + const file = fileInput[0].files[0]; + if (file) { + const allowedExtensions = /(\.jpg|\.jpeg|\.png|\.gif)$/i; + if (!allowedExtensions.exec(file.name)) { + fileInput.val(''); // Clear the file input + return new Dialog(null, { + title: 'Error:', + size: 'medium', + $content: 'Enter a valid image file (JPEG, JPG, PNG, GIF).
', + buttons: [{ text: 'Ok', close: true }], + }).open(); + } + } + return; + } +}); +}); diff --git a/customize_signup/views/signup_templates.xml b/customize_signup/views/signup_templates.xml new file mode 100644 index 000000000..a18fd79b8 --- /dev/null +++ b/customize_signup/views/signup_templates.xml @@ -0,0 +1,69 @@ + +