Admin Dashboard reduziert: Nur noch Statistiken und Benutzerverwaltung-Kachel
This commit is contained in:
@@ -34,48 +34,13 @@ export default function AdminDashboardPage() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const adminModules = [
|
const adminModules = [
|
||||||
{
|
|
||||||
title: "Landwirte",
|
|
||||||
description: "Verwaltung der Landwirte und Betriebe",
|
|
||||||
icon: "👨🌾",
|
|
||||||
route: "/admin/landwirte",
|
|
||||||
color: "#4a7c59",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Benutzer",
|
title: "Benutzer",
|
||||||
description: "Benutzerverwaltung und Berechtigungen",
|
description: "Freigabe und Sperre von Benutzerkonten",
|
||||||
icon: "👥",
|
icon: "👥",
|
||||||
route: "/admin/benutzer",
|
route: "/admin/benutzer",
|
||||||
color: "#5b7ba8",
|
color: "#5b7ba8",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Medikamente",
|
|
||||||
description: "Verwaltung der Medikamentenkataloge",
|
|
||||||
icon: "💊",
|
|
||||||
route: "/admin/medikamente",
|
|
||||||
color: "#8b5a7c",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Erreger",
|
|
||||||
description: "Verwaltung der Erreger und Kürzel",
|
|
||||||
icon: "🦠",
|
|
||||||
route: "/admin/erreger",
|
|
||||||
color: "#7c5a5a",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Antibiogramm",
|
|
||||||
description: "Verwaltung der Antibiotika-Kataloge",
|
|
||||||
icon: "📊",
|
|
||||||
route: "/admin/antibiogramm",
|
|
||||||
color: "#5a7c7c",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Berichtsvorlage",
|
|
||||||
description: "Gestaltung der PDF-Berichtsvorlagen",
|
|
||||||
icon: "📄",
|
|
||||||
route: "/report-template",
|
|
||||||
color: "#7c7c5a",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -86,7 +51,7 @@ export default function AdminDashboardPage() {
|
|||||||
<p className="eyebrow">Administration</p>
|
<p className="eyebrow">Administration</p>
|
||||||
<h3>Administrator Dashboard</h3>
|
<h3>Administrator Dashboard</h3>
|
||||||
<p className="muted-text">
|
<p className="muted-text">
|
||||||
Verwalten Sie Landwirte, Benutzer, Medikamente, Erreger und Systemeinstellungen.
|
Verwalten Sie die Freigabe und Sperre von Benutzerkonten.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -142,51 +107,7 @@ export default function AdminDashboardPage() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{/* Schnellzugriffe */}
|
|
||||||
<section className="quick-actions-section">
|
|
||||||
<div className="section-card">
|
|
||||||
<div className="section-card__header">
|
|
||||||
<div>
|
|
||||||
<p className="eyebrow">Schnellzugriff</p>
|
|
||||||
<h3>Häufige Aktionen</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="quick-actions-grid">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="quick-action-button"
|
|
||||||
onClick={() => navigate("/samples/new")}
|
|
||||||
>
|
|
||||||
<span>➕</span>
|
|
||||||
<span>Neue Probe anlegen</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="quick-action-button"
|
|
||||||
onClick={() => navigate("/search/probe")}
|
|
||||||
>
|
|
||||||
<span>🔍</span>
|
|
||||||
<span>Probe suchen</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="quick-action-button"
|
|
||||||
onClick={() => navigate("/portal")}
|
|
||||||
>
|
|
||||||
<span>📧</span>
|
|
||||||
<span>Portal & Berichte</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="quick-action-button"
|
|
||||||
onClick={() => navigate("/search/landwirt")}
|
|
||||||
>
|
|
||||||
<span>👤</span>
|
|
||||||
<span>Landwirt suchen</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user