Titelbild im Profil, durchsuchbare Baum-Auswahl im IT-Ticket (0.20.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m6s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m23s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m6s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m23s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2f03597b89
commit
05b4b79cb3
146 changed files with 1051 additions and 495 deletions
|
|
@ -6,7 +6,7 @@ import { Button } from '@/components/ui/button';
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Textarea } from '@/components/ui/textarea';
|
||||
import FormField from '@/components/FormField.vue';
|
||||
import NativeSelect from '@/components/NativeSelect.vue';
|
||||
import TreeSelect from '@/components/TreeSelect.vue';
|
||||
import PageHeader from '@/components/PageHeader.vue';
|
||||
import Panel from '@/components/Panel.vue';
|
||||
import AppLayout from '@/layouts/AppLayout.vue';
|
||||
|
|
@ -113,10 +113,10 @@ function submit() {
|
|||
<div class="grid gap-4">
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<FormField id="category" label="Kategorie" :error="form.errors.category_id" :hint="categories.length ? '' : 'Kategorien konnten nicht geladen werden.'">
|
||||
<NativeSelect id="category" v-model="form.category_id" :options="categories" placeholder="– bitte wählen –" :required="categories.length > 0" :disabled="!categories.length" />
|
||||
<TreeSelect id="category" v-model="form.category_id" :options="categories" search-placeholder="Kategorie suchen …" :disabled="!categories.length" :aria-invalid="!!form.errors.category_id" />
|
||||
</FormField>
|
||||
<FormField id="location" label="Standort" :error="form.errors.location_id" :hint="locations.length ? 'Wo tritt das Problem auf?' : 'Standorte konnten nicht geladen werden.'">
|
||||
<NativeSelect id="location" v-model="form.location_id" :options="locations" placeholder="– bitte wählen –" :required="locations.length > 0" :disabled="!locations.length" />
|
||||
<TreeSelect id="location" v-model="form.location_id" :options="locations" search-placeholder="Standort suchen …" :disabled="!locations.length" :aria-invalid="!!form.errors.location_id" />
|
||||
</FormField>
|
||||
</div>
|
||||
<FormField id="subject" label="Betreff" :error="form.errors.subject">
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ class ItService
|
|||
* Hierarchie (parent_id) als eingerückte Liste für Auswahlfelder.
|
||||
*
|
||||
* @param list<array<string, mixed>> $items
|
||||
* @return list<array{value: int, label: string}>
|
||||
* @return list<array{value: int, name: string, label: string, path: string, depth: int}>
|
||||
*/
|
||||
private static function tree(array $items): array
|
||||
{
|
||||
|
|
@ -307,6 +307,7 @@ class ItService
|
|||
// Einrückung mit geschützten Leerzeichen – Auswahllisten verschlucken normale
|
||||
$result[] = [
|
||||
'value' => (int) $item['id'],
|
||||
'name' => $name,
|
||||
'label' => ($depth > 0 ? str_repeat("\u{00A0}\u{00A0}\u{00A0}\u{00A0}", $depth - 1)."\u{00A0}\u{00A0}└\u{00A0}" : '').$name,
|
||||
'path' => implode(' › ', [...$path, $name]),
|
||||
'depth' => $depth,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue