Adjust teamer profile form to changes in backend
This commit is contained in:
@@ -26,15 +26,18 @@
|
||||
<span class="ml-2">{{ jobProfile.title }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<h4 class="mb-2">Sonstiges</h4>
|
||||
<h4 class="mb-2">Buszustiege</h4>
|
||||
<div class="flex flex-col space-y-1 pb-4">
|
||||
<label class="flex items-center">
|
||||
<label class="flex items-center"
|
||||
v-for="pickup of pickups" :key="pickup.id">
|
||||
<input type="checkbox"
|
||||
class="border-zinc-400 focus:border-zinc-800 ring-0 focus:ring-0 text-ep-secondary sbw:text-sbw-secondary"
|
||||
v-model="userData.wantsToLead"/>
|
||||
<span class="ml-2">Ich möchte eine Fahrtenleitung übernehmen</span>
|
||||
v-model="userData.pickups"
|
||||
:value="pickup.id"/>
|
||||
<span class="ml-2">{{ pickup.name }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<h4 class="mb-2">Sonstiges</h4>
|
||||
<form-group label="Status">
|
||||
<select id="status" v-model="userData.seniority" class="border-zinc-400 focus:border-zinc-800 ring-0 focus:ring-0 mt-1 w-full">
|
||||
<option v-for="status in this.status" :value="status.value">{{ status.label }}</option>
|
||||
@@ -98,7 +101,8 @@
|
||||
],
|
||||
abilities: [],
|
||||
timeFrames: [],
|
||||
jobProfiles: []
|
||||
jobProfiles: [],
|
||||
pickups: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -108,9 +112,9 @@
|
||||
abilities: this.userData.abilities,
|
||||
jobProfiles: this.userData.jobProfiles,
|
||||
availableTimeFrames: this.userData.availableTimeFrames,
|
||||
pickups: this.userData.pickups,
|
||||
jacketSize: this.userData.jacketSize,
|
||||
seniority: this.userData.seniority,
|
||||
wantsToLead: this.userData.wantsToLead,
|
||||
monthLong: this.userData.monthLong,
|
||||
notes: this.userData.notes,
|
||||
};
|
||||
@@ -159,6 +163,7 @@
|
||||
this.abilities = data.abilities
|
||||
this.timeFrames = data.timeFrames
|
||||
this.jobProfiles = data.jobProfiles
|
||||
this.pickups = data.pickups
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user