diff --git a/addons/default/visiosoft/profile-module/migrations/2020_11_06_150519_visiosoft.module.profile__create_profession_and_educational_fields.php b/addons/default/visiosoft/profile-module/migrations/2020_11_06_154603_visiosoft.module.profile__create_profession_and_educational_fields.php similarity index 93% rename from addons/default/visiosoft/profile-module/migrations/2020_11_06_150519_visiosoft.module.profile__create_profession_and_educational_fields.php rename to addons/default/visiosoft/profile-module/migrations/2020_11_06_154603_visiosoft.module.profile__create_profession_and_educational_fields.php index 8aacbfd2d..425ce5ae6 100644 --- a/addons/default/visiosoft/profile-module/migrations/2020_11_06_150519_visiosoft.module.profile__create_profession_and_educational_fields.php +++ b/addons/default/visiosoft/profile-module/migrations/2020_11_06_154603_visiosoft.module.profile__create_profession_and_educational_fields.php @@ -5,11 +5,6 @@ use Anomaly\Streams\Platform\Database\Migration\Migration; class VisiosoftModuleProfileCreateProfessionAndEducationalFields extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { if ($stream = $this->streams()->findBySlugAndNamespace('users', 'users')) { @@ -40,7 +35,7 @@ class VisiosoftModuleProfileCreateProfessionAndEducationalFields extends Migrati 'name' => $field['name'], 'namespace' => 'users', 'slug' => $field['slug'], - 'type' => 'anomaly.field_type.tags', + 'type' => 'anomaly.field_type.text', 'locked' => 0, ]); diff --git a/addons/default/visiosoft/profile-module/resources/config/settings/sections.php b/addons/default/visiosoft/profile-module/resources/config/settings/sections.php index 00bad9616..c15a42369 100644 --- a/addons/default/visiosoft/profile-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/profile-module/resources/config/settings/sections.php @@ -11,7 +11,10 @@ return [ 'upload_avatar', 'show_tax_office', 'show_checkbox_terms_on_register', - 'show_education_profession' + 'show_education_profession', + 'education', + 'state_of_education', + 'profession', ], ], 'recaptcha' => [ diff --git a/addons/default/visiosoft/profile-module/resources/config/settings/settings.php b/addons/default/visiosoft/profile-module/resources/config/settings/settings.php index 2dcdef450..ef0446b69 100644 --- a/addons/default/visiosoft/profile-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/profile-module/resources/config/settings/settings.php @@ -48,4 +48,7 @@ return [ 'mode' => 'checkbox' ] ], + "education" => "anomaly.field_type.tags", + "state_of_education" => "anomaly.field_type.tags", + "profession" => "anomaly.field_type.tags", ]; \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/lang/en/setting.php b/addons/default/visiosoft/profile-module/resources/lang/en/setting.php index 15cb14e7d..6373b6ec9 100644 --- a/addons/default/visiosoft/profile-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/profile-module/resources/lang/en/setting.php @@ -28,4 +28,13 @@ return [ 'name' => 'Score Threshold', 'instructions' => 'A value between 0 and 1. The higher the threshold the more strict ReCaptcha is in trying to determine if a user is a bot or not.', ], + 'education' => [ + 'name' => 'Education' + ], + 'state_of_education' => [ + 'name' => 'State of Education' + ], + 'profession' => [ + 'name' => 'Profession' + ], ]; diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig index 9b782ebc8..81e7820ec 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig @@ -156,7 +156,18 @@ - {{ profileForm.fields.education.input|raw }} + {{ profileForm.fields.education.value.input|raw }} +
@@ -164,7 +175,17 @@ - {{ profileForm.fields.state_of_education.input|raw }} +
@@ -172,7 +193,17 @@ - {{ profileForm.fields.profession.input|raw }} +
{% endif %}