mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2819 minor fix (google & facebook address bonus)
This commit is contained in:
parent
6503d2fd57
commit
9db731dc6c
@ -58,6 +58,12 @@ return [
|
||||
'birthday' => [
|
||||
'name' => 'Birthday'
|
||||
],
|
||||
'facebook_address' => [
|
||||
'name' => 'Facebook Address'
|
||||
],
|
||||
'google_address' => [
|
||||
'name' => 'Google Address'
|
||||
],
|
||||
'education' => [
|
||||
'name' => 'Education'
|
||||
],
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -17,7 +17,9 @@ class ProfileFormBuilder extends FormBuilder
|
||||
'state_of_education',
|
||||
'profession',
|
||||
'birthday',
|
||||
'register_type'
|
||||
'register_type',
|
||||
'facebook_address',
|
||||
'google_address',
|
||||
];
|
||||
|
||||
protected $actions = [
|
||||
|
||||
@ -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')) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user