{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/config\/form.php",
"content": "<?php ob_start(); ?>\n\n<h1><?= $isEdit ? 'Bearbeiten: ' . htmlspecialchars($config['name']) : 'Neue Konfiguration' ?><\/h1>\n\n<?php if (isset($_SESSION['error'])): ?>\n<div class=\"alert alert--error\"><?= htmlspecialchars($_SESSION['error']) ?><\/div>\n<?php unset($_SESSION['error']); endif; ?>\n\n<form class=\"form\"\n hx-post=\"<?= $isEdit ? '\/config\/' . $config['id'] : '\/config' ?>\"\n hx-headers='{\"X-CSRF-TOKEN\": \"<?= $csrfToken ?>\"}'\n hx-disabled-elt=\"button[type=submit]\">\n\n <div class=\"form-row\">\n <div class=\"form-group form-group--half\">\n <label for=\"type\">Typ *<\/label>\n <select name=\"type\" id=\"type\" class=\"form-select\" <?= $isEdit ? 'disabled' : 'required' ?>>\n <option value=\"\">-- Typ wählen --<\/option>\n <?php foreach ($types as $type): ?>\n <option value=\"<?= $type ?>\" <?= ($config['type'] ?? '') === $type ? 'selected' : '' ?>><?= $typeLabels[$type] ?? $type ?><\/option>\n <?php endforeach; ?>\n <\/select>\n <?php if ($isEdit): ?>\n <input type=\"hidden\" name=\"type\" value=\"<?= $config['type'] ?>\">\n <?php endif; ?>\n <\/div>\n <div class=\"form-group form-group--half\">\n <label for=\"status\">Status<\/label>\n <select name=\"status\" id=\"status\" class=\"form-select\">\n <option value=\"draft\" <?= ($config['status'] ?? 'draft') === 'draft' ? 'selected' : '' ?>>Entwurf<\/option>",
"numLines": 30,
"startLine": 1,
"totalLines": 167
}
}
}