import { Form, InputNumber } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
//TODO Fix up styles.
export default function ShopInfoRbacComponent({ form }) {
  const { t } = useTranslation();

  return (
    <div>
      <LayoutFormRow>
        <Form.Item
          label={t("bodyshop.fields.rbac.accounting.payables")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "accounting:payables"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.accounting.payments")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "accounting:payments"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.accounting.receivables")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "accounting:receivables"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.csi.page")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "csi:page"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.csi.export")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "csi:export"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.contracts.create")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "contracts:create"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.contracts.detail")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "contracts:detail"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.contracts.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "contracts:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.courtesycar.create")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "courtesycar:create"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.courtesycar.detail")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "courtesycar:detail"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.courtesycar.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "courtesycar:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.list-active")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:list-active"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.list-all")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:list-all"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.available-list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:available-list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.create")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:create"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.intake")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:intake"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.close")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:close"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.deliver")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:deliver"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.jobs.detail")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "jobs:detail"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.bills.enter")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "bills:enter"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.bills.view")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "bills:view"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.bills.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "bills:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.employees.page")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "employees:page"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.owners.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "owners:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.owners.detail")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "owners:detail"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.payments.enter")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "payments:enter"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.payments.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "payments:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.production.board")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "production:board"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.production.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "production:list"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.schedule.view")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "schedule:view"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.scoreboard.view")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "scoreboard:view"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.shiftclock.view")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "shiftclock:view"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.shop.vendors")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "shop:vendors"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.shop.rbac")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "shop:rbac"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.shop.templates")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "shop:templates"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.timetickets.enter")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "timetickets:enter"]}
        >
          <InputNumber />
        </Form.Item>
        <Form.Item
          label={t("bodyshop.fields.rbac.timetickets.list")}
          rules={[
            {
              required: true,
              message: t("general.validation.required"),
            },
          ]}
          name={["md_rbac", "timetickets:list"]}
        >
          <InputNumber />
        </Form.Item>
      </LayoutFormRow>
    </div>
  );
}
