Files
bigcapital/src/containers/Sales/CreditNotes/CreditNoteForm/CreditNoteFormFooterLeft.js
2022-03-21 17:58:20 +02:00

60 lines
1.4 KiB
JavaScript

import React from 'react';
import styled from 'styled-components';
import { FFormGroup, FEditableText, FormattedMessage as T } from 'components';
export function CreditNoteFormFooterLeft() {
return (
<React.Fragment>
{/* --------- Customer notes --------- */}
<CreditNoteMsgFormGroup
name={'note'}
label={<T id={'credit_note.label_customer_note'} />}
hintText={'Will be displayed on the invoice'}
>
<FEditableText
name={'note'}
placeholder={
<T id={'thanks_for_your_business_and_have_a_great_day'} />
}
/>
</CreditNoteMsgFormGroup>
{/* --------- Terms and conditions --------- */}
<TermsConditsFormGroup
label={<T id={'terms_conditions'} />}
name={'terms_conditions'}
>
<FEditableText
name={'terms_conditions'}
placeholder={<T id={'terms_and_conditions.placeholder'} />}
/>
</TermsConditsFormGroup>
</React.Fragment>
);
}
const CreditNoteMsgFormGroup = styled(FFormGroup)`
&.bp3-form-group {
margin-bottom: 40px;
.bp3-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
margin-left: 10px;
}
}
`;
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
margin-left: 10px;
}
}
`;