@@ -36,9 +38,11 @@
import VLink from './_VLink.vue';
import { debounce } from 'lodash';
import mergesQueryString from '../mixins/mergesQueryString.js';
+import Notification from '../components/Notification.vue';
+
export default {
- components: { VLink },
+ components: { Notification, VLink },
mixins: [ mergesQueryString ],
computed: {
diff --git a/resources/js/views/member/Form.vue b/resources/js/views/member/Form.vue
index 31d8e7b7..3cb2f0c6 100644
--- a/resources/js/views/member/Form.vue
+++ b/resources/js/views/member/Form.vue
@@ -81,8 +81,8 @@ export default {
},
submit() {
this.mode === 'create'
- ? this.$inertia.post(`/member`, inner)
- : this.$inertia.patch(`/member/${inner.id}`, inner);
+ ? this.$inertia.post(`/member`, this.inner)
+ : this.$inertia.patch(`/member/${this.inner.id}`, this.inner);
}
},
@@ -93,7 +93,7 @@ export default {
},
created() {
- this.inner = this.mode === 'edit' ? this.data : {};
+ this.inner = this.data;
}
};
diff --git a/resources/lang/de/validation.php b/resources/lang/de/validation.php
index ea3301c3..c9c73a8b 100644
--- a/resources/lang/de/validation.php
+++ b/resources/lang/de/validation.php
@@ -177,5 +177,13 @@ return [
'size' => 'Größe',
'mglnr' => 'Mitgliesnummer',
'groupid' => 'Gruppierungsnummer',
+ 'firstname' => 'Vorname',
+ 'lastname' => 'Nachname',
+ 'birthday' => 'Geburtsdatum',
+ 'country_id' => 'Land',
+ 'joined_at' => 'Eintrittsdatum',
+ 'zip' => 'PLZ',
+ 'location' => 'Ort',
+ 'nationality_id' => 'Staatsangehörigkeit',
],
];