From 9d35ecd2c7a78002e5b8073dab59eb57194b6a93 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Thu, 25 Jul 2019 13:45:12 +0300 Subject: [PATCH] simple address form --- ....module.profile__create_profile_fields.php | 2 +- ...t.module.profile__create_adress_stream.php | 16 ++-- .../views/profile/adress_create.twig | 86 ++++++++---------- .../resources/views/profile/adress_edit.twig | 88 +++++++++---------- 4 files changed, 87 insertions(+), 105 deletions(-) diff --git a/addons/default/visiosoft/profile-module/migrations/2018_11_15_125011_visiosoft.module.profile__create_profile_fields.php b/addons/default/visiosoft/profile-module/migrations/2018_11_15_125011_visiosoft.module.profile__create_profile_fields.php index 28bd5130d..aa4059f58 100644 --- a/addons/default/visiosoft/profile-module/migrations/2018_11_15_125011_visiosoft.module.profile__create_profile_fields.php +++ b/addons/default/visiosoft/profile-module/migrations/2018_11_15_125011_visiosoft.module.profile__create_profile_fields.php @@ -102,7 +102,7 @@ class VisiosoftModuleProfileCreateProfileFields extends Migration "options" => [], ] ], - 'adress_content' => 'anomaly.field_type.text', + 'adress_content' => 'anomaly.field_type.textarea', 'adress_post_code' => 'anomaly.field_type.text', 'adress_gsm_phone' => 'anomaly.field_type.text', 'adress_land_phone' => 'anomaly.field_type.text', diff --git a/addons/default/visiosoft/profile-module/migrations/2018_11_17_112645_visiosoft.module.profile__create_adress_stream.php b/addons/default/visiosoft/profile-module/migrations/2018_11_17_112645_visiosoft.module.profile__create_adress_stream.php index c8534c6eb..6f6c41639 100644 --- a/addons/default/visiosoft/profile-module/migrations/2018_11_17_112645_visiosoft.module.profile__create_adress_stream.php +++ b/addons/default/visiosoft/profile-module/migrations/2018_11_17_112645_visiosoft.module.profile__create_adress_stream.php @@ -35,21 +35,21 @@ class VisiosoftModuleProfileCreateAdressStream extends Migration 'adress_last_name' => [ 'required' => true, ], - 'country', - 'city', - 'district', - 'neighborhood', - 'village', - 'adress_content' => [ + 'country' => [ 'required' => true, ], - 'adress_post_code' => [ + 'city' => [ + 'required' => true, + ], + 'district' => [ + 'required' => true, + ], + 'adress_content' => [ 'required' => true, ], 'adress_gsm_phone' => [ 'required' => true, ], - 'adress_land_phone', ]; } diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/adress_create.twig b/addons/default/visiosoft/profile-module/resources/views/profile/adress_create.twig index 47e11e8e7..5ce2864f9 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/adress_create.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/adress_create.twig @@ -5,7 +5,9 @@