mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-20 11:15:37 +00:00
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import {Form, Input, Typography} from 'antd'
|
|
import React from 'react'
|
|
import {t} from 'ttag'
|
|
import {BankOutlined, LockOutlined} from "@ant-design/icons"
|
|
|
|
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 prefix={<LockOutlined/>} 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 prefix={<BankOutlined />} autoComplete='off' placeholder='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'/>
|
|
</Form.Item>
|
|
</>
|
|
)
|
|
}
|