Mark joined_at field as required

This commit is contained in:
philipp lang 2023-07-15 17:30:58 +02:00
parent 8ba433c6b8
commit aa9b782897
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ class MemberController extends Controller
'without_education_at' => null,
'without_efz_at' => null,
'more_ps_at' => null,
'joined_at' => now()->format('Y-m-d'),
],
'mode' => 'create',
'meta' => MemberResource::meta(),

View File

@ -58,7 +58,7 @@
<f-select :options="meta.subscriptions" id="subscription_id" v-model="inner.subscription_id" label="Beitrag" name="subscription_id" size="sm"></f-select>
<f-switch id="has_nami" size="sm" v-model="inner.has_nami" label="In Nami eintragen"></f-switch>
<f-switch id="send_newspaper" v-model="inner.send_newspaper" label="Mittendrin versenden" size="sm"></f-switch>
<f-text class="sm:col-span-2" type="date" id="joined_at" v-model="inner.joined_at" label="Eintrittsdatum" size="sm"></f-text>
<f-text class="sm:col-span-2" type="date" id="joined_at" v-model="inner.joined_at" label="Eintrittsdatum" size="sm" required></f-text>
<f-textarea rows="3" id="comment" class="col-span-2" v-model="inner.comment" label="Kommentar" size="sm"></f-textarea>
<div class="contents" v-if="mode === 'create'">
<f-select