mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
91 lines
2.6 KiB
TypeScript
91 lines
2.6 KiB
TypeScript
// @ts-nocheck
|
|
import { Classes } from '@blueprintjs/core';
|
|
import {
|
|
FFormGroup,
|
|
FieldRequiredHint,
|
|
FInputGroup,
|
|
FSwitch,
|
|
Stack,
|
|
} from '@/components';
|
|
import { FColorInput } from '@/components/Forms/FColorInput';
|
|
import { Overlay } from '../../Invoices/InvoiceCustomize/Overlay';
|
|
import { useIsTemplateNamedFilled } from '@/containers/BrandingTemplates/utils';
|
|
import { BrandingCompanyLogoUploadField } from '@/containers/ElementCustomize/components/BrandingCompanyLogoUploadField';
|
|
|
|
export function PaymentReceivedCustomizeGeneralField() {
|
|
const isTemplateNameFilled = useIsTemplateNamedFilled();
|
|
|
|
return (
|
|
<Stack style={{ padding: 20, flex: '1 1 auto' }}>
|
|
<Stack spacing={0}>
|
|
<h2 style={{ fontSize: 16, marginBottom: 10 }}>General Branding</h2>
|
|
<p className={Classes.TEXT_MUTED}>
|
|
Set your invoice details to be automatically applied every timeyou
|
|
create a new invoice.
|
|
</p>
|
|
</Stack>
|
|
|
|
<FFormGroup
|
|
name={'templateName'}
|
|
label={'Template Name'}
|
|
labelInfo={<FieldRequiredHint />}
|
|
style={{ marginBottom: 10 }}
|
|
fastField
|
|
>
|
|
<FInputGroup name={'templateName'} fastField />
|
|
</FFormGroup>
|
|
|
|
<Overlay visible={!isTemplateNameFilled}>
|
|
<Stack spacing={0}>
|
|
<FFormGroup
|
|
name={'primaryColor'}
|
|
label={'Primary Color'}
|
|
style={{ justifyContent: 'space-between' }}
|
|
inline
|
|
fastField
|
|
>
|
|
<FColorInput
|
|
name={'primaryColor'}
|
|
inputProps={{ style: { maxWidth: 120 } }}
|
|
fastField
|
|
/>
|
|
</FFormGroup>
|
|
|
|
<FFormGroup
|
|
name={'secondaryColor'}
|
|
label={'Secondary Color'}
|
|
style={{ justifyContent: 'space-between' }}
|
|
inline
|
|
fastField
|
|
>
|
|
<FColorInput
|
|
name={'secondaryColor'}
|
|
inputProps={{ style: { maxWidth: 120 } }}
|
|
fastField
|
|
/>
|
|
</FFormGroup>
|
|
|
|
<Stack spacing={10}>
|
|
<FFormGroup
|
|
name={'showCompanyLogo'}
|
|
label={'Logo'}
|
|
fastField
|
|
style={{ marginBottom: 0 }}
|
|
>
|
|
<FSwitch
|
|
name={'showCompanyLogo'}
|
|
label={'Display company logo in the paper'}
|
|
style={{ fontSize: 14 }}
|
|
large
|
|
fastField
|
|
/>
|
|
</FFormGroup>
|
|
|
|
<BrandingCompanyLogoUploadField />
|
|
</Stack>
|
|
</Stack>
|
|
</Overlay>
|
|
</Stack>
|
|
);
|
|
}
|