Add birthday field
This commit is contained in:
parent
0222fe4862
commit
6c833bf806
|
@ -21,7 +21,8 @@ class MemberResource extends JsonResource
|
|||
'zip' => $this->zip,
|
||||
'location' => $this->location,
|
||||
'send_newspaper' => $this->send_newspaper,
|
||||
'birthday' => $this->birthday->format('d.m.Y'),
|
||||
'birthday' => $this->birthday->format('Y-m-d'),
|
||||
'birthday_human' => $this->birthday->format('d.m.Y'),
|
||||
'joined_at' => $this->joined_at->format('d.m.Y'),
|
||||
'id' => $this->id,
|
||||
'gender_id' => $this->gender_id,
|
||||
|
|
|
@ -33,6 +33,9 @@
|
|||
<div>
|
||||
<f-text id="location" v-model="inner.location" label="Ort"></f-text>
|
||||
</div>
|
||||
<div>
|
||||
<f-text type="date" id="birthday" v-model="inner.birthday" label="Geburtsdatum"></f-text>
|
||||
</div>
|
||||
<div>
|
||||
<f-select :options="regions" id="region_id" v-model="inner.region_id" label="Bundesland"></f-select>
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="py-1 px-6">
|
||||
<v-bool v-model="member.nami_id !== null"></v-bool>
|
||||
</div>
|
||||
<div class="py-1 px-6" v-text="`${member.birthday}`"></div>
|
||||
<div class="py-1 px-6" v-text="`${member.birthday_human}`"></div>
|
||||
<div class="py-1 px-6" v-text="`${member.joined_at}`"></div>
|
||||
</inertia-link>
|
||||
|
||||
|
|
Loading…
Reference in New Issue