{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/stopwords\/index.php",
"content": "<div class=\"admin-container\">\n <div class=\"admin-header\">\n <h1>Stopwords<\/h1>\n <p class=\"admin-subtitle\">Filter für Entity-Extraction - generische Begriffe ausschließen<\/p>\n <\/div>\n\n <?php if (isset($_SESSION['success'])): ?>\n <div class=\"alert alert-success\"><?= htmlspecialchars($_SESSION['success']) ?><\/div>\n <?php unset($_SESSION['success']); ?>\n <?php endif; ?>\n\n <?php if (isset($_SESSION['error'])): ?>\n <div class=\"alert alert-error\"><?= htmlspecialchars($_SESSION['error']) ?><\/div>\n <?php unset($_SESSION['error']); ?>\n <?php endif; ?>\n\n <div class=\"admin-stats\">\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $stats['total'] ?? 0 ?><\/span>\n <span class=\"stat-label\">Gesamt<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $stats['active'] ?? 0 ?><\/span>\n <span class=\"stat-label\">Aktiv<\/span>\n <\/div>\n <?php foreach (($stats['by_category'] ?? []) as $cat => $data): ?>\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $data['active'] ?>\/<?= $data['count'] ?><\/span>\n <span class=\"stat-label\"><?= htmlspecialchars(ucfirst($cat)) ?><\/span>\n <\/div>\n <?php endforeach; ?>\n <\/div>\n\n <div class=\"admin-toolbar\">\n <a href=\"\/stopwords\/new\" class=\"btn btn-primary\">+ Neues Stopword<\/a>\n\n <div class=\"toolbar-filters\">\n <select onchange=\"location.href='\/stopwords?category='+this.value+'<?= $showAll ? '&all=1' : '' ?>'\">\n <option value=\"\">Alle Kategorien<\/option>\n <option value=\"generic\" <?= $currentCategory === 'generic' ? 'selected' : '' ?>>Generisch<\/option>\n <option value=\"domain_specific\" <?= $currentCategory === 'domain_specific' ? 'selected' : '' ?>>Domain-spezifisch<\/option>\n <option value=\"context_dependent\" <?= $currentCategory === 'context_dependent' ? 'selected' : '' ?>>Kontextabhängig<\/option>\n <\/select>\n\n <label class=\"checkbox-label\">\n <input type=\"checkbox\" onchange=\"location.href='\/stopwords?<?= $currentCategory ? 'category='.$currentCategory.'&' : '' ?>all='+(this.checked?'1':'0')\" <?= $showAll ? 'checked' : '' ?>>\n Inaktive zeigen\n <\/label>\n <\/div>\n <\/div>\n\n <div class=\"admin-table-container\">\n <table class=\"admin-table\">\n <thead>\n <tr>\n <th>Wort<\/th>\n <th>Canonical<\/th>\n <th>Kategorie<\/th>\n <th>Begründung<\/th>\n <th>Status<\/th>\n <th>Aktionen<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php if (empty($stopwords)): ?>\n <tr>\n <td colspan=\"6\" class=\"text-center text-muted\">Keine Stopwords gefunden<\/td>\n <\/tr>\n <?php else: ?>\n <?php foreach ($stopwords as $sw): ?>\n <tr class=\"<?= $sw['is_active'] ? '' : 'row-inactive' ?>\">\n <td><strong><?= htmlspecialchars($sw['word']) ?><\/strong><\/td>\n <td><code><?= htmlspecialchars($sw['canonical_form']) ?><\/code><\/td>\n <td>\n <span class=\"badge badge-<?= $sw['category'] === 'generic' ? 'default' : ($sw['category'] === 'domain_specific' ? 'info' : 'warning') ?>\">\n <?= htmlspecialchars($sw['category']) ?>\n <\/span>\n <\/td>\n <td class=\"text-small\"><?= htmlspecialchars($sw['reason'] ?? '-') ?><\/td>\n <td>\n <?php if ($sw['is_active']): ?>\n <span class=\"badge badge-success\">Aktiv<\/span>\n <?php else: ?>\n <span class=\"badge badge-muted\">Inaktiv<\/span>\n <?php endif; ?>\n <\/td>\n <td class=\"actions\">\n <a href=\"\/stopwords\/<?= $sw['id'] ?>\" class=\"btn btn-sm\">Bearbeiten<\/a>\n <form method=\"post\" action=\"\/stopwords\/<?= $sw['id'] ?>\/toggle\" style=\"display:inline;\">\n <input type=\"hidden\" name=\"_csrf_token\" value=\"<?= htmlspecialchars($_SESSION['_csrf_token'] ?? '') ?>\">\n <button type=\"submit\" class=\"btn btn-sm btn-outline\">\n <?= $sw['is_active'] ? 'Deaktivieren' : 'Aktivieren' ?>\n <\/button>\n <\/form>\n <\/td>\n <\/tr>\n <?php endforeach; ?>\n <?php endif; ?>\n <\/tbody>\n <\/table>\n <\/div>\n<\/div>\n"
}
}
{
"tool_response": {
"type": "create",
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/stopwords\/index.php",
"content": "<div class=\"admin-container\">\n <div class=\"admin-header\">\n <h1>Stopwords<\/h1>\n <p class=\"admin-subtitle\">Filter für Entity-Extraction - generische Begriffe ausschließen<\/p>\n <\/div>\n\n <?php if (isset($_SESSION['success'])): ?>\n <div class=\"alert alert-success\"><?= htmlspecialchars($_SESSION['success']) ?><\/div>\n <?php unset($_SESSION['success']); ?>\n <?php endif; ?>\n\n <?php if (isset($_SESSION['error'])): ?>\n <div class=\"alert alert-error\"><?= htmlspecialchars($_SESSION['error']) ?><\/div>\n <?php unset($_SESSION['error']); ?>\n <?php endif; ?>\n\n <div class=\"admin-stats\">\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $stats['total'] ?? 0 ?><\/span>\n <span class=\"stat-label\">Gesamt<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $stats['active'] ?? 0 ?><\/span>\n <span class=\"stat-label\">Aktiv<\/span>\n <\/div>\n <?php foreach (($stats['by_category'] ?? []) as $cat => $data): ?>\n <div class=\"stat-card\">\n <span class=\"stat-value\"><?= $data['active'] ?>\/<?= $data['count'] ?><\/span>\n <span class=\"stat-label\"><?= htmlspecialchars(ucfirst($cat)) ?><\/span>\n <\/div>\n <?php endforeach; ?>\n <\/div>\n\n <div class=\"admin-toolbar\">\n <a href=\"\/stopwords\/new\" class=\"btn btn-primary\">+ Neues Stopword<\/a>\n\n <div class=\"toolbar-filters\">\n <select onchange=\"location.href='\/stopwords?category='+this.value+'<?= $showAll ? '&all=1' : '' ?>'\">\n <option value=\"\">Alle Kategorien<\/option>\n <option value=\"generic\" <?= $currentCategory === 'generic' ? 'selected' : '' ?>>Generisch<\/option>\n <option value=\"domain_specific\" <?= $currentCategory === 'domain_specific' ? 'selected' : '' ?>>Domain-spezifisch<\/option>\n <option value=\"context_dependent\" <?= $currentCategory === 'context_dependent' ? 'selected' : '' ?>>Kontextabhängig<\/option>\n <\/select>\n\n <label class=\"checkbox-label\">\n <input type=\"checkbox\" onchange=\"location.href='\/stopwords?<?= $currentCategory ? 'category='.$currentCategory.'&' : '' ?>all='+(this.checked?'1':'0')\" <?= $showAll ? 'checked' : '' ?>>\n Inaktive zeigen\n <\/label>\n <\/div>\n <\/div>\n\n <div class=\"admin-table-container\">\n <table class=\"admin-table\">\n <thead>\n <tr>\n <th>Wort<\/th>\n <th>Canonical<\/th>\n <th>Kategorie<\/th>\n <th>Begründung<\/th>\n <th>Status<\/th>\n <th>Aktionen<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php if (empty($stopwords)): ?>\n <tr>\n <td colspan=\"6\" class=\"text-center text-muted\">Keine Stopwords gefunden<\/td>\n <\/tr>\n <?php else: ?>\n <?php foreach ($stopwords as $sw): ?>\n <tr class=\"<?= $sw['is_active'] ? '' : 'row-inactive' ?>\">\n <td><strong><?= htmlspecialchars($sw['word']) ?><\/strong><\/td>\n <td><code><?= htmlspecialchars($sw['canonical_form']) ?><\/code><\/td>\n <td>\n <span class=\"badge badge-<?= $sw['category'] === 'generic' ? 'default' : ($sw['category'] === 'domain_specific' ? 'info' : 'warning') ?>\">\n <?= htmlspecialchars($sw['category']) ?>\n <\/span>\n <\/td>\n <td class=\"text-small\"><?= htmlspecialchars($sw['reason'] ?? '-') ?><\/td>\n <td>\n <?php if ($sw['is_active']): ?>\n <span class=\"badge badge-success\">Aktiv<\/span>\n <?php else: ?>\n <span class=\"badge badge-muted\">Inaktiv<\/span>\n <?php endif; ?>\n <\/td>\n <td class=\"actions\">\n <a href=\"\/stopwords\/<?= $sw['id'] ?>\" class=\"btn btn-sm\">Bearbeiten<\/a>\n <form method=\"post\" action=\"\/stopwords\/<?= $sw['id'] ?>\/toggle\" style=\"display:inline;\">\n <input type=\"hidden\" name=\"_csrf_token\" value=\"<?= htmlspecialchars($_SESSION['_csrf_token'] ?? '') ?>\">\n <button type=\"submit\" class=\"btn btn-sm btn-outline\">\n <?= $sw['is_active'] ? 'Deaktivieren' : 'Aktivieren' ?>\n <\/button>\n <\/form>\n <\/td>\n <\/tr>\n <?php endforeach; ?>\n <?php endif; ?>\n <\/tbody>\n <\/table>\n <\/div>\n<\/div>\n",
"structuredPatch": [],
"originalFile": null
}
}