edit.php
- Pfad:
src/View/contracts/edit.php - Namespace: -
- Zeilen: 46 | Größe: 1,784 Bytes
- Geändert: 2025-12-27 14:06:24 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Versionen 3
-
v3
2025-12-27 14:06 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v2
2025-12-27 12:51 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v1
2025-12-20 19:17 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation
Code
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/contracts">Contracts</a> »
<a href="/contracts/<?= $contract['id'] ?>"><?= htmlspecialchars($contract['name']) ?></a> »
Bearbeiten
</nav>
<h1>Contract bearbeiten</h1>
<p>Aktuelle Version: <strong><?= htmlspecialchars($contract['version']) ?></strong></p>
<form class="form" style="max-width: 800px;"
hx-post="/contracts/<?= $contract['id'] ?>"
hx-headers='{"X-CSRF-TOKEN": "<?= $csrfToken ?>"}'
hx-disabled-elt="button[type=submit]">
<div class="form-group">
<label for="new_version">Neue Version *</label>
<input type="text" id="new_version" name="new_version" class="form-input" required
placeholder="z.B. <?= htmlspecialchars($contract['version']) ?>.1"
value="">
<small>Muss sich von der aktuellen Version unterscheiden.</small>
</div>
<div class="form-group">
<label for="change_description">Änderungsbeschreibung</label>
<input type="text" id="change_description" name="change_description" class="form-input"
placeholder="Was wurde geändert?">
</div>
<div class="form-group">
<label for="yaml_content">YAML-Inhalt *</label>
<textarea id="yaml_content" name="yaml_content" class="form-textarea" rows="30" required
style="font-family: monospace; font-size: 13px;"><?= htmlspecialchars($contract['yaml_content']) ?></textarea>
</div>
<div class="form-actions">
<button type="submit" class="btn btn--primary">Neue Version speichern</button>
<a href="/contracts/<?= $contract['id'] ?>" class="btn">Abbrechen</a>
</div>
</form>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>