diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue index 06fe0e0e..e2ed0d2e 100644 --- a/frontend/src/pages/Lead.vue +++ b/frontend/src/pages/Lead.vue @@ -198,13 +198,13 @@ " :debounce="500" /> - - + { type: 'link', name: 'organization', placeholder: 'Select organization', - options: getOrganizationOptions(), - change: (data) => data && updateField('organization', data.value), + doctype: 'CRM Organization', + change: (data) => data && updateField('organization', data), create: (value, close) => { _organization.value.organization_name = value showOrganizationModal.value = true @@ -492,12 +492,8 @@ const detailSections = computed(() => { type: 'link', name: 'source', placeholder: 'Select source...', - options: [ - { label: 'Advertisement', value: 'Advertisement' }, - { label: 'Web', value: 'Web' }, - { label: 'Others', value: 'Others' }, - ], - change: (data) => updateField('source', data.value), + doctype: 'CRM Lead Source', + change: (data) => updateField('source', data), }, ], }, @@ -509,19 +505,9 @@ const detailSections = computed(() => { label: 'Salutation', type: 'link', name: 'salutation', - placeholder: 'Mr./Mrs./Ms.', - options: [ - { label: 'Dr', value: 'Dr' }, - { label: 'Mr', value: 'Mr' }, - { label: 'Mrs', value: 'Mrs' }, - { label: 'Ms', value: 'Ms' }, - { label: 'Mx', value: 'Mx' }, - { label: 'Prof', value: 'Prof' }, - { label: 'Master', value: 'Master' }, - { label: 'Madam', value: 'Madam' }, - { label: 'Miss', value: 'Miss' }, - ], - change: (data) => updateField('salutation', data.value), + placeholder: 'Mr./Mrs./Ms...', + doctype: 'Salutation', + change: (data) => updateField('salutation', data), }, { label: 'First name',