IT-Service: /api/ex ergänzen, HTML-Antworten als Fehler, Kategorie und Standort Pflicht
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m35s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m32s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m53s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m1s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m17s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m31s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m33s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 20:17:39 +00:00
parent df7ebfa6cd
commit 7969a7ac83
108 changed files with 525 additions and 445 deletions

View file

@ -15,6 +15,7 @@ const props = defineProps({
assetId: { type: Number, default: null },
assets: { type: Object, required: true },
options: { type: Object, required: true },
defaultLocation: { type: Number, default: null },
});
const myAssets = computed(() => (props.assets.ok ? props.assets.data : []));
@ -26,7 +27,7 @@ const form = useForm({
subject: '',
description: '',
category_id: null,
location_id: null,
location_id: props.defaultLocation,
});
function submit() {
@ -77,20 +78,20 @@ function submit() {
<Panel title="Beschreibung" class="lg:col-span-7 xl:col-span-8">
<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" />
</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" />
</FormField>
</div>
<FormField id="subject" label="Betreff" :error="form.errors.subject">
<Input id="subject" v-model="form.subject" maxlength="200" placeholder="z. B. Drucker im 2. OG druckt nicht" required />
</FormField>
<FormField id="description" label="Was ist passiert?" :error="form.errors.description" hint="Seit wann? Gibt es eine Fehlermeldung? Was haben Sie schon versucht?">
<Textarea id="description" v-model="form.description" rows="7" maxlength="20000" required />
</FormField>
<div class="grid gap-4 sm:grid-cols-2">
<FormField v-if="categories.length" id="category" label="Kategorie" :error="form.errors.category_id">
<NativeSelect id="category" v-model="form.category_id" :options="categories" placeholder="– bitte wählen –" />
</FormField>
<FormField v-if="locations.length" id="location" label="Standort" :error="form.errors.location_id">
<NativeSelect id="location" v-model="form.location_id" :options="locations" placeholder="– bitte wählen –" />
</FormField>
</div>
<div class="flex justify-end border-t pt-4">
<Button type="submit" :disabled="form.processing">
<LoaderCircle v-if="form.processing" class="animate-spin" /><Send v-else /> Ticket absenden