diff --git a/public/admin.php b/public/admin.php index 670f490..697c4ed 100644 --- a/public/admin.php +++ b/public/admin.php @@ -2,13 +2,13 @@ // ===================================================================== // Moderation Page // Lists Contributions for Review. Moderators can approve, reject, -// edit, and delete Contributions. Includes Map Preview and Filtering. +// edit and delete Contributions. Includes Map Preview and Filtering. // // ToDo's: -// - News Management Tab (Phase 3-6) -// - User Management Tab (Phase 3-3) -// - Analytics Dashboard Tab (Phase 4-6) -// - Comment Moderation Tab (Phase 4-1) +// - Comment Moderation Tab +// - News Management Tab +// - User Management Tab +// - Analytics Tab // ===================================================================== require_once __DIR__ . '/api/db.php'; @@ -61,7 +61,7 @@ $categories = get_categories(); // Loads Contributions and Statistics // ----------------------------------------------------------------- -// All Contributions for this Municipality +// Loads all Contributions for Municipality $stmt = $pdo->prepare(" SELECT contribution_id, title, category, description, author_name, geom_type, status, likes_count, dislikes_count, created_at, updated_at @@ -92,10 +92,27 @@ $counts['total'] = count($all_contributions); Moderation — <?= htmlspecialchars($municipality['name']) ?> + + + + + + + + + + + + + + + + + @@ -104,9 +121,9 @@ $counts['total'] = count($all_contributions);
-

Moderation —

+

Moderationsportal

- Zur Karte + Bürgerportal Abmelden
@@ -127,7 +144,7 @@ $counts['total'] = count($all_contributions); Statistik @@ -139,22 +156,23 @@ $counts['total'] = count($all_contributions);
+
+
+
Alle
+
Ausstehend
-
Freigegeben
+
Akzeptiert
Abgelehnt
-
-
-
Gesamt
-
+
@@ -166,7 +184,7 @@ $counts['total'] = count($all_contributions); Ausstehend @@ -283,26 +301,26 @@ $counts['total'] = count($all_contributions); - + @@ -389,7 +407,7 @@ $counts['total'] = count($all_contributions); .then(function (data) { if (!data.features) return; - // Finds the specific Contribution + // Finds specific Contribution const feature = data.features.find(function (f) { return f.properties.contribution_id == contributionId; }); @@ -589,11 +607,11 @@ $counts['total'] = count($all_contributions); function deleteContribution(contributionId) { Swal.fire({ - title: 'Beitrag endgültig löschen?', + title: 'Beitrag löschen?', text: 'Diese Aktion kann nicht rückgängig gemacht werden.', icon: 'warning', showCancelButton: true, - confirmButtonText: 'Endgültig löschen', + confirmButtonText: 'Beitrag löschen', cancelButtonText: 'Abbrechen', confirmButtonColor: '#c62828' }).then(function (result) { @@ -607,7 +625,7 @@ $counts['total'] = count($all_contributions); Swal.fire('Fehler', response.error, 'error'); return; } - Swal.fire('Gelöscht!', 'Beitrag wurde entfernt.', 'success') + Swal.fire('Gelöscht!', 'Beitrag wurde gelöscht.', 'success') .then(function () { location.reload(); }); }); }); @@ -629,7 +647,7 @@ function show_login_page($municipality, $error = null) { - Moderation — Anmeldung + Moderation - Anmeldung @@ -638,7 +656,7 @@ function show_login_page($municipality, $error = null) {
-

Moderation

+

Moderationsportal

Bitte geben Sie das Moderationspasswort ein.

@@ -647,7 +665,7 @@ function show_login_page($municipality, $error = null) { - +