{{ trans('visiosoft.theme.default::fields.featured_ads') }}
+{{ trans('theme::fields.featured_ads') }}
{{ trans('visiosoft.module.advs::field.send_us_your_feedback') }}
-{{ form('contact').to('example@domain.com')|raw }}
+{{ form('contact').to('info@openclassify.com').from(setting_value('streams::email')). + handler('\\Anomaly\\ContactPlugin\\Form\\ContactFormHandler@handle'). + fields({'email': {'label': trans('theme::fields.email.name'),'type': 'email','required': true,}, + 'name': {'label': trans('theme::fields.name.name'),'type': 'text','required': true,}, + 'subject': {'label': trans('theme::fields.subject.name'),'type': 'text','required': true,}, + 'content': {'label': trans('theme::fields.content.name'),'type': 'textarea','required': true,}}) + .actions({'submit': {'text': trans('theme::button.send.name')}})|raw }}
- {{ setting_value('visiosoft.module.advs::contact_mail') }} + {{ setting_value('visiosoft.module.advs::contact_mail','support@openclassify.com') }}
- diff --git a/addons/default/visiosoft/defaultadmin-theme/resources/js/vendor/visiosoft.js b/addons/default/visiosoft/defaultadmin-theme/resources/js/vendor/visiosoft.js new file mode 100644 index 000000000..60e13e278 --- /dev/null +++ b/addons/default/visiosoft/defaultadmin-theme/resources/js/vendor/visiosoft.js @@ -0,0 +1,33 @@ +$( document ).ready(function() { + $("select[name='parent_category']").select2({ + ajax: { + url: window.location.origin + "/keySearch", + type: "GET", + data: function (params) { + return { + q: params.term // search term + }; + }, + processResults: function (data) { + return { + results: $.map(data.category, function (item) { + return { + text: item.parents, + id: item.id + } + }) + }; + }, + cache: true + }, + allowClear: true, + theme: "classic", + placeholder:"All" , + minimumInputLength: 3 + }); + + $("select[name='parent_category']").on('select2:select', function (e) { + var data = e.params.data; + $("input[name='category_name']").val(data.text); + }); +}); \ No newline at end of file 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 aa4059f58..c5cad4518 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 @@ -35,25 +35,25 @@ class VisiosoftModuleProfileCreateProfileFields extends Migration ] ], 'city' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'district' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'neighborhood' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'village' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] @@ -63,8 +63,9 @@ class VisiosoftModuleProfileCreateProfileFields extends Migration 'office_phone' => 'anomaly.field_type.text', 'register_type' => [ "type" => "anomaly.field_type.select", - "config" =>[ - "options" => ['1' => 'individual','2' => 'Corporate'], + "config" => [ + "handler" => \Visiosoft\ProfileModule\Profile\Handler\registerType::class, + 'default_value' => 1, ] ], 'identification_number' => 'anomaly.field_type.text', @@ -79,25 +80,25 @@ class VisiosoftModuleProfileCreateProfileFields extends Migration ] ], 'adress_city' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'adress_district' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'adress_neighborhood' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] ], 'adress_village' => [ - "type" => "anomaly.field_type.select", + "type" => "anomaly.field_type.select", "config" => [ "options" => [], ] @@ -107,27 +108,27 @@ class VisiosoftModuleProfileCreateProfileFields extends Migration 'adress_gsm_phone' => 'anomaly.field_type.text', 'adress_land_phone' => 'anomaly.field_type.text', 'notified_new_updates' => [ - 'type' => 'anomaly.field_type.select', + 'type' => 'anomaly.field_type.select', 'config' => [ 'default_value' => 1, - 'options' => [0 => 'Active', 1 => 'Passive'], - 'separator' => ':', + 'options' => [0 => 'Active', 1 => 'Passive'], + 'separator' => ':', ] ], 'notified_about_ads' => [ - 'type' => 'anomaly.field_type.select', + 'type' => 'anomaly.field_type.select', 'config' => [ 'default_value' => 1, - 'options' => [0 => 'Active', 1 => 'Passive'], - 'separator' => ':', + 'options' => [0 => 'Active', 1 => 'Passive'], + 'separator' => ':', ] ], 'receive_messages_email' => [ - 'type' => 'anomaly.field_type.select', + 'type' => 'anomaly.field_type.select', 'config' => [ 'default_value' => 1, - 'options' => [0 => 'Active', 1 => 'Passive'], - 'separator' => ':', + 'options' => [0 => 'Active', 1 => 'Passive'], + 'separator' => ':', ] ], 'adv_listing_banner' => [ diff --git a/addons/default/visiosoft/profile-module/resources/assets/js/profile.js b/addons/default/visiosoft/profile-module/resources/assets/js/profile.js index 7f2762378..38f8e6c26 100644 --- a/addons/default/visiosoft/profile-module/resources/assets/js/profile.js +++ b/addons/default/visiosoft/profile-module/resources/assets/js/profile.js @@ -89,12 +89,12 @@ function advs(type) { "" + advs.cat1_name + " / " + "" + advs.cat2_name + "" + "
{{ trans("visiosoft.module.profile::field.right_secure_trading_subject.name") }}
-{{ trans("visiosoft.module.profile::field.right_secure_trading_msg.name") }}
-{{ trans("visiosoft.module.profile::field.right_support_subject.name") }}
-{{ trans("visiosoft.module.profile::field.right_support_msg.name") }}
-{{ trans("visiosoft.module.profile::field.right_easy_trading_subject.name") }}
-{{ trans("visiosoft.module.profile::field.right_easy_trading_msg.name") }}
-{{ trans("visiosoft.module.profile::field.right_need_help_subject.name") }}
-{{ trans("visiosoft.module.profile::field.right_need_help_msg.name") }} {{ setting_value('visiosoft.module.advs::phone') }} -
-.url }})
.url }})