From fbd24213a8d7045f88bee76ac9aebe50851ea097 Mon Sep 17 00:00:00 2001 From: diepdp Date: Wed, 18 Sep 2024 16:09:18 +0700 Subject: [PATCH] fix: lead webform missing attributes when lead toggle is disabled Fixes #1614 - Ensure attribute options are visible when creating lead webforms --- .../views/settings/web-forms/create.blade.php | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/views/settings/web-forms/create.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/web-forms/create.blade.php index 3f0e3012f..a4e9aa948 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/web-forms/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/web-forms/create.blade.php @@ -16,12 +16,12 @@ {!! view_render_event('admin.settings.webform.create.breadcrumbs.after') !!} - +
@lang('admin::app.settings.webforms.create.title')
- +
{!! view_render_event('admin.settings.webform.create.save_button.before') !!} @@ -44,7 +44,7 @@ class="primary-button" @pushOnce('scripts') - @@ -549,10 +549,10 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" watch: { /** * Watch for the createLead value and remove the added attributes if the value is true. - * + * * @param {Boolean} newValue * @param {Boolean} oldValue - * + * * @return {void} */ createLead(newValue, oldValue) { @@ -567,7 +567,7 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" computed:{ /** * Get the placeholder value based on the submit success action value. - * + * * @return {String} */ placeholder() { @@ -576,7 +576,7 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" /** * Get the grouped attributes based on the entity type. - * + * * @return {Object} */ groupedAttributes() { @@ -601,9 +601,9 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" methods: { /** * Add the attribute to the added attributes list. - * + * * @param {Object} attribute - * + * * @return {void} */ addAttribute(attribute) { @@ -622,9 +622,9 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" /** * Remove the attribute from the added attributes list. - * + * * @param {Object} attribute - * + * * @return {void} */ removeAttribute(attribute) { @@ -638,9 +638,9 @@ class="!h-10 !w-12 rounded-l-none p-1 dark:border-gray-800 dark:bg-gray-900" /** * Get the placeholder value based on the attribute type. - * + * * @param {Object} attribute - * + * * @return {String} */ getPlaceholderValue(attribute) {