2025-02-18 15:41:59 +01:00
|
|
|
import {Form, Input, Typography} from 'antd'
|
|
|
|
|
import React from 'react'
|
|
|
|
|
import {t} from 'ttag'
|
2025-03-04 19:11:24 +01:00
|
|
|
import {BankOutlined, LockOutlined} from "@ant-design/icons"
|
2025-02-18 15:41:59 +01:00
|
|
|
|
2025-02-20 16:32:25 +01:00
|
|
|
export default function GandiConnectorForm() {
|
2025-02-18 15:41:59 +01:00
|
|
|
return (
|
2025-02-19 22:21:20 +01:00
|
|
|
<>
|
2025-02-18 15:41:59 +01:00
|
|
|
<Form.Item
|
|
|
|
|
label={t`Personal Access Token (PAT)`}
|
|
|
|
|
name={['authData', 'token']}
|
2025-02-19 00:54:04 +01:00
|
|
|
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>}
|
2025-02-18 15:41:59 +01:00
|
|
|
rules={[{required: true, message: t`Required`}]}
|
|
|
|
|
>
|
2025-03-04 19:11:24 +01:00
|
|
|
<Input prefix={<LockOutlined/>} autoComplete='off'/>
|
2025-02-18 15:41:59 +01:00
|
|
|
</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}
|
|
|
|
|
>
|
2025-03-04 19:11:24 +01:00
|
|
|
<Input prefix={<BankOutlined />} autoComplete='off' placeholder='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'/>
|
2025-02-18 15:41:59 +01:00
|
|
|
</Form.Item>
|
2025-02-19 22:21:20 +01:00
|
|
|
</>
|
2025-02-18 15:41:59 +01:00
|
|
|
)
|
|
|
|
|
}
|