diff --git a/app/Http/Controllers/FormController.php b/app/Http/Controllers/FormController.php index a3dab23..3d3658d 100644 --- a/app/Http/Controllers/FormController.php +++ b/app/Http/Controllers/FormController.php @@ -201,6 +201,8 @@ class FormController extends Controller 'form_attributes' => request()->input('form_attributes'), 'contains_page_break' => request()->input('contains_page_break'), ]; + + // dd($form_data); $is_template = request()->input('is_template'); $input['schema'] = $form_data; diff --git a/app/Http/Controllers/LocaleController.php b/app/Http/Controllers/LocaleController.php new file mode 100644 index 0000000..0a052ab --- /dev/null +++ b/app/Http/Controllers/LocaleController.php @@ -0,0 +1,22 @@ +setLocale($locale); + + return redirect()->back(); + } +} diff --git a/lang/en/messages.php b/lang/en/messages.php index 514ca78..83dcaa4 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -81,8 +81,8 @@ return [ 'click_to_add_tags' => 'Click to add the tags', 'body' => 'Body', 'email_body' => 'Email Body', - 'auto_response_settings' => 'Auto Response Settings', - 'enable_auto_response' => 'Enable Auto Response?', + 'auto_restonse_settings' => 'Auto Restonse Settings', + 'enable_auto_restonse' => 'Enable Auto Restonse?', 'smtp_settings' => 'SMTP Settings', 'use_system_smtp' => 'Use System SMTP?', 'host' => 'Host', @@ -425,7 +425,7 @@ return [ 'tour_step_2_intro' => 'Step 2: Drop the element here & click it to configure.', 'tour_step_3_intro' => 'Step 3: Form & Element configuration will appear here.', 'tour_step_4_intro' => 'Step 4: Add conditions to show/hide element based on other element values.', - 'tour_step_5_intro' => 'Step 5: Configure receiving of submission email & auto-respond email to the user.', + 'tour_step_5_intro' => 'Step 5: Configure receiving of submission email & auto-restond email to the user.', 'tour_step_6_intro' => 'Step 6: Configure form reCaptcha, design, notifications, scheduling, submission reference number & others.', 'tour_step_7_intro' => 'Step 7: Integrate mailchimp.', 'tour_step_8_intro' => 'Step 8: Add additional Js/css in the form.', @@ -451,7 +451,7 @@ return [ 'field_name_should_nt_have_space' => 'Field name should not have space', 'duplicate_field_name_choose_unique' => 'Duplicate field name, choose unique name', 'field_dont_have_name_property' => ":input field don't have name property", - 'field_contain_space' => ':input field contain whitespace in name', + 'field_contain_space' => ':input field contain whitestace in name', 'field_contain_duplicate_field_name' => ':input field contain duplicate name', 'key' => 'Key', 'add_form_custom_attribute' => 'Add form custom attribute', @@ -677,4 +677,12 @@ return [ 'error_msg_for_not_allowed_value' => 'Error message for not allowed value', 'enter_allowed_value_per_line' => 'Enter one allowed value per line.', 'values_allowed_tooltip' => 'Values provided here will only be allowed while submitting the form, keep it empty to allow all values', + 'field_label_est' => 'Field Label in est', + 'field_label_ru' => 'Field Label in Ru', + 'content_est' => 'Content in est', + 'content_ru' => 'Content in Ru', + 'placeholder_est' => 'Placeholder in est', + 'placeholder_ru' => 'Placeholder in Ru', + 'options_est' => 'Options in est', + 'options_ru' => 'Options in Ru', ]; diff --git a/package-lock.json b/package-lock.json index 573b556..fd7e54b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "uniquesoft.es", + "name": "Aknaproff", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/resources/js/components/FieldConfigurator.vue b/resources/js/components/FieldConfigurator.vue index 6430c09..c42a713 100644 --- a/resources/js/components/FieldConfigurator.vue +++ b/resources/js/components/FieldConfigurator.vue @@ -17,6 +17,26 @@ v-model="element.label"> +