Add letter address
This commit is contained in:
parent
ffd4ff7b90
commit
0602d86e69
app/Member
database/migrations
resources/js
|
@ -10,7 +10,7 @@ class Member extends Model
|
||||||
{
|
{
|
||||||
use Notifiable;
|
use Notifiable;
|
||||||
|
|
||||||
public $fillable = ['firstname', 'lastname', 'nickname', 'other_country', 'birthday', 'joined_at', 'send_newspaper', 'address', 'further_address', 'zip', 'location', 'main_phone', 'mobile_phone', 'work_phone', 'fax', 'email', 'email_parents', 'nami_id', 'letter_address', 'country_id', 'way_id', 'nationality_id', 'fee_id', 'region_id', 'gender_id', 'confession_id'];
|
public $fillable = ['firstname', 'lastname', 'nickname', 'other_country', 'birthday', 'joined_at', 'send_newspaper', 'address', 'further_address', 'zip', 'location', 'main_phone', 'mobile_phone', 'work_phone', 'fax', 'email', 'email_parents', 'nami_id', 'letter_address', 'country_id', 'way_id', 'nationality_id', 'fee_id', 'region_id', 'gender_id', 'confession_id', 'letter_address'];
|
||||||
|
|
||||||
public $dates = ['joined_at', 'birthday'];
|
public $dates = ['joined_at', 'birthday'];
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ class MemberResource extends JsonResource
|
||||||
'nationality_id' => $this->nationality_id,
|
'nationality_id' => $this->nationality_id,
|
||||||
'other_country' => $this->other_country,
|
'other_country' => $this->other_country,
|
||||||
'confession_id' => $this->confession_id,
|
'confession_id' => $this->confession_id,
|
||||||
|
'letter_address' => $this->letter_address,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ class CreateMembersTable extends Migration
|
||||||
$table->integer('nami_id')->nullable();
|
$table->integer('nami_id')->nullable();
|
||||||
$table->foreignId('nationality_id')->constrained();
|
$table->foreignId('nationality_id')->constrained();
|
||||||
$table->foreignId('fee_id')->constrained();
|
$table->foreignId('fee_id')->constrained();
|
||||||
|
$table->text('letter_address')->nullable();
|
||||||
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,6 +7,7 @@ import Sprite from './components/Sprite.js';
|
||||||
|
|
||||||
import FText from './components/FText.vue';
|
import FText from './components/FText.vue';
|
||||||
import FSelect from './components/FSelect.vue';
|
import FSelect from './components/FSelect.vue';
|
||||||
|
import FTextarea from './components/FTextarea.vue';
|
||||||
import Pages from './components/Pages.vue';
|
import Pages from './components/Pages.vue';
|
||||||
import VBool from './components/VBool.vue';
|
import VBool from './components/VBool.vue';
|
||||||
import App from './layouts/App.vue';
|
import App from './layouts/App.vue';
|
||||||
|
@ -14,6 +15,7 @@ import App from './layouts/App.vue';
|
||||||
Vue.use(plugin)
|
Vue.use(plugin)
|
||||||
Vue.component('f-text', FText);
|
Vue.component('f-text', FText);
|
||||||
Vue.component('f-select', FSelect);
|
Vue.component('f-select', FSelect);
|
||||||
|
Vue.component('f-textarea', FTextarea);
|
||||||
Vue.component('sprite', Sprite);
|
Vue.component('sprite', Sprite);
|
||||||
Vue.component('pages', Pages);
|
Vue.component('pages', Pages);
|
||||||
Vue.component('v-bool', VBool);
|
Vue.component('v-bool', VBool);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<label class="flex flex-col relative">
|
<label class="flex flex-col relative">
|
||||||
<span v-if="label && !inset" class="font-semibold text-gray-700" :class="{
|
<span v-if="label && !inset" class="font-semibold text-gray-400" :class="{
|
||||||
'text-xs': size == 'sm',
|
'text-xs': size == 'sm',
|
||||||
'text-sm': size === null
|
'text-sm': size === null
|
||||||
}">{{ label }}<span v-show="required" class="text-red-800"> *</span></span>
|
}">{{ label }}<span v-show="required" class="text-red-800"> *</span></span>
|
||||||
|
@ -9,9 +9,9 @@
|
||||||
'text-sm': size === null
|
'text-sm': size === null
|
||||||
}">{{ label }}<span v-show="required" class="text-red-800"> *</span></span>
|
}">{{ label }}<span v-show="required" class="text-red-800"> *</span></span>
|
||||||
<textarea v-text="value" @input="trigger" :placeholder="placeholder"
|
<textarea v-text="value" @input="trigger" :placeholder="placeholder"
|
||||||
class="h-full outline-none border-gray-400 border-solid" :rows="rows"
|
class="h-full outline-none bg-gray-700 border-gray-600 border-solid" :rows="rows"
|
||||||
:class="{
|
:class="{
|
||||||
'rounded-lg text-sm border-2 p-2 text-gray-800': size === null,
|
'rounded-lg text-sm border-2 p-2 text-gray-300': size === null,
|
||||||
'rounded-lg py-2 px-2 text-xs border-2 text-gray-800': size == 'sm'
|
'rounded-lg py-2 px-2 text-xs border-2 text-gray-800': size == 'sm'
|
||||||
}"
|
}"
|
||||||
></textarea>
|
></textarea>
|
||||||
|
|
|
@ -76,6 +76,9 @@
|
||||||
<div>
|
<div>
|
||||||
<f-select :options="confessions" id="confession_id" v-model="inner.confession_id" label="Konfession"></f-select>
|
<f-select :options="confessions" id="confession_id" v-model="inner.confession_id" label="Konfession"></f-select>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<f-textarea rows="4" id="letter_address" v-model="inner.letter_address" label="Brief-Adresse"></f-textarea>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue