Backup #94
| ID | 94 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/contracts/new.php |
| Version | 1 |
| Typ |
modified |
| Größe | 2.0 KB |
| Hash | 5fa7e4e9b248e90b923e63bd2485dbfaae3fb17c780397534ef0eec1f8ba4a9e |
| Datum | 2025-12-20 19:17:08 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/contracts">Contracts</a> » Neu
</nav>
<h1>Neuer Contract</h1>
<?php if (isset($_SESSION['error'])): ?>
<div class="alert alert--error"><?= htmlspecialchars($_SESSION['error']) ?></div>
<?php unset($_SESSION['error']); ?>
<?php endif; ?>
<form class="form" method="post" action="/contracts" style="max-width: 800px;">
<div class="form-group">
<label for="name">Name *</label>
<input type="text" id="name" name="name" class="form-input" required
placeholder="z.B. view-structure-contract">
</div>
<div class="form-group">
<label for="version">Version</label>
<input type="text" id="version" name="version" class="form-input" value="1.0"
placeholder="z.B. 1.0">
</div>
<div class="form-group">
<label for="status">Status</label>
<select id="status" name="status" class="form-select">
<option value="active">Aktiv</option>
<option value="draft">Entwurf</option>
</select>
</div>
<div class="form-group">
<label for="scope_description">Scope-Beschreibung</label>
<input type="text" id="scope_description" name="scope_description" class="form-input"
placeholder="Kurze Beschreibung des Geltungsbereichs">
</div>
<div class="form-group">
<label for="yaml_content">YAML-Inhalt *</label>
<textarea id="yaml_content" name="yaml_content" class="form-textarea" rows="25" required
style="font-family: monospace; font-size: 13px;"
placeholder="contract:
name: my-contract
version: '1.0'
status: active
scope:
description: Beschreibung
validation:
rules: []"></textarea>
</div>
<div class="form-actions">
<button type="submit" class="btn btn--primary">Contract erstellen</button>
<a href="/contracts" class="btn">Abbrechen</a>
</div>
</form>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>
Vollständig herunterladen
Aktionen
← Zurück zur Übersicht