presseportale/resources/views/livewire/admin/presets/partials/form-fields.blade.php
Kevin Adametz 9b47296cea
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Rebrand Hub+Flux
2026-05-20 15:44:15 +02:00

89 lines
4 KiB
PHP

<div class="grid gap-6 lg:grid-cols-[1fr,320px]">
<div class="space-y-6">
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Basisdaten') }}</span>
</div>
<div class="p-5 space-y-4">
<flux:field>
<flux:label>
{{ __('Key') }}
<span class="text-[color:var(--color-err)]">*</span>
</flux:label>
<flux:input wire:model="key" placeholder="press_releases.deleted_published_text" />
<flux:description>{{ __('Technischer Schlüssel. Erlaubt sind Kleinbuchstaben, Zahlen, Punkt, Unterstrich und Bindestrich.') }}</flux:description>
<flux:error name="key" />
</flux:field>
<div class="grid gap-4 sm:grid-cols-2">
<flux:field>
<flux:label>
{{ __('Bereich') }}
<span class="text-[color:var(--color-err)]">*</span>
</flux:label>
<flux:input wire:model="area" placeholder="press_releases" />
<flux:error name="area" />
</flux:field>
<flux:field>
<flux:label>
{{ __('Typ') }}
<span class="text-[color:var(--color-err)]">*</span>
</flux:label>
<flux:select wire:model="type">
<option value="text">{{ __('Text') }}</option>
<option value="number">{{ __('Zahl') }}</option>
<option value="boolean">{{ __('Boolean') }}</option>
<option value="json">{{ __('JSON') }}</option>
</flux:select>
<flux:error name="type" />
</flux:field>
</div>
<flux:field>
<flux:label>
{{ __('Bezeichnung') }}
<span class="text-[color:var(--color-err)]">*</span>
</flux:label>
<flux:input wire:model="label" placeholder="{{ __('Ersatztext für gelöschte veröffentlichte Pressemitteilungen') }}" />
<flux:error name="label" />
</flux:field>
</div>
</article>
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Werte') }}</span>
</div>
<div class="p-5 space-y-4">
<flux:field>
<flux:label>{{ __('Wert') }}</flux:label>
<flux:textarea wire:model="value" rows="10" />
<flux:description>{{ __('Hauptwert des Presets. Für Texte ist dies der eigentliche Inhalt.') }}</flux:description>
<flux:error name="value" />
</flux:field>
<flux:field>
<flux:label>{{ __('Payload JSON') }}</flux:label>
<flux:textarea wire:model="payload" rows="8" placeholder='{"example": true}' />
<flux:description>{{ __('Optionaler strukturierter Zusatzwert. Leer lassen, wenn nicht benötigt.') }}</flux:description>
<flux:error name="payload" />
</flux:field>
</div>
</article>
</div>
<div class="space-y-6">
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Status') }}</span>
</div>
<div class="p-5">
<flux:checkbox wire:model="isActive" label="{{ __('Aktiv') }}" />
<p class="mt-3 text-[12px] text-[color:var(--color-ink-3)] m-0">
{{ __('Nur aktive Presets werden von der Anwendung automatisch verwendet.') }}
</p>
</div>
</article>
</div>
</div>