mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: Organization address and branding patch endpoint
This commit is contained in:
@@ -8,7 +8,7 @@ import styles from './PreferencesBranding.module.scss';
|
||||
|
||||
export function PreferencesBrandingFormContent() {
|
||||
return (
|
||||
<Stack style={{ flex: '1' }}>
|
||||
<Stack style={{ flex: '1' }} spacing={10}>
|
||||
<FFormGroup name={'companyLogo'} label={'Company Logo'}>
|
||||
<Group spacing={15} align={'left'}>
|
||||
<BrandingCompanyLogoUpload />
|
||||
|
||||
@@ -14,6 +14,8 @@ import {
|
||||
FFormGroup,
|
||||
FInputGroup,
|
||||
FSelect,
|
||||
Stack,
|
||||
Group,
|
||||
} from '@/components';
|
||||
import { inputIntent } from '@/utils';
|
||||
import { CLASSES } from '@/constants/classes';
|
||||
@@ -99,6 +101,50 @@ export default function PreferencesGeneralForm({ isSubmitting }) {
|
||||
/>
|
||||
</FFormGroup>
|
||||
|
||||
{/* ---------- Address ---------- */}
|
||||
<FFormGroup
|
||||
name={'address'}
|
||||
label={'Organization Address'}
|
||||
|
||||
inline
|
||||
fastField
|
||||
>
|
||||
<Stack>
|
||||
<FInputGroup
|
||||
name={'address.address_1'}
|
||||
placeholder={'Address 1'}
|
||||
fastField
|
||||
/>
|
||||
<FInputGroup
|
||||
name={'address.address_2'}
|
||||
placeholder={'Address 2'}
|
||||
fastField
|
||||
/>
|
||||
|
||||
<Group spacing={15}>
|
||||
<FInputGroup name={'address.city'} placeholder={'City'} fastField />
|
||||
<FInputGroup
|
||||
name={'address.postal_code'}
|
||||
placeholder={'ZIP Code'}
|
||||
fastField
|
||||
/>
|
||||
</Group>
|
||||
|
||||
<Group spacing={15}>
|
||||
<FInputGroup
|
||||
name={'address.state_province'}
|
||||
placeholder={'State or Province'}
|
||||
fastField
|
||||
/>
|
||||
<FInputGroup
|
||||
name={'address.phone'}
|
||||
placeholder={'Phone number'}
|
||||
fastField
|
||||
/>
|
||||
</Group>
|
||||
</Stack>
|
||||
</FFormGroup>
|
||||
|
||||
{/* ---------- Base currency ---------- */}
|
||||
<FFormGroup
|
||||
name={'base_currency'}
|
||||
|
||||
@@ -24,6 +24,7 @@ const defaultValues = {
|
||||
date_format: '',
|
||||
timezone: '',
|
||||
tax_number: '',
|
||||
address: {},
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user