#2819 minor fix (google & facebook address bonus)

This commit is contained in:
Muammer Top 2020-12-09 12:47:15 +03:00
parent 6503d2fd57
commit 9db731dc6c
5 changed files with 37 additions and 2 deletions

View File

@ -58,6 +58,12 @@ return [
'birthday' => [
'name' => 'Birthday'
],
'facebook_address' => [
'name' => 'Facebook Address'
],
'google_address' => [
'name' => 'Google Address'
],
'education' => [
'name' => 'Education'
],

View File

@ -149,7 +149,22 @@
{{ profileForm.fields.birthday.configSet('date_format','Y-m-d').setPlaceholder(now|date('Y-m-d')).input|raw }}
</div>
</div>
<div class="col-md-6">
<div class="form-group facebook_address-field">
<label class="control-label font-weight-bold">
{{ trans("visiosoft.module.profile::field.facebook_address.name") }}
</label>
{{ profileForm.fields.facebook_address.input|raw }}
</div>
</div>
<div class="col-md-6">
<div class="form-group google_address-field">
<label class="control-label font-weight-bold">
{{ trans("visiosoft.module.profile::field.google_address.name") }}
</label>
{{ profileForm.fields.google_address.input|raw }}
</div>
</div>
{% if setting_value('visiosoft.module.profile::show_education_profession') %}
<div class="col-md-12">
<div class="form-group education-field">

View File

@ -17,7 +17,9 @@ class ProfileFormBuilder extends FormBuilder
'state_of_education',
'profession',
'birthday',
'register_type'
'register_type',
'facebook_address',
'google_address',
];
protected $actions = [

View File

@ -23,6 +23,8 @@ class ProfileFormHandler
'identification_number' => $builder->getPostValue('identification_number'),
'birthday' => $builder->getPostValue('birthday'),
'register_type' => $builder->getPostValue('register_type'),
'facebook_address' => $builder->getPostValue('facebook_address'),
'google_address' => $builder->getPostValue('google_address'),
];
if (setting_value('visiosoft.module.profile::show_education_profession')) {

View File

@ -139,6 +139,16 @@ class UsersFieldsSeeder extends Seeder
'slug' => 'profession',
'type' => 'anomaly.field_type.text',
],
[
'name' => trans('visiosoft.module.profile::field.facebook_address.name'),
'slug' => 'facebook_address',
'type' => 'anomaly.field_type.text',
],
[
'name' => trans('visiosoft.module.profile::field.google_address.name'),
'slug' => 'google_address',
'type' => 'anomaly.field_type.text',
]
];
foreach ($customFields as $customField) {