From c1de3dc5205ccc18f3c4efe8618386577a23bd85 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Tue, 15 Mar 2022 16:56:54 +0100 Subject: [PATCH] --wip-- [skip ci] --- .bash_history | 17 +++++++++++++++++ .config/psysh/psysh_history | 2 ++ app/Member/MemberResource.php | 1 + resources/js/views/member/VForm.vue | 21 ++++++++++++++++----- 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .bash_history create mode 100644 .config/psysh/psysh_history diff --git a/.bash_history b/.bash_history new file mode 100644 index 00000000..609c5a72 --- /dev/null +++ b/.bash_history @@ -0,0 +1,17 @@ +php artisan migrate:fresh --seed +exit +php artisan migrate:fresh --seed +php artisan migrate:fresh --database=mysqlrtest +php artisan migrate:fresh --database=mysqltest +exit +php artisan migrate:fresh --seed +exit +exit +php artisan migrate:fresh --seed +exit +exit +php artisan tinker +exit +php artisan tinker +v +exit diff --git a/.config/psysh/psysh_history b/.config/psysh/psysh_history new file mode 100644 index 00000000..94d40e5d --- /dev/null +++ b/.config/psysh/psysh_history @@ -0,0 +1,2 @@ +\App\User::factory()->create(); +\App\User::factory()->create(); diff --git a/app/Member/MemberResource.php b/app/Member/MemberResource.php index 21587a38..a7ae0975 100644 --- a/app/Member/MemberResource.php +++ b/app/Member/MemberResource.php @@ -61,6 +61,7 @@ class MemberResource extends JsonResource 'first_subactivity_id' => $this->first_subactivity_id, 'age_group_icon' => $this->age_group_icon, 'courses' => CourseResource::collection($this->whenLoaded('courses')), + 'efz' => $this->efz, ]; } } diff --git a/resources/js/views/member/VForm.vue b/resources/js/views/member/VForm.vue index fe97ef45..1e334c77 100644 --- a/resources/js/views/member/VForm.vue +++ b/resources/js/views/member/VForm.vue @@ -25,6 +25,7 @@ +

Erste Gruppierung

@@ -44,14 +45,16 @@
-
- +
- + - +
+ + +
@@ -67,7 +70,7 @@ export default { { id: 'stammdaten', title: 'Stammdaten' }, { id: 'kontakt', title: 'Kontakt' }, { id: 'system', title: 'System' }, - { id: 'sonstiges', title: 'Sonstiges' }, + { id: 'verwaltung', title: 'Verwaltung' }, ] }; }, @@ -103,6 +106,14 @@ export default { computed: { menuTitle() { return this.menu[this.active].title; + }, + hasEfz: { + set(v) { + this.inner.efz = v ? '' : null; + }, + get() { + return this.inner.efz !== null; + } } },