mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
More demo data
This commit is contained in:
@ -2,11 +2,15 @@ import { Trans } from '@lingui/macro';
|
|||||||
import { Alert, Group, Stack } from '@mantine/core';
|
import { Alert, Group, Stack } from '@mantine/core';
|
||||||
import { Button } from '@mantine/core';
|
import { Button } from '@mantine/core';
|
||||||
import {
|
import {
|
||||||
|
IconAlertCircle,
|
||||||
IconBuilding,
|
IconBuilding,
|
||||||
IconGlobe,
|
IconGlobe,
|
||||||
IconKey,
|
IconKey,
|
||||||
|
IconLink,
|
||||||
IconMail,
|
IconMail,
|
||||||
IconUser
|
IconSitemap,
|
||||||
|
IconUser,
|
||||||
|
IconVersions
|
||||||
} from '@tabler/icons-react';
|
} from '@tabler/icons-react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
@ -25,18 +29,36 @@ export default function Home() {
|
|||||||
const [salesOrderFormOpened, setSalesOrderFormOpened] = useState(false);
|
const [salesOrderFormOpened, setSalesOrderFormOpened] = useState(false);
|
||||||
|
|
||||||
const partFields: ApiFormFieldType[] = [
|
const partFields: ApiFormFieldType[] = [
|
||||||
|
{
|
||||||
|
name: 'category'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'name'
|
name: 'name'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'IPN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'revision',
|
||||||
|
icon: <IconVersions />
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'description'
|
name: 'description'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'variant_of',
|
||||||
|
icon: <IconSitemap />
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'keywords',
|
name: 'keywords',
|
||||||
icon: <IconKey />
|
icon: <IconKey />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'category'
|
name: 'units'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'link',
|
||||||
|
icon: <IconLink />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'assembly'
|
name: 'assembly'
|
||||||
@ -48,7 +70,8 @@ export default function Home() {
|
|||||||
name: 'virtual'
|
name: 'virtual'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'minimum_stock'
|
name: 'minimum_stock',
|
||||||
|
icon: <IconAlertCircle />
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user