From 2c01e25b5cafa065e02743e9f0f1548a7f9c9db4 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Wed, 12 Feb 2025 18:44:46 +0200 Subject: [PATCH] Enhance form preview options and improve code consistency Added separate buttons for 'Live Preview Screen' and 'Live Preview Mobile' in the form builder for better user experience. Updated coding standards for consistency, including proper handling of PHP tags and escaping functions. These changes improve readability, maintainability, and enhance functionality. Issue #1646 --- includes/admin/templates/form/builder.php | 19 ++++++++++++------- .../modal/forms/dynamic_form_preview.php | 16 ++++++++-------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/includes/admin/templates/form/builder.php b/includes/admin/templates/form/builder.php index 06f18bc6..be7fe75f 100644 --- a/includes/admin/templates/form/builder.php +++ b/includes/admin/templates/form/builder.php @@ -1,20 +1,25 @@ -builder()->form_id ) ) { UM()->builder()->form_id = $this->form_id; -} ?> +} +?>
@@ -26,7 +31,7 @@ if ( empty( UM()->builder()->form_id ) ) {
+ data-row_action="add_row">
diff --git a/includes/admin/templates/modal/forms/dynamic_form_preview.php b/includes/admin/templates/modal/forms/dynamic_form_preview.php index 3eaee1a0..37045277 100644 --- a/includes/admin/templates/modal/forms/dynamic_form_preview.php +++ b/includes/admin/templates/modal/forms/dynamic_form_preview.php @@ -1,16 +1,16 @@ - - - + \ No newline at end of file +