From 2e8dc96665b526ab8192a108e6878bbc9c3be2cd Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 4 Jan 2025 23:35:00 +0100 Subject: [PATCH] Add frontend for svk and vk filter --- app/Member/MemberResource.php | 4 ++++ resources/js/views/member/VIndex.vue | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/app/Member/MemberResource.php b/app/Member/MemberResource.php index b81b58b9..dbb348cc 100644 --- a/app/Member/MemberResource.php +++ b/app/Member/MemberResource.php @@ -163,6 +163,10 @@ class MemberResource extends JsonResource 'activity_ids' => [], 'subactivity_ids' => [] ], + 'boolean_filter' => [ + ['id' => true, 'name' => 'Ja'], + ['id' => false, 'name' => 'Nein'], + ], 'default' => [ 'gender_id' => null, 'salutation' => '', diff --git a/resources/js/views/member/VIndex.vue b/resources/js/views/member/VIndex.vue index 5901e236..22464328 100644 --- a/resources/js/views/member/VIndex.vue +++ b/resources/js/views/member/VIndex.vue @@ -48,6 +48,24 @@ size="sm" @update:model-value="setFilter('ausstand', $event)" > + +