Logbook
This commit is contained in:
46
apps/hub/app/(app)/logbook/_components/LogbookTable.tsx
Normal file
46
apps/hub/app/(app)/logbook/_components/LogbookTable.tsx
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
import { PaginatedTable } from "../../../_components/PaginatedTable";
|
||||||
|
|
||||||
|
export default async () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<PaginatedTable
|
||||||
|
prismaModel="user"
|
||||||
|
searchFields={["publicId", "firstname", "lastname", "email"]}
|
||||||
|
columns={[
|
||||||
|
{
|
||||||
|
header: "Station",
|
||||||
|
accessorKey: "station",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Alarmzeit",
|
||||||
|
accessorKey: "alarm",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Status 3",
|
||||||
|
accessorKey: "s3",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Status 4",
|
||||||
|
accessorKey: "s4",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Status 7",
|
||||||
|
accessorKey: "s7",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Status 8",
|
||||||
|
accessorKey: "s8",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Status 1",
|
||||||
|
accessorKey: "s1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Flugzeit",
|
||||||
|
accessorKey: "fz",
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
17
apps/hub/app/(app)/logbook/page.tsx
Normal file
17
apps/hub/app/(app)/logbook/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { NotebookText } from "lucide-react";
|
||||||
|
import LogbookTable from "./_components/LogbookTable";
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
return (
|
||||||
|
<div className="grid grid-cols-6 gap-4">
|
||||||
|
<div className="col-span-full">
|
||||||
|
<p className="text-2xl font-semibold text-left flex items-center gap-2">
|
||||||
|
<NotebookText className="w-5 h-5" /> Logbook
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="card bg-base-200 shadow-xl mb-4 col-span-6">
|
||||||
|
<LogbookTable />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -28,7 +28,7 @@ export default function Home() {
|
|||||||
</span>
|
</span>
|
||||||
<Link
|
<Link
|
||||||
className="badge badge-sm badge-info badge-outline"
|
className="badge badge-sm badge-info badge-outline"
|
||||||
href="/settings"
|
href="/logbook"
|
||||||
>
|
>
|
||||||
Zum vollständigen Logbook <ArrowRight className="w-4 h-4" />
|
Zum vollständigen Logbook <ArrowRight className="w-4 h-4" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const VerticalNav = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link href="/events">
|
<Link href="/logbook">
|
||||||
<ReaderIcon />
|
<ReaderIcon />
|
||||||
Logbook
|
Logbook
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user