diff --git a/assets/css/admin.scss b/assets/css/admin.scss
index d657272c2..9a082bd96 100644
--- a/assets/css/admin.scss
+++ b/assets/css/admin.scss
@@ -9658,6 +9658,24 @@
&--field {
flex: 1;
+ &.forminp-input_test_button {
+ @media screen and (max-width: 782px) {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+
+ input[type="email"] {
+ width: 100%;
+ margin-right: 0 !important;
+ }
+
+ .button.everest_forms_send_email_test {
+ margin-bottom: 0;
+ width: max-content;
+ }
+ }
+ }
+
fieldset {
> label {
font-size: 14px;
diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js
index ac7b24d18..fe4d71762 100644
--- a/assets/js/admin/settings.js
+++ b/assets/js/admin/settings.js
@@ -307,16 +307,16 @@
type: "post",
beforeSend: function() {
var spinner = '';
- $(".everest_forms_send_email_test")
- .closest(".everest_forms_send_email_test")
+ $(".everest_forms_send_routine_report_test_email")
+ .closest(".everest_forms_send_routine_report_test_email")
.append(spinner);
$(".everest-froms-send_test_email_notice").remove();
},
complete: function(response) {
var message_string = "";
- $(".everest_forms_send_email_test")
- .closest(".everest_forms_send_email_test")
+ $(".everest_forms_send_routine_report_test_email")
+ .closest(".everest_forms_send_routine_report_test_email")
.find(".evf-loading")
.remove();
$(".everest-froms-send_test_email_notice").remove();
diff --git a/changelog.txt b/changelog.txt
index 0f9b40f87..7afeba862 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -2,7 +2,8 @@
= 3.0.1 - xx-xx-2024
* Enhancement - Global Setting Premium Sidebar.
-* Fix - Block design all messed up when viewed in block editor.
+* Fix - Block design all messed up when viewed in block editor.
+* Tweak - Test email input and button design.
= 3.0.0.1 - 27-05-2024
* Fix - Form builder loading when recaptcha is enabled.
diff --git a/includes/admin/class-evf-admin-settings.php b/includes/admin/class-evf-admin-settings.php
index 673d83efe..cc8d94142 100644
--- a/includes/admin/class-evf-admin-settings.php
+++ b/includes/admin/class-evf-admin-settings.php
@@ -252,7 +252,7 @@ public static function output_fields( $options ) {
case 'title':
if ( ! empty( $value['title'] ) ) {
$tabs = apply_filters( 'everest_forms_settings_tabs_array', array() );
- $current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
+ $current_tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '';
$tabs_array = array();
if ( isset( $tabs[ $current_tab ] ) ) {
$tabs_array[ $current_tab ] = isset( $tabs_array[ $current_tab ] ) ? $tabs_array[ $current_tab ] : array();
@@ -784,13 +784,13 @@ class=""
?>
-
+
+ esc_html__( 'Enable copies', 'everest-forms' ),
- 'desc' => esc_html__( 'Enable the use of Cc and Bcc email addresses', 'everest-forms' ),
- 'desc_tip' => esc_html__( 'Email addresses for Cc and Bcc can be applied from the form notification settings.', 'everest-forms' ),
+ 'desc' => esc_html__( 'Email addresses for Cc and Bcc can be applied from the form notification settings.', 'everest-forms' ),
'id' => 'everest_forms_enable_email_copies',
'default' => 'no',
'type' => 'toggle',
@@ -70,26 +69,22 @@ public function get_settings() {
),
array(
'title' => esc_html__( 'Send Test Email To', 'everest-forms' ),
- 'desc' => esc_html__( 'Enter email address where test email will be sent.', 'everest-forms' ),
- 'id' => 'everest_forms_email_send_to',
- 'type' => 'email',
+ 'desc' => esc_html__( 'Enter the email address where test email will be sent.', 'everest-forms' ),
+ 'input_id' => 'everest_forms_email_send_to',
'placeholder' => 'eg. testemail@gmail.com',
+ 'input_type' => 'email',
'value' => get_option( 'everest_forms_email_send_to', '' ) ? esc_attr( get_option( 'everest_forms_email_send_to', '' ) ) : esc_attr( get_bloginfo( 'admin_email' ) ),
- 'desc_tip' => true,
- ),
- array(
- 'title' => __( 'Send Test Email', 'everest-forms' ),
- 'desc' => __( 'Click to send test email.', 'everest-forms' ),
- 'id' => 'everest_forms_email_test',
- 'type' => 'link',
- 'buttons' => array(
+ 'button_id' => 'everest_forms_email_test',
+ 'type' => 'input_test_button',
+ 'input_css' => 'margin-right:0.5rem',
+ 'buttons' => array(
array(
'title' => __( 'Send Test Email', 'everest-forms' ),
'href' => 'javascript:;',
'class' => 'everest_forms_send_email_test',
),
),
- 'desc_tip' => true,
+ 'desc_tip' => true,
),
array(
'type' => 'sectionend',
diff --git a/includes/admin/settings/class-evf-settings-reporting.php b/includes/admin/settings/class-evf-settings-reporting.php
index ed05d6638..4e5afd7d8 100644
--- a/includes/admin/settings/class-evf-settings-reporting.php
+++ b/includes/admin/settings/class-evf-settings-reporting.php
@@ -100,27 +100,23 @@ public function get_settings() {
'type' => 'text',
),
array(
- 'title' => esc_html__( 'Send Test Email To', 'everest-forms' ),
- 'desc' => esc_html__( 'Enter email address where test email will be sent.', 'everest-forms' ),
- 'id' => 'everest_forms_email_send_to',
- 'type' => 'email',
+ 'title' => esc_html__( 'Send Test Report', 'everest-forms' ),
+ 'desc' => esc_html__( 'Enter the email address to receive the test email for the routine summary report.', 'everest-forms' ),
+ 'input_id' => 'everest_forms_email_send_to',
+ 'input_type' => 'email',
+ 'input_css' => 'margin-right:0.5rem',
'placeholder' => 'eg. testemail@gmail.com',
'value' => ! empty( $evf_summary_email ) ? esc_attr( $evf_summary_email ) : esc_attr( get_bloginfo( 'admin_email' ) ),
- 'desc_tip' => true,
- ),
- array(
- 'title' => __( 'Send Test Email', 'everest-forms' ),
- 'desc' => __( 'Click to send test email.', 'everest-forms' ),
- 'id' => 'everest_forms_send_routine_report_test_email',
- 'type' => 'link',
- 'buttons' => array(
+ 'button_id' => 'everest_forms_send_routine_report_test_email',
+ 'type' => 'input_test_button',
+ 'buttons' => array(
array(
'title' => __( 'Send Test Email', 'everest-forms' ),
'href' => 'javascript:;',
'class' => 'everest_forms_send_routine_report_test_email',
),
),
- 'desc_tip' => true,
+ 'desc_tip' => true,
),
array(
'title' => esc_html__( 'Report Form Lists', 'everest-forms' ),