Backup #1735
| ID | 1735 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/stopwords/edit.php |
| Version | 1 |
| Typ |
modified |
| Größe | 3.1 KB |
| Hash | 5196005672481916139957b1d00c631715ff4debab9d546ad1eb43ade77b3977 |
| Datum | 2025-12-27 12:38:45 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Write-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/semantic-explorer">Semantic Explorer</a> »
<a href="/semantic-explorer/stopwords">Stopwords</a> » <?= htmlspecialchars($stopword['word']) ?>
</nav>
<h1>Stopword: <?= htmlspecialchars($stopword['word']) ?></h1>
<form id="stopword-form" method="post" action="/semantic-explorer/stopwords/<?= $stopword['id'] ?>" class="form" style="max-width: 600px;">
<input type="hidden" name="_csrf_token" value="<?= htmlspecialchars($_SESSION['_csrf_token'] ?? '') ?>">
<div class="form-group">
<label for="word">Wort *</label>
<input type="text" id="word" name="word" class="form-input" required value="<?= htmlspecialchars($stopword['word']) ?>">
</div>
<div class="form-group">
<label for="category">Kategorie</label>
<select id="category" name="category" class="form-select">
<option value="generic" <?= $stopword['category'] === 'generic' ? 'selected' : '' ?>>Generisch - Immer ausschliessen</option>
<option value="domain_specific" <?= $stopword['category'] === 'domain_specific' ? 'selected' : '' ?>>Domain-spezifisch</option>
<option value="context_dependent" <?= $stopword['category'] === 'context_dependent' ? 'selected' : '' ?>>Kontextabhaengig</option>
</select>
</div>
<div class="form-group">
<label for="reason">Begruendung</label>
<input type="text" id="reason" name="reason" class="form-input" value="<?= htmlspecialchars($stopword['reason'] ?? '') ?>">
</div>
<div class="form-group">
<label class="checkbox-inline">
<input type="checkbox" name="is_active" value="1" <?= $stopword['is_active'] ? 'checked' : '' ?>>
Aktiv
</label>
</div>
<div class="form-info">
<p><strong>Canonical Form:</strong> <code><?= htmlspecialchars($stopword['canonical_form']) ?></code></p>
<p><strong>Erstellt:</strong> <?= htmlspecialchars($stopword['created_at']) ?></p>
<p><strong>Aktualisiert:</strong> <?= htmlspecialchars($stopword['updated_at']) ?></p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn--primary">Speichern</button>
<button type="button" class="btn btn--danger" onclick="if(confirm('Stopword wirklich loeschen?')) { document.getElementById('delete-form').submit(); }">Loeschen</button>
<a href="/semantic-explorer/stopwords" class="btn">Abbrechen</a>
</div>
</form>
<form id="delete-form" method="post" action="/semantic-explorer/stopwords/<?= $stopword['id'] ?>/delete" style="display:none;">
<input type="hidden" name="_csrf_token" value="<?= htmlspecialchars($_SESSION['_csrf_token'] ?? '') ?>">
</form>
<?php if (isset($_SESSION['success'])): ?>
<div class="form-message form-message--success"><?= htmlspecialchars($_SESSION['success']) ?></div>
<?php unset($_SESSION['success']); ?>
<?php endif; ?>
<?php if (isset($_SESSION['error'])): ?>
<div class="form-message form-message--error"><?= htmlspecialchars($_SESSION['error']) ?></div>
<?php unset($_SESSION['error']); ?>
<?php endif; ?>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>
Vollständig herunterladen
Aktionen
← Zurück zur Übersicht