Files
domain-watchdog/assets/utils/providers/forms/GandiConnectorForm.tsx
2025-02-20 17:15:17 +01:00

32 lines
1.2 KiB
TypeScript

import {Form, Input, Typography} from 'antd'
import React from 'react'
import {t} from 'ttag'
export default function GandiConnectorForm() {
return (
<>
<Form.Item
label={t`Personal Access Token (PAT)`}
name={['authData', 'token']}
help={<Typography.Link target='_blank' href='https://admin.gandi.net/organizations/account/pat'>
{t`Retrieve a Personal Access Token from your customer account on the Provider's website`}
</Typography.Link>}
rules={[{required: true, message: t`Required`}]}
>
<Input autoComplete='off'/>
</Form.Item>
<Form.Item
label={t`Organization sharing ID`}
name={['authData', 'sharingId']}
help={<Typography.Text
type='secondary'
>{t`It indicates the organization that will pay for the ordered product`}
</Typography.Text>}
required={false}
>
<Input autoComplete='off' placeholder='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'/>
</Form.Item>
</>
)
}