Admin Dashboard reduziert: Nur noch Statistiken und Benutzerverwaltung-Kachel
This commit is contained in:
@@ -34,48 +34,13 @@ export default function AdminDashboardPage() {
|
||||
}, []);
|
||||
|
||||
const adminModules = [
|
||||
{
|
||||
title: "Landwirte",
|
||||
description: "Verwaltung der Landwirte und Betriebe",
|
||||
icon: "👨🌾",
|
||||
route: "/admin/landwirte",
|
||||
color: "#4a7c59",
|
||||
},
|
||||
{
|
||||
title: "Benutzer",
|
||||
description: "Benutzerverwaltung und Berechtigungen",
|
||||
description: "Freigabe und Sperre von Benutzerkonten",
|
||||
icon: "👥",
|
||||
route: "/admin/benutzer",
|
||||
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 (
|
||||
@@ -86,7 +51,7 @@ export default function AdminDashboardPage() {
|
||||
<p className="eyebrow">Administration</p>
|
||||
<h3>Administrator Dashboard</h3>
|
||||
<p className="muted-text">
|
||||
Verwalten Sie Landwirte, Benutzer, Medikamente, Erreger und Systemeinstellungen.
|
||||
Verwalten Sie die Freigabe und Sperre von Benutzerkonten.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
@@ -142,51 +107,7 @@ export default function AdminDashboardPage() {
|
||||
</div>
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user