Backup #191

ID191
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/content/new.php
Version4
Typ modified
Größe5.2 KB
Hash43e431a8ec375978f7ce8577cc8c53af0b20f38ecfac9772e1d943e7d43ead94
Datum2025-12-21 14:36:48
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Edit-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/content">Content Studio</a> &raquo; Neuer Auftrag
</nav>

<h1>Neuer Auftrag</h1>

<form class="form" method="post" action="/content" style="max-width: 700px;">
    <?= $csrfField ?>

    <fieldset>
        <legend>Inhalt</legend>
        <div class="form-group">
            <label for="title">Titel *</label>
            <input type="text" id="title" name="title" class="form-input" required
                   placeholder="z.B. Blogpost über Teamcoaching">
        </div>
        <div class="form-group">
            <label for="briefing">Briefing *</label>
            <textarea id="briefing" name="briefing" class="form-textarea" rows="6" required
                      placeholder="Beschreibe, was der Content enthalten soll."></textarea>
        </div>
    </fieldset>

    <fieldset>
        <legend>KI-Einstellungen</legend>
        <div class="form-row">
            <div class="form-group form-group--half">
                <label for="model">Sprachmodell</label>
                <select id="model" name="model" class="form-select">
                    <?php foreach ($models ?? [] as $modelId => $modelName): ?>
                    <option value="<?= $modelId ?>" <?= $modelId === 'claude-sonnet-4-20250514' ? 'selected' : '' ?>><?= htmlspecialchars($modelName) ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="form-group form-group--half">
                <label for="context_limit">Kontext-Quellen</label>
                <select id="context_limit" name="context_limit" class="form-select">
                    <option value="3">3 Quellen</option>
                    <option value="5" selected>5 Quellen</option>
                    <option value="10">10 Quellen</option>
                    <option value="15">15 Quellen</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label>Collections (Wissensquellen)</label>
            <div class="checkbox-group">
                <?php foreach ($collections ?? [] as $collection): ?>
                <label class="checkbox-label">
                    <input type="checkbox" name="collections[]" value="<?= htmlspecialchars($collection) ?>"
                           <?= $collection === 'documents' ? 'checked' : '' ?>>
                    <?= htmlspecialchars($collection) ?>
                </label>
                <?php endforeach; ?>
            </div>
        </div>
    </fieldset>

    <fieldset>
        <legend>Content-Konfiguration</legend>
        <div class="form-row">
            <div class="form-group form-group--third">
                <label for="author_profile_id">Autorenprofil</label>
                <select id="author_profile_id" name="author_profile_id" class="form-select">
                    <option value="">-- Kein Profil --</option>
                    <?php foreach ($profiles ?? [] as $profile): ?>
                    <option value="<?= $profile['id'] ?>"><?= htmlspecialchars($profile['name']) ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="form-group form-group--third">
                <label for="contract_id">Contract</label>
                <select id="contract_id" name="contract_id" class="form-select">
                    <option value="">-- Kein Contract --</option>
                    <?php foreach ($contracts ?? [] as $contract): ?>
                    <option value="<?= $contract['id'] ?>"><?= htmlspecialchars($contract['name']) ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="form-group form-group--third">
                <label for="structure_id">Struktur</label>
                <select id="structure_id" name="structure_id" class="form-select">
                    <option value="">-- Keine Struktur --</option>
                    <?php foreach ($structures ?? [] as $structure): ?>
                    <option value="<?= $structure['id'] ?>"><?= htmlspecialchars($structure['name']) ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
        </div>
    </fieldset>

    <div class="form-actions">
        <button type="submit" name="action" value="save" class="btn">Nur speichern</button>
        <button type="submit" name="action" value="generate" class="btn btn--primary">Erstellen & Generieren</button>
        <a href="/content" class="btn btn--secondary">Abbrechen</a>
    </div>
</form>

<style>
.form-row { display: flex; gap: var(--space-md); }
.form-group--half { flex: 1; }
.form-group--third { flex: 1; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-bg-muted); border-radius: 4px; cursor: pointer; }
.checkbox-label:hover { background: var(--color-bg-hover); }
fieldset { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); }
legend { font-weight: 600; padding: 0 0.5rem; }
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}
</style>

<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>

Vollständig herunterladen

Aktionen

Herunterladen

Andere Versionen dieser Datei

ID Version Typ Größe Datum
2187 21 modified 20.1 KB 2025-12-30 22:51
2181 20 modified 16.5 KB 2025-12-30 22:41
2180 19 modified 14.9 KB 2025-12-30 22:40
2179 18 modified 13.3 KB 2025-12-30 22:39
2175 17 modified 13.0 KB 2025-12-30 22:36
2174 16 modified 11.8 KB 2025-12-30 22:36
2173 15 modified 10.7 KB 2025-12-30 22:35
2171 14 modified 8.3 KB 2025-12-30 22:32
2170 13 modified 5.5 KB 2025-12-30 22:31
1769 12 modified 5.4 KB 2025-12-27 12:55
213 11 modified 5.4 KB 2025-12-21 17:02
212 10 modified 5.3 KB 2025-12-21 17:02
211 9 modified 5.2 KB 2025-12-21 17:02
210 8 modified 5.2 KB 2025-12-21 17:02
209 7 modified 5.0 KB 2025-12-21 17:01
208 6 modified 4.9 KB 2025-12-21 17:01
201 5 modified 5.5 KB 2025-12-21 14:44
191 4 modified 5.2 KB 2025-12-21 14:36
171 3 modified 5.1 KB 2025-12-21 04:13
159 2 modified 2.3 KB 2025-12-21 03:00
100 1 modified 2.3 KB 2025-12-20 19:18

← Zurück zur Übersicht