Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5790ce9bc |
@ -57,12 +57,11 @@ const menuAside: MenuAsideItem[] = [
|
||||
permissions: 'READ_SUPPLIERS'
|
||||
},
|
||||
{
|
||||
href: '/receptions/receptions-list',
|
||||
label: 'Receptions',
|
||||
href: '/recepcion',
|
||||
label: 'Recepción',
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
icon: 'mdiClipboardText' in icon ? icon['mdiClipboardText' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
|
||||
permissions: 'READ_RECEPTIONS'
|
||||
},
|
||||
{
|
||||
href: '/quotes/quotes-list',
|
||||
@ -176,4 +175,4 @@ const menuAside: MenuAsideItem[] = [
|
||||
},
|
||||
]
|
||||
|
||||
export default menuAside
|
||||
export default menuAside
|
||||
51
frontend/src/pages/recepcion.tsx
Normal file
51
frontend/src/pages/recepcion.tsx
Normal file
@ -0,0 +1,51 @@
|
||||
import { mdiClipboardText, mdiCar, mdiPackageVariantClosed } from '@mdi/js';
|
||||
import Head from 'next/head';
|
||||
import React, { ReactElement } from 'react';
|
||||
import CardBox from '../components/CardBox';
|
||||
import LayoutAuthenticated from '../layouts/Authenticated';
|
||||
import SectionMain from '../components/SectionMain';
|
||||
import SectionTitleLineWithButton from '../components/SectionTitleLineWithButton';
|
||||
import BaseButton from '../components/BaseButton';
|
||||
import BaseButtons from '../components/BaseButtons';
|
||||
import { getPageTitle } from '../config';
|
||||
|
||||
const Recepcion = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{getPageTitle('Recepción')}</title>
|
||||
</Head>
|
||||
<SectionMain>
|
||||
<SectionTitleLineWithButton icon={mdiClipboardText} title="Recepción" main>
|
||||
{''}
|
||||
</SectionTitleLineWithButton>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<CardBox className="flex flex-col items-center justify-center p-8">
|
||||
<h2 className="text-xl font-bold mb-6">Automotor</h2>
|
||||
<BaseButton
|
||||
href="/receptions/automotor-form"
|
||||
color="info"
|
||||
label="Ingresar Automotor"
|
||||
icon={mdiCar}
|
||||
/>
|
||||
</CardBox>
|
||||
<CardBox className="flex flex-col items-center justify-center p-8">
|
||||
<h2 className="text-xl font-bold mb-6">En Mano</h2>
|
||||
<BaseButton
|
||||
href="/receptions/en-mano-form"
|
||||
color="success"
|
||||
label="Ingresar En Mano"
|
||||
icon={mdiPackageVariantClosed}
|
||||
/>
|
||||
</CardBox>
|
||||
</div>
|
||||
</SectionMain>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Recepcion.getLayout = function getLayout(page: ReactElement) {
|
||||
return <LayoutAuthenticated>{page}</LayoutAuthenticated>;
|
||||
};
|
||||
|
||||
export default Recepcion;
|
||||
Loading…
x
Reference in New Issue
Block a user