diff --git a/frontend/src/pages/BatchForm.vue b/frontend/src/pages/BatchForm.vue index 3daf352a..7e3e56b4 100644 --- a/frontend/src/pages/BatchForm.vue +++ b/frontend/src/pages/BatchForm.vue @@ -8,49 +8,182 @@ {{ __('Save') }} -
-
+
+
{{ __('Details') }}
-
-
+
+
+ +
+
-
- -
-
- - - + +
+
+
+
+ +
+
+ {{ __('Settings') }} +
+
+ + + +
+
+ + +
+
+ {{ __('Date and Time') }} +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ {{ __('Configurations') }} +
+
+
+ + +
+
+ + +
+
-
+
{{ __('Meta Image') }}
{{ __('Upload') }} -
+
{{ __( - 'Appears when the batch URL is shared on any online platform' + 'Appears when the batch URL is shared on socials' ) }}
@@ -106,111 +239,9 @@
-
-
- {{ __('Date and Time') }} -
-
-
- - -
-
- - -
-
- -
-
-
-
-
- {{ __('Settings') }} -
-
-
- - -
-
- - -
-
- -
-
-
- -
-
+
+
{{ __('Payment') }}
-
+
-
-
- {{ __('Description') }} -
- -
- - -
-
@@ -286,6 +291,7 @@ import { Image } from 'lucide-vue-next' import { capture } from '@/telemetry' import { useOnboarding } from 'frappe-ui/frappe' import { sessionStore } from '../stores/session' +import { useSettings } from '@/stores/settings' import MultiSelect from '@/components/Controls/MultiSelect.vue' import Link from '@/components/Controls/Link.vue' @@ -293,6 +299,7 @@ const router = useRouter() const user = inject('$user') const { brand } = sessionStore() const { updateOnboardingStep } = useOnboarding('learning') +const settingsStore = useSettings() const props = defineProps({ batchName: { @@ -499,6 +506,12 @@ const validateFile = (file) => { } } +const openSettings = (category, close) => { + close() + settingsStore.activeTab = category + settingsStore.isSettingsOpen = true +} + const breadcrumbs = computed(() => { let crumbs = [ {