Add sonstiges
This commit is contained in:
parent
a244448aeb
commit
6cf9bdd66d
|
@ -6,6 +6,10 @@ use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Gender;
|
use App\Gender;
|
||||||
use App\Fee;
|
use App\Fee;
|
||||||
|
use App\Region;
|
||||||
|
use App\Country;
|
||||||
|
use App\Nationality;
|
||||||
|
use App\Confession;
|
||||||
|
|
||||||
class MemberController extends Controller
|
class MemberController extends Controller
|
||||||
{
|
{
|
||||||
|
@ -24,6 +28,10 @@ class MemberController extends Controller
|
||||||
|
|
||||||
return \Inertia::render('member/Edit', [
|
return \Inertia::render('member/Edit', [
|
||||||
'genders' => Gender::where('is_null', false)->get()->pluck('name', 'id'),
|
'genders' => Gender::where('is_null', false)->get()->pluck('name', 'id'),
|
||||||
|
'countries' => Country::get()->pluck('name', 'id'),
|
||||||
|
'regions' => Region::where('is_null', false)->get()->pluck('name', 'id'),
|
||||||
|
'nationalities' => Nationality::get()->pluck('name', 'id'),
|
||||||
|
'confessions' => Confession::where('is_null', false)->get()->pluck('name', 'id'),
|
||||||
'fees' => Fee::get()->pluck('name', 'id'),
|
'fees' => Fee::get()->pluck('name', 'id'),
|
||||||
'data' => new MemberResource($member)
|
'data' => new MemberResource($member)
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -33,6 +33,11 @@ class MemberResource extends JsonResource
|
||||||
'email_parents' => $this->email_parents,
|
'email_parents' => $this->email_parents,
|
||||||
'fax' => $this->fax,
|
'fax' => $this->fax,
|
||||||
'nami_id' => $this->nami_id,
|
'nami_id' => $this->nami_id,
|
||||||
|
'country_id' => $this->country_id,
|
||||||
|
'region_id' => $this->region_id,
|
||||||
|
'nationality_id' => $this->nationality_id,
|
||||||
|
'other_country' => $this->other_country,
|
||||||
|
'confession_id' => $this->confession_id,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,15 @@
|
||||||
<div>
|
<div>
|
||||||
<f-text id="location" v-model="inner.location" label="Ort"></f-text>
|
<f-text id="location" v-model="inner.location" label="Ort"></f-text>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<f-select :options="regions" id="region_id" v-model="inner.region_id" label="Bundesland"></f-select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<f-select :options="countries" id="country_id" v-model="inner.country_id" label="Land"></f-select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<f-select :options="nationalities" id="nationality_id" v-model="inner.nationality_id" label="Staatsangehörigkeit"></f-select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 gap-3 p-4" v-if="menuTitle == 'Kontakt'">
|
<div class="grid grid-cols-2 gap-3 p-4" v-if="menuTitle == 'Kontakt'">
|
||||||
<div>
|
<div>
|
||||||
|
@ -54,6 +63,14 @@
|
||||||
<f-text id="fax" v-model="inner.fax" label="Fax"></f-text>
|
<f-text id="fax" v-model="inner.fax" label="Fax"></f-text>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="grid grid-cols-2 gap-3 p-4" v-if="menuTitle == 'Sonstiges'">
|
||||||
|
<div>
|
||||||
|
<f-text id="other_country" v-model="inner.other_country" label="Andere Staatsangehörigkeit"></f-text>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<f-select :options="confessions" id="confession_id" v-model="inner.confession_id" label="Konfession"></f-select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
@ -63,10 +80,11 @@ export default {
|
||||||
data: function() {
|
data: function() {
|
||||||
return {
|
return {
|
||||||
inner: {},
|
inner: {},
|
||||||
active: 0,
|
active: 2,
|
||||||
menu: [
|
menu: [
|
||||||
{ title: 'Stammdaten' },
|
{ title: 'Stammdaten' },
|
||||||
{ title: 'Kontakt' },
|
{ title: 'Kontakt' },
|
||||||
|
{ title: 'Sonstiges' },
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -74,7 +92,11 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
genders: {},
|
genders: {},
|
||||||
fees: {},
|
fees: {},
|
||||||
data: {}
|
data: {},
|
||||||
|
regions: {},
|
||||||
|
countries: {},
|
||||||
|
nationalities: {},
|
||||||
|
confessions: {},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue