feat(contacts): Anrede als Dropdown (Herr/Frau/Divers/Dr./Prof.)

editable bleibt aktiv, damit eigene Werte weiterhin moeglich sind.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Stefan Hacker 2026-04-13 09:35:59 +02:00
parent 848e4b9b0f
commit 50df055794
1 changed files with 4 additions and 2 deletions

View File

@ -175,9 +175,10 @@
</div> </div>
<div class="field-row"> <div class="field-row">
<div class="field" style="max-width:120px"> <div class="field" style="max-width:140px">
<label>Anrede</label> <label>Anrede</label>
<InputText v-model="contactForm.prefix" /> <Select v-model="contactForm.prefix" :options="prefixOptions"
editable showClear placeholder="" />
</div> </div>
<div class="field"> <div class="field">
<label>Vorname</label> <label>Vorname</label>
@ -409,6 +410,7 @@ const urlTypes = [
{ label: 'Privat', value: 'home' }, { label: 'Geschäftlich', value: 'work' }, { label: 'Privat', value: 'home' }, { label: 'Geschäftlich', value: 'work' },
{ label: 'Sonstige', value: 'other' }, { label: 'Sonstige', value: 'other' },
] ]
const prefixOptions = ['Herr', 'Frau', 'Divers', 'Dr.', 'Prof.']
function emptyContact() { function emptyContact() {
return { return {