Texte, Medienzuordnung und Einordnung teilen sich einen Arbeitsplatz. Fassungen, Rechte und das Datenmodell bleiben unverändert.
33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
@php
|
|
$editable = $this->canEditEditorial();
|
|
$options = [
|
|
'kinds' => \App\Domain\Catalog\EditorialContentKind::selectOptions(),
|
|
'pillars' => \App\Domain\Catalog\Pillar::query()->orderBy('name')->get(['id', 'name']),
|
|
'dimensions' => \App\Domain\Catalog\EditorialDimension::forSubject($this->getRecord()),
|
|
];
|
|
@endphp
|
|
<div class="luf-field">
|
|
<label for="redaktion-art">Inhaltsart</label>
|
|
<select id="redaktion-art" wire:model="kindId" @disabled(! $editable)>
|
|
<option value="">Keine</option>
|
|
@foreach ($options['kinds'] as $id => $label)
|
|
<option value="{{ $id }}">{{ $label }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<fieldset class="luf-checks">
|
|
<legend>Fachliche Säulen</legend>
|
|
@foreach ($options['pillars'] as $pillar)
|
|
<label><input type="checkbox" value="{{ $pillar->id }}" wire:model="pillarIds" @disabled(! $editable)> {{ $pillar->name }}</label>
|
|
@endforeach
|
|
</fieldset>
|
|
@foreach ($options['dimensions'] as $dimension)
|
|
<fieldset class="luf-checks">
|
|
<legend>{{ $dimension->label }}</legend>
|
|
@foreach ($dimension->values as $value)
|
|
<label><input type="checkbox" value="{{ $value->id }}" wire:model="dimensionIds" @disabled(! $editable)> {{ $value->label }}</label>
|
|
@endforeach
|
|
</fieldset>
|
|
@endforeach
|
|
<p class="luf-note">Inhaltsart, Säule und Einordnung sind keine Dateiart und keine Freigabe.</p>
|