Artikel DB struktur geändert von CODEX
This commit is contained in:
1 parent
0c0a678eaa
commit
9c18234efe
95 files changed
+3872
-2316
No files matched your search
@@ -1,27 +1,31 @@
|
||||
import Link from "next/link";
|
||||
import { sites } from "../../../../_config/sites";
|
||||
import { LocationForm } from "../../../../components/location/location.form";
|
||||
import { articleFindAll } from "../../../../actions/article.actions";
|
||||
import { locationFindAll, locationTree } from "../../../../actions/location.actions";
|
||||
import { StockForm } from "../../../../components/stock/stock.form";
|
||||
import { categoryFindAll } from "../../../../actions/category.actions";
|
||||
import Link from 'next/link';
|
||||
import { sites } from '../../../../_config/sites';
|
||||
import { articleFindAll } from '../../../../actions/article.actions';
|
||||
import { locationTree } from '../../../../actions/location.actions';
|
||||
import {
|
||||
stockContentFindAll,
|
||||
stockFindAll,
|
||||
} from '../../../../actions/stock.actions';
|
||||
import { StockForm } from '../../../../components/stock/stock.form';
|
||||
|
||||
|
||||
|
||||
export default async function StockMovmentNewPage() {
|
||||
|
||||
const artikel = await articleFindAll();
|
||||
const orte = await locationTree();
|
||||
const kategorien = await categoryFindAll();
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col gap-4">
|
||||
<div>
|
||||
{sites.location.new.name}
|
||||
<StockForm article={artikel} orte={orte} categories={kategorien}></StockForm>
|
||||
</div>
|
||||
|
||||
<Link href={sites.location.url}>zurück zu {sites.location.name}</Link>
|
||||
</div>
|
||||
);
|
||||
export default async function StockMovementPage() {
|
||||
const [article, orte, stocks, contents] = await Promise.all([
|
||||
articleFindAll(),
|
||||
locationTree(),
|
||||
stockFindAll(),
|
||||
stockContentFindAll(),
|
||||
]);
|
||||
return (
|
||||
<main>
|
||||
<StockForm
|
||||
article={article}
|
||||
orte={orte}
|
||||
stocks={stocks}
|
||||
contents={contents}
|
||||
/>
|
||||
<Link className="text-sky-700 p-6" href={sites.main.url}>
|
||||
Zurück
|
||||
</Link>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user