107 lines
3.6 KiB
JavaScript
107 lines
3.6 KiB
JavaScript
import React from "react";
|
|
import { Form, Input, Button, Collapse, InputNumber } from "antd";
|
|
import { useTranslation } from "react-i18next";
|
|
import ShopInfoROStatusComponent from "./shop-info.rostatus.component";
|
|
import ShopInfoOrderStatusComponent from "./shop-info.orderstatus.component";
|
|
import ShopInfoResponsibilityCenterComponent from "./shop-info.responsibilitycenters.component";
|
|
|
|
export default function ShopInfoComponent({ form }) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div>
|
|
<Button type="primary" htmlType="submit">
|
|
{t("general.actions.save")}
|
|
</Button>
|
|
<Collapse defaultActiveKey="shopinfo">
|
|
<Collapse.Panel key="shopinfo" header={t("bodyshop.labels.shopinfo")}>
|
|
<Form.Item label={t("bodyshop.fields.shopname")} name="shopname">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.address1")} name="address1">
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item label={t("bodyshop.fields.address2")} name="address2">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.city")} name="city">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.state")} name="state">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.zip_post")} name="zip_post">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.country")} name="country">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item label={t("bodyshop.fields.email")} name="email">
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.federal_tax_id")}
|
|
name="federal_tax_id"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.insurance_vendor_id")}
|
|
name="insurance_vendor_id"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.logo_img_path")}
|
|
name="logo_img_path"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.state_tax_id")}
|
|
name="state_tax_id"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.invoice_federal_tax_rate")}
|
|
name={["invoice_tax_rates", "federal_tax_rate"]}
|
|
>
|
|
<InputNumber />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.invoice_state_tax_rate")}
|
|
name={["invoice_tax_rates", "state_tax_rate"]}
|
|
>
|
|
<InputNumber />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.invoice_local_tax_rate")}
|
|
name={["invoice_tax_rates", "local_tax_rate"]}
|
|
>
|
|
<InputNumber />
|
|
</Form.Item>
|
|
</Collapse.Panel>
|
|
<Collapse.Panel
|
|
key="roStatus"
|
|
header={t("bodyshop.labels.jobstatuses")}
|
|
>
|
|
<ShopInfoROStatusComponent form={form} />
|
|
</Collapse.Panel>
|
|
<Collapse.Panel
|
|
key="orderStatus"
|
|
header={t("bodyshop.labels.orderstatuses")}
|
|
>
|
|
<ShopInfoOrderStatusComponent form={form} />
|
|
</Collapse.Panel>
|
|
<Collapse.Panel
|
|
key="responsibilityCenters"
|
|
header={t("bodyshop.labels.responsibilitycenters.title")}
|
|
>
|
|
<ShopInfoResponsibilityCenterComponent form={form} />
|
|
</Collapse.Panel>
|
|
</Collapse>
|
|
</div>
|
|
);
|
|
}
|