Add birthday field

This commit is contained in:
philipp lang 2021-04-11 17:13:56 +02:00
parent 0222fe4862
commit 6c833bf806
3 changed files with 6 additions and 2 deletions
app/Member
resources/js/views/member

View File

@ -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,

View File

@ -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>

View File

@ -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>