Version Description
- Updated text domain to match plugin's slug
Download this release
Release Info
Developer | Access Keys |
Plugin | Contact Form for WordPress – Ultimate Form Builder Lite |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- classes/ufbl-lib.php +28 -28
- classes/ufbl-model.php +5 -5
- inc/cores/save-form.php +1 -1
- inc/views/backend/about.php +1 -1
- inc/views/backend/boxes/display-settings.php +15 -15
- inc/views/backend/boxes/email-settings.php +9 -9
- inc/views/backend/boxes/form-builder-main.php +153 -153
- inc/views/backend/boxes/form-fields-html.php +155 -155
- inc/views/backend/entry-detail.php +3 -3
- inc/views/backend/form-builder.php +6 -6
- inc/views/backend/form-entries-list.php +14 -14
- inc/views/backend/form-list.php +24 -24
- inc/views/backend/how-to-use.php +1 -1
- inc/views/backend/new-form.php +4 -4
- inc/views/frontend/front-form.php +4 -4
- inc/views/frontend/preview-form.php +3 -3
- readme.txt +4 -1
- ultimate-form-builder-lite.php +16 -16
classes/ufbl-lib.php
CHANGED
@@ -105,17 +105,17 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
105 |
case 'textfield':
|
106 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
107 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
108 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
109 |
$error_flag = 1;
|
110 |
$form_response['error_keys'][$key] = $error_message;
|
111 |
} else {
|
112 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
113 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :',
|
114 |
$error_flag = 1;
|
115 |
$form_response['error_keys'][$key] = $error_message;
|
116 |
}
|
117 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
118 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :',
|
119 |
$error_flag = 1;
|
120 |
$form_response['error_keys'][$key] = $error_message;
|
121 |
}
|
@@ -127,17 +127,17 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
127 |
case 'textarea':
|
128 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
129 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
130 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
131 |
$error_flag = 1;
|
132 |
$form_response['error_keys'][$key] = $error_message;
|
133 |
} else {
|
134 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
135 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :',
|
136 |
$error_flag = 1;
|
137 |
$form_response['error_keys'][$key] = $error_message;
|
138 |
}
|
139 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
140 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :',
|
141 |
$error_flag = 1;
|
142 |
$form_response['error_keys'][$key] = $error_message;
|
143 |
}
|
@@ -149,12 +149,12 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
149 |
case 'email':
|
150 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
151 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
152 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
153 |
$error_flag = 1;
|
154 |
$form_response['error_keys'][$key] = $error_message;
|
155 |
} else {
|
156 |
if ( !is_email( $val ) && $val != '' ) {
|
157 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the valid email address.',
|
158 |
$error_flag = 1;
|
159 |
$form_response['error_keys'][$key] = $error_message;
|
160 |
}
|
@@ -172,7 +172,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
172 |
}
|
173 |
|
174 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
175 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
176 |
$error_flag = 1;
|
177 |
$form_response['error_keys'][$key] = $error_message;
|
178 |
}
|
@@ -183,7 +183,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
183 |
case 'radio':
|
184 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
185 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
186 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
187 |
$error_flag = 1;
|
188 |
$form_response['error_keys'][$key] = $error_message;
|
189 |
}
|
@@ -208,7 +208,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
208 |
}
|
209 |
|
210 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
211 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
212 |
$error_flag = 1;
|
213 |
$form_response['error_keys'][$key] = $error_message;
|
214 |
}
|
@@ -219,17 +219,17 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
219 |
case 'password':
|
220 |
$val = isset( $form_data[$key] ) ? $form_data[$key] : '';
|
221 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
222 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
223 |
$error_flag = 1;
|
224 |
$form_response['error_keys'][$key] = $error_message;
|
225 |
} else {
|
226 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
227 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :',
|
228 |
$error_flag = 1;
|
229 |
$form_response['error_keys'][$key] = $error_message;
|
230 |
}
|
231 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
232 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :',
|
233 |
$error_flag = 1;
|
234 |
$form_response['error_keys'][$key] = $error_message;
|
235 |
}
|
@@ -241,22 +241,22 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
241 |
case 'number':
|
242 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
243 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
244 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required',
|
245 |
$error_flag = 1;
|
246 |
$form_response['error_keys'][$key] = $error_message;
|
247 |
} else {
|
248 |
if ( !is_numeric( $val ) ) {
|
249 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Only numbers allowed.',
|
250 |
$error_flag = 1;
|
251 |
$form_response['error_keys'][$key] = $error_message;
|
252 |
} else {
|
253 |
if ( $field_data[$key]['max_value'] != '' && intval( $val ) > $field_data[$key]['max_value'] ) {
|
254 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :',
|
255 |
$error_flag = 1;
|
256 |
$form_response['error_keys'][$key] = $error_message;
|
257 |
}
|
258 |
if ( $field_data[$key]['min_value'] != '' && intval( $val ) < $field_data[$key]['min_value'] ) {
|
259 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :',
|
260 |
$error_flag = 1;
|
261 |
$form_response['error_keys'][$key] = $error_message;
|
262 |
}
|
@@ -282,19 +282,19 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
282 |
$num2 = $form_data[$num2_key];
|
283 |
$result = $num1 + $num2;
|
284 |
if ( $result != $val ) {
|
285 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the correct sum.',
|
286 |
$error_flag = 1;
|
287 |
$form_response['error_keys'][$key] = $error_message;
|
288 |
}
|
289 |
} else {
|
290 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the correct sum.',
|
291 |
$error_flag = 1;
|
292 |
$form_response['error_keys'][$key] = $error_message;
|
293 |
}
|
294 |
} else {
|
295 |
$captcha = sanitize_text_field( $_POST['captchaResponse'] ); // get the captchaResponse parameter sent from our ajax
|
296 |
if ( !$captcha ) {
|
297 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please check the captcha.',
|
298 |
$error_flag = 1;
|
299 |
$form_response['error_keys'][$key] = $error_message;
|
300 |
} else {
|
@@ -303,7 +303,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
303 |
//self::print_array($response_html);
|
304 |
$response = json_decode( $response_html['body'] );
|
305 |
if ( $response->success == false ) {
|
306 |
-
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please check the captcha.',
|
307 |
$error_flag = 1;
|
308 |
$form_response['error_keys'][$key] = $error_message;
|
309 |
}
|
@@ -315,8 +315,8 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
315 |
}//switch close
|
316 |
}//foreach form data close
|
317 |
$form_response['error_flag'] = $error_flag;
|
318 |
-
$form_submission_message = (isset( $form_detail['form_design']['form_submission_message'] ) && $form_detail['form_design']['form_submission_message'] != '') ? esc_attr( $form_detail['form_design']['form_submission_message'] ) : __( 'Form submitted successfully.',
|
319 |
-
$form_error_message = ( isset( $form_detail['form_design']['form_error_message'] ) && $form_detail['form_design']['form_error_message'] != '') ? esc_attr( $form_detail['form_design']['form_error_message'] ) : __( 'Validation Errors Occured.Please check and submit the form again.',
|
320 |
$form_response['response_message'] = ($error_flag == 1) ? $form_error_message : $form_submission_message;
|
321 |
if ( $error_flag == 0 ) {
|
322 |
self::do_email_process( $email_reference_array, $form_row );
|
@@ -339,7 +339,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
339 |
$fields_html = '';
|
340 |
$count = 0;
|
341 |
foreach ( $email_reference_array as $key => $val ) {
|
342 |
-
$field_label = ($field_data[$key]['field_label'] != '') ? $field_data[$key]['field_label'] : __( 'Untitled',
|
343 |
$count++;
|
344 |
if ( $count % 2 == 0 ) {
|
345 |
$fields_html .= '<tr style="background-color:#eee;"><td style="width:150px;border:1px solid #D54E21;" ><strong>' . $field_label . ':</strong></td> <td style="border:1px solid #D54E21;">' . $val['value'] . '</td><tr>';
|
@@ -358,8 +358,8 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
358 |
</html>';
|
359 |
$site_url = str_replace( 'http://', '', site_url() );
|
360 |
$site_url = str_replace( 'https://', '', $site_url );
|
361 |
-
$email_subject = ($form_detail['email_settings']['from_subject'] != '') ? esc_attr( $form_detail['email_settings']['from_subject'] ) : __( 'New Form Submission',
|
362 |
-
$from_name = ($form_detail['email_settings']['from_name'] != '') ? esc_attr( $form_detail['email_settings']['from_name'] ) : __( 'No Name',
|
363 |
$from_email = ($form_detail['email_settings']['from_email'] != '') ? esc_attr( $form_detail['email_settings']['from_email'] ) : 'noreply@' . $site_url;
|
364 |
$admin_email = get_option( 'admin_email' );
|
365 |
$email_recievers = $form_detail['email_settings']['email_reciever'];
|
@@ -388,7 +388,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
388 |
//$output .=$label . ',';
|
389 |
$output .='"' . $label . '",';
|
390 |
}
|
391 |
-
$output .='"' . __( 'Entry Created On',
|
392 |
$output .="\n";
|
393 |
foreach ( $entry_rows as $entry_row ) {
|
394 |
$entry_detail = maybe_unserialize( $entry_row['entry_detail'] );
|
105 |
case 'textfield':
|
106 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
107 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
108 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
109 |
$error_flag = 1;
|
110 |
$form_response['error_keys'][$key] = $error_message;
|
111 |
} else {
|
112 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
113 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['max_chars'];
|
114 |
$error_flag = 1;
|
115 |
$form_response['error_keys'][$key] = $error_message;
|
116 |
}
|
117 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
118 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['min_chars'];
|
119 |
$error_flag = 1;
|
120 |
$form_response['error_keys'][$key] = $error_message;
|
121 |
}
|
127 |
case 'textarea':
|
128 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
129 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
130 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
131 |
$error_flag = 1;
|
132 |
$form_response['error_keys'][$key] = $error_message;
|
133 |
} else {
|
134 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
135 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['max_chars'];
|
136 |
$error_flag = 1;
|
137 |
$form_response['error_keys'][$key] = $error_message;
|
138 |
}
|
139 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
140 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['min_chars'];
|
141 |
$error_flag = 1;
|
142 |
$form_response['error_keys'][$key] = $error_message;
|
143 |
}
|
149 |
case 'email':
|
150 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
151 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
152 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
153 |
$error_flag = 1;
|
154 |
$form_response['error_keys'][$key] = $error_message;
|
155 |
} else {
|
156 |
if ( !is_email( $val ) && $val != '' ) {
|
157 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the valid email address.', 'ultimate-form-builder-lite' );
|
158 |
$error_flag = 1;
|
159 |
$form_response['error_keys'][$key] = $error_message;
|
160 |
}
|
172 |
}
|
173 |
|
174 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
175 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
176 |
$error_flag = 1;
|
177 |
$form_response['error_keys'][$key] = $error_message;
|
178 |
}
|
183 |
case 'radio':
|
184 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
185 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
186 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
187 |
$error_flag = 1;
|
188 |
$form_response['error_keys'][$key] = $error_message;
|
189 |
}
|
208 |
}
|
209 |
|
210 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
211 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
212 |
$error_flag = 1;
|
213 |
$form_response['error_keys'][$key] = $error_message;
|
214 |
}
|
219 |
case 'password':
|
220 |
$val = isset( $form_data[$key] ) ? $form_data[$key] : '';
|
221 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
222 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
223 |
$error_flag = 1;
|
224 |
$form_response['error_keys'][$key] = $error_message;
|
225 |
} else {
|
226 |
if ( $field_data[$key]['max_chars'] != '' && strlen( $val ) > $field_data[$key]['max_chars'] ) {
|
227 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['max_chars'];
|
228 |
$error_flag = 1;
|
229 |
$form_response['error_keys'][$key] = $error_message;
|
230 |
}
|
231 |
if ( $field_data[$key]['min_chars'] != '' && strlen( $val ) < $field_data[$key]['min_chars'] ) {
|
232 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['min_chars'];
|
233 |
$error_flag = 1;
|
234 |
$form_response['error_keys'][$key] = $error_message;
|
235 |
}
|
241 |
case 'number':
|
242 |
$val = isset( $form_data[$key] ) ? sanitize_text_field( $form_data[$key] ) : '';
|
243 |
if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
|
244 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
|
245 |
$error_flag = 1;
|
246 |
$form_response['error_keys'][$key] = $error_message;
|
247 |
} else {
|
248 |
if ( !is_numeric( $val ) ) {
|
249 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Only numbers allowed.', 'ultimate-form-builder-lite' );
|
250 |
$error_flag = 1;
|
251 |
$form_response['error_keys'][$key] = $error_message;
|
252 |
} else {
|
253 |
if ( $field_data[$key]['max_value'] != '' && intval( $val ) > $field_data[$key]['max_value'] ) {
|
254 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Characters exceeded.Max characters allowed is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['max_value'];
|
255 |
$error_flag = 1;
|
256 |
$form_response['error_keys'][$key] = $error_message;
|
257 |
}
|
258 |
if ( $field_data[$key]['min_value'] != '' && intval( $val ) < $field_data[$key]['min_value'] ) {
|
259 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Mininum characters required is :', 'ultimate-form-builder-lite' ) . $field_data[$key]['min_value'];
|
260 |
$error_flag = 1;
|
261 |
$form_response['error_keys'][$key] = $error_message;
|
262 |
}
|
282 |
$num2 = $form_data[$num2_key];
|
283 |
$result = $num1 + $num2;
|
284 |
if ( $result != $val ) {
|
285 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the correct sum.', 'ultimate-form-builder-lite' );
|
286 |
$error_flag = 1;
|
287 |
$form_response['error_keys'][$key] = $error_message;
|
288 |
}
|
289 |
} else {
|
290 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please enter the correct sum.', 'ultimate-form-builder-lite' );
|
291 |
$error_flag = 1;
|
292 |
$form_response['error_keys'][$key] = $error_message;
|
293 |
}
|
294 |
} else {
|
295 |
$captcha = sanitize_text_field( $_POST['captchaResponse'] ); // get the captchaResponse parameter sent from our ajax
|
296 |
if ( !$captcha ) {
|
297 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please check the captcha.', 'ultimate-form-builder-lite' );
|
298 |
$error_flag = 1;
|
299 |
$form_response['error_keys'][$key] = $error_message;
|
300 |
} else {
|
303 |
//self::print_array($response_html);
|
304 |
$response = json_decode( $response_html['body'] );
|
305 |
if ( $response->success == false ) {
|
306 |
+
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Please check the captcha.', 'ultimate-form-builder-lite' );
|
307 |
$error_flag = 1;
|
308 |
$form_response['error_keys'][$key] = $error_message;
|
309 |
}
|
315 |
}//switch close
|
316 |
}//foreach form data close
|
317 |
$form_response['error_flag'] = $error_flag;
|
318 |
+
$form_submission_message = (isset( $form_detail['form_design']['form_submission_message'] ) && $form_detail['form_design']['form_submission_message'] != '') ? esc_attr( $form_detail['form_design']['form_submission_message'] ) : __( 'Form submitted successfully.', 'ultimate-form-builder-lite' );
|
319 |
+
$form_error_message = ( isset( $form_detail['form_design']['form_error_message'] ) && $form_detail['form_design']['form_error_message'] != '') ? esc_attr( $form_detail['form_design']['form_error_message'] ) : __( 'Validation Errors Occured.Please check and submit the form again.', 'ultimate-form-builder-lite' );
|
320 |
$form_response['response_message'] = ($error_flag == 1) ? $form_error_message : $form_submission_message;
|
321 |
if ( $error_flag == 0 ) {
|
322 |
self::do_email_process( $email_reference_array, $form_row );
|
339 |
$fields_html = '';
|
340 |
$count = 0;
|
341 |
foreach ( $email_reference_array as $key => $val ) {
|
342 |
+
$field_label = ($field_data[$key]['field_label'] != '') ? $field_data[$key]['field_label'] : __( 'Untitled', 'ultimate-form-builder-lite' ) . ' ' . $field_data[$key]['field_type'];
|
343 |
$count++;
|
344 |
if ( $count % 2 == 0 ) {
|
345 |
$fields_html .= '<tr style="background-color:#eee;"><td style="width:150px;border:1px solid #D54E21;" ><strong>' . $field_label . ':</strong></td> <td style="border:1px solid #D54E21;">' . $val['value'] . '</td><tr>';
|
358 |
</html>';
|
359 |
$site_url = str_replace( 'http://', '', site_url() );
|
360 |
$site_url = str_replace( 'https://', '', $site_url );
|
361 |
+
$email_subject = ($form_detail['email_settings']['from_subject'] != '') ? esc_attr( $form_detail['email_settings']['from_subject'] ) : __( 'New Form Submission', 'ultimate-form-builder-lite' );
|
362 |
+
$from_name = ($form_detail['email_settings']['from_name'] != '') ? esc_attr( $form_detail['email_settings']['from_name'] ) : __( 'No Name', 'ultimate-form-builder-lite' );
|
363 |
$from_email = ($form_detail['email_settings']['from_email'] != '') ? esc_attr( $form_detail['email_settings']['from_email'] ) : 'noreply@' . $site_url;
|
364 |
$admin_email = get_option( 'admin_email' );
|
365 |
$email_recievers = $form_detail['email_settings']['email_reciever'];
|
388 |
//$output .=$label . ',';
|
389 |
$output .='"' . $label . '",';
|
390 |
}
|
391 |
+
$output .='"' . __( 'Entry Created On', 'ultimate-form-builder-lite' ) . '",';
|
392 |
$output .="\n";
|
393 |
foreach ( $entry_rows as $entry_row ) {
|
394 |
$entry_detail = maybe_unserialize( $entry_row['entry_detail'] );
|
classes/ufbl-model.php
CHANGED
@@ -19,7 +19,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
19 |
global $library_obj;
|
20 |
//$library_obj->print_array( $_POST );
|
21 |
$form_title = sanitize_text_field( $_POST['form_title'] );
|
22 |
-
$form_title = ($form_title == '') ? __( 'Contact Form',
|
23 |
$form_status = 1;
|
24 |
$form_detail = serialize( $library_obj->get_default_detail() );
|
25 |
$created_date = date( 'Y-m-d H:i:s:u' );
|
@@ -40,7 +40,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
40 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
41 |
$response_array = array( 'success' => 1, 'form_id' => $form_id, 'redirect_url' => $redirect_url );
|
42 |
} else {
|
43 |
-
$response_array = array( 'success' => 0, 'error_msg' => __( 'Something went wrong.Please try again later',
|
44 |
}
|
45 |
die( json_encode( $response_array ) );
|
46 |
}
|
@@ -71,7 +71,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
71 |
'%d'
|
72 |
), array( '%d' )
|
73 |
);
|
74 |
-
$msg = ($check) ? __( 'Status updated.',
|
75 |
die( $msg );
|
76 |
}
|
77 |
|
@@ -246,7 +246,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
246 |
$except_field_types = array( 'submit','captcha' );
|
247 |
foreach ( $form_detail['field_data'] as $field_key => $field_settings ) {
|
248 |
if ( !in_array( $field_settings['field_type'], $except_field_types ) ) {
|
249 |
-
$form_labels[] = (isset( $field_settings['field_label'] ) && $field_settings['field_label'] != '') ? esc_attr( $field_settings['field_label'] ) : __( 'Untitled',
|
250 |
$form_keys[] = $field_key;
|
251 |
}
|
252 |
}
|
@@ -286,7 +286,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
286 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
287 |
$response_array = array( 'success' => 1, 'form_id' => $form_id, 'redirect_url' => $redirect_url );
|
288 |
} else {
|
289 |
-
$response_array = array( 'success' => 0, 'error_msg' => __( 'Something went wrong.Please try again later',
|
290 |
}
|
291 |
die( json_encode( $response_array ) );
|
292 |
}
|
19 |
global $library_obj;
|
20 |
//$library_obj->print_array( $_POST );
|
21 |
$form_title = sanitize_text_field( $_POST['form_title'] );
|
22 |
+
$form_title = ($form_title == '') ? __( 'Contact Form', 'ultimate-form-builder-lite' ) : $form_title;
|
23 |
$form_status = 1;
|
24 |
$form_detail = serialize( $library_obj->get_default_detail() );
|
25 |
$created_date = date( 'Y-m-d H:i:s:u' );
|
40 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
41 |
$response_array = array( 'success' => 1, 'form_id' => $form_id, 'redirect_url' => $redirect_url );
|
42 |
} else {
|
43 |
+
$response_array = array( 'success' => 0, 'error_msg' => __( 'Something went wrong.Please try again later', 'ultimate-form-builder-lite' ) );
|
44 |
}
|
45 |
die( json_encode( $response_array ) );
|
46 |
}
|
71 |
'%d'
|
72 |
), array( '%d' )
|
73 |
);
|
74 |
+
$msg = ($check) ? __( 'Status updated.', 'ultimate-form-builder-lite' ) : __( 'Something went wrong.', 'ultimate-form-builder-lite' );
|
75 |
die( $msg );
|
76 |
}
|
77 |
|
246 |
$except_field_types = array( 'submit','captcha' );
|
247 |
foreach ( $form_detail['field_data'] as $field_key => $field_settings ) {
|
248 |
if ( !in_array( $field_settings['field_type'], $except_field_types ) ) {
|
249 |
+
$form_labels[] = (isset( $field_settings['field_label'] ) && $field_settings['field_label'] != '') ? esc_attr( $field_settings['field_label'] ) : __( 'Untitled', 'ultimate-form-builder-lite' ) . ' ' . $field_settings['field_type'];
|
250 |
$form_keys[] = $field_key;
|
251 |
}
|
252 |
}
|
286 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
287 |
$response_array = array( 'success' => 1, 'form_id' => $form_id, 'redirect_url' => $redirect_url );
|
288 |
} else {
|
289 |
+
$response_array = array( 'success' => 0, 'error_msg' => __( 'Something went wrong.Please try again later', 'ultimate-form-builder-lite' ) );
|
290 |
}
|
291 |
die( json_encode( $response_array ) );
|
292 |
}
|
inc/cores/save-form.php
CHANGED
@@ -132,7 +132,7 @@ $wpdb->update(
|
|
132 |
'%s' //form_modified
|
133 |
), array( '%d' )
|
134 |
);
|
135 |
-
$_SESSION['ufbl_message'] = __( 'Form Updated Successfully',
|
136 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
137 |
wp_redirect( $redirect_url );
|
138 |
exit;
|
132 |
'%s' //form_modified
|
133 |
), array( '%d' )
|
134 |
);
|
135 |
+
$_SESSION['ufbl_message'] = __( 'Form Updated Successfully', 'ultimate-form-builder-lite' );
|
136 |
$redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
|
137 |
wp_redirect( $redirect_url );
|
138 |
exit;
|
inc/views/backend/about.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
-
<h3><?php _e( 'About',
|
4 |
|
5 |
<div class="ufbl-content-wrap">
|
6 |
<div class="ufbl-content-section">
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
+
<h3><?php _e( 'About', 'ultimate-form-builder-lite' ); ?></h3>
|
4 |
|
5 |
<div class="ufbl-content-wrap">
|
6 |
<div class="ufbl-content-section">
|
inc/views/backend/boxes/display-settings.php
CHANGED
@@ -8,40 +8,40 @@ $form_design = isset( $form_detail['form_design'] ) ? $form_detail['form_design'
|
|
8 |
<div class="ufbl-tab-content" id="ufbl-display-tab" style="display:none">
|
9 |
<div class="ufbl-display-sub-section">
|
10 |
<div class="ufbl-field-wrap">
|
11 |
-
<label><?php _e( 'Disable Plugin Styles',
|
12 |
<div class="ufbl-field">
|
13 |
<input type="checkbox" name="form_design[disable_plugin_style]" value='1' <?php echo (isset( $form_design['disable_plugin_style'] ) && $form_design['disable_plugin_style'] == 1) ? 'checked="checked"' : ''; ?>/>
|
14 |
-
<div class="ufbl-side-note"><?php _e( 'Check if you want to disable all the plugin styles in the frontend.',
|
15 |
</div>
|
16 |
</div>
|
17 |
<div class="ufbl-field-wrap">
|
18 |
-
<label><?php _e( 'Hide Form Title',
|
19 |
<div class="ufbl-field">
|
20 |
<input type="checkbox" name="form_design[hide_form_title]" value='1' <?php echo (isset( $form_design['hide_form_title'] ) && $form_design['hide_form_title'] == 1) ? 'checked="checked"' : ''; ?>/>
|
21 |
-
<div class="ufbl-side-note"><?php _e( 'Check to hide the form title in frontend form.',
|
22 |
</div>
|
23 |
</div>
|
24 |
<div class="ufbl-field-wrap">
|
25 |
-
<label><?php _e( 'Form Width',
|
26 |
<div class="ufbl-field">
|
27 |
<input type="text" name="form_design[form_width]" placeholder="500px or 100%" value="<?php echo esc_attr( $form_design['form_width'] ); ?>"/>
|
28 |
-
<div class="ufbl-field-note"><?php _e( 'Please provide the width of form either in px or %.Default width is 100%.',
|
29 |
</div>
|
30 |
</div>
|
31 |
<div class="ufbl-field-wrap">
|
32 |
-
<label><?php _e( 'Form Submission Message',
|
33 |
<div class="ufbl-field">
|
34 |
-
<textarea name="form_design[form_submission_message]" placeholder="<?php _e( 'Form submitted successfully.',
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="ufbl-field-wrap">
|
38 |
-
<label><?php _e( 'Form Error Message',
|
39 |
<div class="ufbl-field">
|
40 |
-
<textarea name="form_design[form_error_message]" placeholder="<?php _e( 'Validation errors occurred in the form.',
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="ufbl-field-wrap">
|
44 |
-
<label><?php _e( 'Form Template',
|
45 |
<div class="ufbl-field">
|
46 |
|
47 |
<select name="form_design[form_template]" class="ufbl-form-template-dropdown">
|
@@ -56,13 +56,13 @@ $form_design = isset( $form_detail['form_design'] ) ? $form_detail['form_design'
|
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="ufbl-form-controls">
|
59 |
-
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form',
|
60 |
-
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview',
|
61 |
-
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.',
|
62 |
</div>
|
63 |
</div>
|
64 |
<div class="ufbl-template-preview">
|
65 |
-
<h3><?php _e( 'Template Preview',
|
66 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/default-template.jpg' ?>" alt="Default Template" id="preview-ufbl-default-template" <?php if ( $form_design['form_template'] != 'ufbl-default-template' ) { ?>style="display:none"<?php } ?>/>
|
67 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/template-1.jpg' ?>" alt="Template 1" id="preview-ufbl-template-1" <?php if ( $form_design['form_template'] != 'ufbl-template-1' ) { ?>style="display:none"<?php } ?>/>
|
68 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/template-2.jpg' ?>" alt="Template 2" id="preview-ufbl-template-2" <?php if ( $form_design['form_template'] != 'ufbl-template-2' ) { ?>style="display:none"<?php } ?>/>
|
8 |
<div class="ufbl-tab-content" id="ufbl-display-tab" style="display:none">
|
9 |
<div class="ufbl-display-sub-section">
|
10 |
<div class="ufbl-field-wrap">
|
11 |
+
<label><?php _e( 'Disable Plugin Styles', 'ultimate-form-builder-lite' ); ?></label>
|
12 |
<div class="ufbl-field">
|
13 |
<input type="checkbox" name="form_design[disable_plugin_style]" value='1' <?php echo (isset( $form_design['disable_plugin_style'] ) && $form_design['disable_plugin_style'] == 1) ? 'checked="checked"' : ''; ?>/>
|
14 |
+
<div class="ufbl-side-note"><?php _e( 'Check if you want to disable all the plugin styles in the frontend.', 'ultimate-form-builder-lite' ); ?></div>
|
15 |
</div>
|
16 |
</div>
|
17 |
<div class="ufbl-field-wrap">
|
18 |
+
<label><?php _e( 'Hide Form Title', 'ultimate-form-builder-lite' ); ?></label>
|
19 |
<div class="ufbl-field">
|
20 |
<input type="checkbox" name="form_design[hide_form_title]" value='1' <?php echo (isset( $form_design['hide_form_title'] ) && $form_design['hide_form_title'] == 1) ? 'checked="checked"' : ''; ?>/>
|
21 |
+
<div class="ufbl-side-note"><?php _e( 'Check to hide the form title in frontend form.', 'ultimate-form-builder-lite' ); ?></div>
|
22 |
</div>
|
23 |
</div>
|
24 |
<div class="ufbl-field-wrap">
|
25 |
+
<label><?php _e( 'Form Width', 'ultimate-form-builder-lite' ); ?></label>
|
26 |
<div class="ufbl-field">
|
27 |
<input type="text" name="form_design[form_width]" placeholder="500px or 100%" value="<?php echo esc_attr( $form_design['form_width'] ); ?>"/>
|
28 |
+
<div class="ufbl-field-note"><?php _e( 'Please provide the width of form either in px or %.Default width is 100%.', 'ultimate-form-builder-lite' ); ?></div>
|
29 |
</div>
|
30 |
</div>
|
31 |
<div class="ufbl-field-wrap">
|
32 |
+
<label><?php _e( 'Form Submission Message', 'ultimate-form-builder-lite' ); ?></label>
|
33 |
<div class="ufbl-field">
|
34 |
+
<textarea name="form_design[form_submission_message]" placeholder="<?php _e( 'Form submitted successfully.', 'ultimate-form-builder-lite' ); ?>"><?php echo isset( $form_design['form_submission_message'] ) ? esc_attr( $form_design['form_submission_message'] ) : ''; ?></textarea>
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="ufbl-field-wrap">
|
38 |
+
<label><?php _e( 'Form Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
39 |
<div class="ufbl-field">
|
40 |
+
<textarea name="form_design[form_error_message]" placeholder="<?php _e( 'Validation errors occurred in the form.', 'ultimate-form-builder-lite' ); ?>" ><?php echo isset( $form_design['form_error_message'] ) ? esc_attr( $form_design['form_error_message'] ) : ''; ?></textarea>
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="ufbl-field-wrap">
|
44 |
+
<label><?php _e( 'Form Template', 'ultimate-form-builder-lite' ); ?></label>
|
45 |
<div class="ufbl-field">
|
46 |
|
47 |
<select name="form_design[form_template]" class="ufbl-form-template-dropdown">
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="ufbl-form-controls">
|
59 |
+
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form', 'ultimate-form-builder-lite' ); ?>"/>
|
60 |
+
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview', 'ultimate-form-builder-lite' ); ?>"/></a>
|
61 |
+
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.', 'ultimate-form-builder-lite' ); ?></div>
|
62 |
</div>
|
63 |
</div>
|
64 |
<div class="ufbl-template-preview">
|
65 |
+
<h3><?php _e( 'Template Preview', 'ultimate-form-builder-lite' ); ?></h3>
|
66 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/default-template.jpg' ?>" alt="Default Template" id="preview-ufbl-default-template" <?php if ( $form_design['form_template'] != 'ufbl-default-template' ) { ?>style="display:none"<?php } ?>/>
|
67 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/template-1.jpg' ?>" alt="Template 1" id="preview-ufbl-template-1" <?php if ( $form_design['form_template'] != 'ufbl-template-1' ) { ?>style="display:none"<?php } ?>/>
|
68 |
<img src="<?php echo UFBL_IMG_DIR . '/previews/template-2.jpg' ?>" alt="Template 2" id="preview-ufbl-template-2" <?php if ( $form_design['form_template'] != 'ufbl-template-2' ) { ?>style="display:none"<?php } ?>/>
|
inc/views/backend/boxes/email-settings.php
CHANGED
@@ -6,9 +6,9 @@ $email_settings = $form_detail['email_settings'];
|
|
6 |
?>
|
7 |
<div class="ufbl-tab-content" id="ufbl-email-tab" style="display: none;">
|
8 |
<div class="ufbl-email-wrap">
|
9 |
-
<label><?php _e( 'Email Reciever',
|
10 |
<div class="ufbl-emails">
|
11 |
-
<input type="button" value="<?php _e( 'Add email',
|
12 |
<?php
|
13 |
$count = 0;
|
14 |
foreach ( $email_settings['email_reciever'] as $email ) {
|
@@ -29,27 +29,27 @@ $email_settings = $form_detail['email_settings'];
|
|
29 |
</div>
|
30 |
</div>
|
31 |
<div class="ufbl-field-wrap">
|
32 |
-
<label class="ufbl-field"><?php _e( 'From Email',
|
33 |
<div class="ufbl-field">
|
34 |
<input type="text" name="email_settings[from_email]" placeholder='test@xyz.com' value="<?php echo esc_attr( $email_settings['from_email'] ); ?>"/>
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="ufbl-field-wrap">
|
38 |
-
<label class="ufbl-field"><?php _e( 'From Name',
|
39 |
<div class="ufbl-field">
|
40 |
<input type="text" name="email_settings[from_name]" placeholder='John Corner' value="<?php echo esc_attr( $email_settings['from_name'] ); ?>"/>
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="ufbl-field-wrap">
|
44 |
-
<label class="ufbl-field"><?php _e( 'Email Subject',
|
45 |
<div class="ufbl-field">
|
46 |
-
<input type="text" name="email_settings[from_subject]" placeholder='<?php _e( 'New Form Submission',
|
47 |
</div>
|
48 |
</div>
|
49 |
<div class="ufbl-form-controls">
|
50 |
-
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form',
|
51 |
-
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview',
|
52 |
-
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.',
|
53 |
</div>
|
54 |
</div>
|
55 |
|
6 |
?>
|
7 |
<div class="ufbl-tab-content" id="ufbl-email-tab" style="display: none;">
|
8 |
<div class="ufbl-email-wrap">
|
9 |
+
<label><?php _e( 'Email Reciever', 'ultimate-form-builder-lite' ); ?></label>
|
10 |
<div class="ufbl-emails">
|
11 |
+
<input type="button" value="<?php _e( 'Add email', 'ultimate-form-builder-lite' ); ?>" class="button-primary ufbl-email-adder"/>
|
12 |
<?php
|
13 |
$count = 0;
|
14 |
foreach ( $email_settings['email_reciever'] as $email ) {
|
29 |
</div>
|
30 |
</div>
|
31 |
<div class="ufbl-field-wrap">
|
32 |
+
<label class="ufbl-field"><?php _e( 'From Email', 'ultimate-form-builder-lite' ); ?></label>
|
33 |
<div class="ufbl-field">
|
34 |
<input type="text" name="email_settings[from_email]" placeholder='test@xyz.com' value="<?php echo esc_attr( $email_settings['from_email'] ); ?>"/>
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="ufbl-field-wrap">
|
38 |
+
<label class="ufbl-field"><?php _e( 'From Name', 'ultimate-form-builder-lite' ); ?></label>
|
39 |
<div class="ufbl-field">
|
40 |
<input type="text" name="email_settings[from_name]" placeholder='John Corner' value="<?php echo esc_attr( $email_settings['from_name'] ); ?>"/>
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="ufbl-field-wrap">
|
44 |
+
<label class="ufbl-field"><?php _e( 'Email Subject', 'ultimate-form-builder-lite' ); ?></label>
|
45 |
<div class="ufbl-field">
|
46 |
+
<input type="text" name="email_settings[from_subject]" placeholder='<?php _e( 'New Form Submission', 'ultimate-form-builder-lite' ); ?>' value="<?php echo esc_attr( $email_settings['from_subject'] ); ?>"/>
|
47 |
</div>
|
48 |
</div>
|
49 |
<div class="ufbl-form-controls">
|
50 |
+
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form', 'ultimate-form-builder-lite' ); ?>"/>
|
51 |
+
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview', 'ultimate-form-builder-lite' ); ?>"/></a>
|
52 |
+
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.', 'ultimate-form-builder-lite' ); ?></div>
|
53 |
</div>
|
54 |
</div>
|
55 |
|
inc/views/backend/boxes/form-builder-main.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
<div class="ufbl-form-elements-wrap">
|
4 |
<div class="ufbl-form-elements-inner-wrap ufbl-relative">
|
5 |
<span class="ufbl-form-element-title">Form Elements</span>
|
6 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Single Line Textfield',
|
7 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Multiple Line Textfield',
|
8 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Email Address',
|
9 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Dropdown Menu',
|
10 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Radio Button',
|
11 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Checkbox',
|
12 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Password',
|
13 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Hidden Field',
|
14 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Number Field',
|
15 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Submit Button',
|
16 |
-
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Captcha',
|
17 |
|
18 |
</div>
|
19 |
|
@@ -42,67 +42,67 @@
|
|
42 |
<div class="ufbl-each-form-field ufbl-relative">
|
43 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
44 |
<div class="ufbl-form-field-wrap">
|
45 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Texfield',
|
46 |
<div class="ufbl-form-field">
|
47 |
<input type="text" disabled="disabled"/>
|
48 |
</div>
|
49 |
</div><!--ufbl-form-field-wrap-->
|
50 |
<div class="ufbl-field-controls">
|
51 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
52 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
53 |
</div>
|
54 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
55 |
<span class="ufbl-up-arrow"></span>
|
56 |
<div class="ufbl-form-field-wrap">
|
57 |
-
<label><?php _e( 'Field Label',
|
58 |
<div class="ufbl-form-field">
|
59 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Name',
|
60 |
</div>
|
61 |
</div>
|
62 |
<div class="ufbl-form-field-wrap">
|
63 |
-
<label><?php _e( 'Required',
|
64 |
<div class="ufbl-form-field">
|
65 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="required" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
66 |
</div>
|
67 |
</div>
|
68 |
<div class="ufbl-form-field-wrap">
|
69 |
-
<label><?php _e( 'Max Characters',
|
70 |
<div class="ufbl-form-field">
|
71 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo (isset( $val['max_chars'] )) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
72 |
</div>
|
73 |
</div>
|
74 |
<div class="ufbl-form-field-wrap">
|
75 |
-
<label><?php _e( 'Min Characters',
|
76 |
<div class="ufbl-form-field">
|
77 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo (isset( $val['min_chars'] )) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
78 |
</div>
|
79 |
</div>
|
80 |
<div class="ufbl-form-field-wrap">
|
81 |
-
<label><?php _e( 'Error Message',
|
82 |
<div class="ufbl-form-field">
|
83 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
84 |
</div>
|
85 |
</div>
|
86 |
<div class="ufbl-form-field-wrap">
|
87 |
-
<label><?php _e( 'Placeholder',
|
88 |
<div class="ufbl-form-field">
|
89 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Name here',
|
90 |
</div>
|
91 |
</div>
|
92 |
<div class="ufbl-form-field-wrap">
|
93 |
-
<label><?php _e( 'Pre filled value',
|
94 |
<div class="ufbl-form-field">
|
95 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
96 |
</div>
|
97 |
</div>
|
98 |
<div class="ufbl-form-field-wrap">
|
99 |
-
<label><?php _e( 'ID of the field',
|
100 |
<div class="ufbl-form-field">
|
101 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
102 |
</div>
|
103 |
</div>
|
104 |
<div class="ufbl-form-field-wrap">
|
105 |
-
<label><?php _e( 'Class of the field',
|
106 |
<div class="ufbl-form-field">
|
107 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo (isset( $val['field_class'] )) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
108 |
</div>
|
@@ -121,79 +121,79 @@
|
|
121 |
<div class="ufbl-each-form-field ufbl-relative">
|
122 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
123 |
<div class="ufbl-form-field-wrap">
|
124 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Texfield',
|
125 |
<div class="ufbl-form-field">
|
126 |
<textarea disabled="disabled"></textarea>
|
127 |
</div>
|
128 |
</div><!--ufbl-form-field-wrap-->
|
129 |
<div class="ufbl-field-controls">
|
130 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
131 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
132 |
</div>
|
133 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
134 |
<span class="ufbl-up-arrow"></span>
|
135 |
<div class="ufbl-form-field-wrap">
|
136 |
-
<label><?php _e( 'Field Label',
|
137 |
<div class="ufbl-form-field">
|
138 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Message',
|
139 |
</div>
|
140 |
</div>
|
141 |
<div class="ufbl-form-field-wrap">
|
142 |
-
<label><?php _e( 'Required',
|
143 |
<div class="ufbl-form-field">
|
144 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_type" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
145 |
</div>
|
146 |
</div>
|
147 |
<div class="ufbl-form-field-wrap">
|
148 |
-
<label><?php _e( 'Error Message',
|
149 |
<div class="ufbl-form-field">
|
150 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
151 |
</div>
|
152 |
</div>
|
153 |
<div class="ufbl-form-field-wrap">
|
154 |
-
<label><?php _e( 'Textarea Rows',
|
155 |
<div class="ufbl-form-field">
|
156 |
<input type="text" name="field_data[<?php echo $key; ?>][textarea_rows]" placeholder='5' data-field-name="<?php echo $key; ?>" data-field-type="textarea_rows" value="<?php echo (isset( $val['textarea_rows'] )) ? esc_attr( $val['textarea_rows'] ) : ''; ?>"/>
|
157 |
</div>
|
158 |
</div>
|
159 |
<div class="ufbl-form-field-wrap">
|
160 |
-
<label><?php _e( 'Textarea Columns',
|
161 |
<div class="ufbl-form-field">
|
162 |
<input type="text" name="field_data[<?php echo $key; ?>][textarea_columns]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="textarea_columns" value="<?php echo (isset( $val['textarea_columns'] )) ? esc_attr( $val['textarea_columns'] ) : ''; ?>"/>
|
163 |
</div>
|
164 |
</div>
|
165 |
<div class="ufbl-form-field-wrap">
|
166 |
-
<label><?php _e( 'Max Characters',
|
167 |
<div class="ufbl-form-field">
|
168 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo (isset( $val['max_chars'] )) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
169 |
</div>
|
170 |
</div>
|
171 |
<div class="ufbl-form-field-wrap">
|
172 |
-
<label><?php _e( 'Min Characters',
|
173 |
<div class="ufbl-form-field">
|
174 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo (isset( $val['min_chars'] )) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
175 |
</div>
|
176 |
</div>
|
177 |
<div class="ufbl-form-field-wrap">
|
178 |
-
<label><?php _e( 'Placeholder',
|
179 |
<div class="ufbl-form-field">
|
180 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your message here',
|
181 |
</div>
|
182 |
</div>
|
183 |
<div class="ufbl-form-field-wrap">
|
184 |
-
<label><?php _e( 'Pre filled value',
|
185 |
<div class="ufbl-form-field">
|
186 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
187 |
</div>
|
188 |
</div>
|
189 |
<div class="ufbl-form-field-wrap">
|
190 |
-
<label><?php _e( 'ID of the field',
|
191 |
<div class="ufbl-form-field">
|
192 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
193 |
</div>
|
194 |
</div>
|
195 |
<div class="ufbl-form-field-wrap">
|
196 |
-
<label><?php _e( 'Class of the field',
|
197 |
<div class="ufbl-form-field">
|
198 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo (isset( $val['field_class'] )) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
199 |
</div>
|
@@ -212,55 +212,55 @@
|
|
212 |
<div class="ufbl-each-form-field ufbl-relative">
|
213 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
214 |
<div class="ufbl-form-field-wrap">
|
215 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Email',
|
216 |
<div class="ufbl-form-field">
|
217 |
<input type="email" disabled="disabled"/>
|
218 |
</div>
|
219 |
</div><!--ufbl-form-field-wrap-->
|
220 |
<div class="ufbl-field-controls">
|
221 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
222 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
223 |
</div>
|
224 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
225 |
<span class="ufbl-up-arrow"></span>
|
226 |
<div class="ufbl-form-field-wrap">
|
227 |
-
<label><?php _e( 'Field Label',
|
228 |
<div class="ufbl-form-field">
|
229 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Email',
|
230 |
</div>
|
231 |
</div>
|
232 |
<div class="ufbl-form-field-wrap">
|
233 |
-
<label><?php _e( 'Required',
|
234 |
<div class="ufbl-form-field">
|
235 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="required" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
236 |
</div>
|
237 |
</div>
|
238 |
<div class="ufbl-form-field-wrap">
|
239 |
-
<label><?php _e( 'Error Message',
|
240 |
<div class="ufbl-form-field">
|
241 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
242 |
</div>
|
243 |
</div>
|
244 |
<div class="ufbl-form-field-wrap">
|
245 |
-
<label><?php _e( 'Placeholder',
|
246 |
<div class="ufbl-form-field">
|
247 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Email here',
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="ufbl-form-field-wrap">
|
251 |
-
<label><?php _e( 'Pre filled value',
|
252 |
<div class="ufbl-form-field">
|
253 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
254 |
</div>
|
255 |
</div>
|
256 |
<div class="ufbl-form-field-wrap">
|
257 |
-
<label><?php _e( 'ID of the field',
|
258 |
<div class="ufbl-form-field">
|
259 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
260 |
</div>
|
261 |
</div>
|
262 |
<div class="ufbl-form-field-wrap">
|
263 |
-
<label><?php _e( 'Class of the field',
|
264 |
<div class="ufbl-form-field">
|
265 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_type" value="<?php echo (isset( $val['field_type'] )) ? esc_attr( $val['field_type'] ) : ''; ?>"/>
|
266 |
</div>
|
@@ -279,41 +279,41 @@
|
|
279 |
<div class="ufbl-each-form-field ufbl-relative">
|
280 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
281 |
<div class="ufbl-form-field-wrap">
|
282 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Dropdown',
|
283 |
<div class="ufbl-form-field">
|
284 |
<select disabled="disabled">
|
285 |
-
<option><?php _e( 'Option 1',
|
286 |
</select>
|
287 |
</div>
|
288 |
</div><!--ufbl-form-field-wrap-->
|
289 |
<div class="ufbl-field-controls">
|
290 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
291 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
292 |
</div>
|
293 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
294 |
<span class="ufbl-up-arrow"></span>
|
295 |
<div class="ufbl-form-field-wrap">
|
296 |
-
<label><?php _e( 'Field Label',
|
297 |
<div class="ufbl-form-field">
|
298 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Country',
|
299 |
</div>
|
300 |
</div>
|
301 |
<div class="ufbl-form-field-wrap">
|
302 |
-
<label><?php _e( 'Required',
|
303 |
<div class="ufbl-form-field">
|
304 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_type" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
305 |
</div>
|
306 |
</div>
|
307 |
<div class="ufbl-form-field-wrap">
|
308 |
-
<label><?php _e( 'Error Message',
|
309 |
<div class="ufbl-form-field">
|
310 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
311 |
</div>
|
312 |
</div>
|
313 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
314 |
-
<label><?php _e( 'Options',
|
315 |
<div class="ufbl-form-field">
|
316 |
-
<input type="button" value="<?php _e( 'Add Option',
|
317 |
<div class="ufbl-option-value-wrap">
|
318 |
<?php
|
319 |
if ( isset( $val['option'], $val['value'] ) ) {
|
@@ -335,19 +335,19 @@
|
|
335 |
</div>
|
336 |
</div>
|
337 |
<div class="ufbl-form-field-wrap">
|
338 |
-
<label><?php _e( 'Multiple',
|
339 |
<div class="ufbl-form-field">
|
340 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][multiple]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="multiple" <?php checked($val['multiple'],true);?>/>
|
341 |
</div>
|
342 |
</div>
|
343 |
<div class="ufbl-form-field-wrap">
|
344 |
-
<label><?php _e( 'ID of the field',
|
345 |
<div class="ufbl-form-field">
|
346 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
347 |
</div>
|
348 |
</div>
|
349 |
<div class="ufbl-form-field-wrap">
|
350 |
-
<label><?php _e( 'Class of the field',
|
351 |
<div class="ufbl-form-field">
|
352 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
353 |
</div>
|
@@ -366,40 +366,40 @@
|
|
366 |
<div class="ufbl-each-form-field ufbl-relative">
|
367 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
368 |
<div class="ufbl-form-field-wrap">
|
369 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Radio',
|
370 |
<div class="ufbl-form-field">
|
371 |
-
<label><input type="radio" checked="checked" disabled="disabled"><?php _e( 'Option 1',
|
372 |
-
<label><input type="radio" disabled="disabled"><?php _e( 'Option 2',
|
373 |
</div>
|
374 |
</div><!--ufbl-form-field-wrap-->
|
375 |
<div class="ufbl-field-controls">
|
376 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
377 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
378 |
</div>
|
379 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
380 |
<span class="ufbl-up-arrow"></span>
|
381 |
<div class="ufbl-form-field-wrap">
|
382 |
-
<label><?php _e( 'Field Label',
|
383 |
<div class="ufbl-form-field">
|
384 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Gender',
|
385 |
</div>
|
386 |
</div>
|
387 |
<div class="ufbl-form-field-wrap">
|
388 |
-
<label><?php _e( 'Required',
|
389 |
<div class="ufbl-form-field">
|
390 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
391 |
</div>
|
392 |
</div>
|
393 |
<div class="ufbl-form-field-wrap">
|
394 |
-
<label><?php _e( 'Error Message',
|
395 |
<div class="ufbl-form-field">
|
396 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
397 |
</div>
|
398 |
</div>
|
399 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
400 |
-
<label><?php _e( 'Options',
|
401 |
<div class="ufbl-form-field">
|
402 |
-
<input type="button" value="<?php _e( 'Add Option',
|
403 |
<div class="ufbl-option-value-wrap">
|
404 |
<?php
|
405 |
if ( isset( $val['option'], $val['value'] ) ) {
|
@@ -424,13 +424,13 @@
|
|
424 |
</div>
|
425 |
</div>
|
426 |
<div class="ufbl-form-field-wrap">
|
427 |
-
<label><?php _e( 'ID of the field',
|
428 |
<div class="ufbl-form-field">
|
429 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
430 |
</div>
|
431 |
</div>
|
432 |
<div class="ufbl-form-field-wrap">
|
433 |
-
<label><?php _e( 'Class of the field',
|
434 |
<div class="ufbl-form-field">
|
435 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
436 |
</div>
|
@@ -449,41 +449,41 @@
|
|
449 |
<div class="ufbl-each-form-field ufbl-relative">
|
450 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
451 |
<div class="ufbl-form-field-wrap">
|
452 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Checkbox',
|
453 |
<div class="ufbl-form-field">
|
454 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 1',
|
455 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 2',
|
456 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 3',
|
457 |
</div>
|
458 |
</div><!--ufbl-form-field-wrap-->
|
459 |
<div class="ufbl-field-controls">
|
460 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
461 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
462 |
</div>
|
463 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
464 |
<span class="ufbl-up-arrow"></span>
|
465 |
<div class="ufbl-form-field-wrap">
|
466 |
-
<label><?php _e( 'Field Label',
|
467 |
<div class="ufbl-form-field">
|
468 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Hobbies',
|
469 |
</div>
|
470 |
</div>
|
471 |
<div class="ufbl-form-field-wrap">
|
472 |
-
<label><?php _e( 'Required',
|
473 |
<div class="ufbl-form-field">
|
474 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
475 |
</div>
|
476 |
</div>
|
477 |
<div class="ufbl-form-field-wrap">
|
478 |
-
<label><?php _e( 'Error Message',
|
479 |
<div class="ufbl-form-field">
|
480 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name',
|
481 |
</div>
|
482 |
</div>
|
483 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
484 |
-
<label><?php _e( 'Options',
|
485 |
<div class="ufbl-form-field">
|
486 |
-
<input type="button" value="<?php _e( 'Add Option',
|
487 |
<div class="ufbl-option-value-wrap">
|
488 |
<?php
|
489 |
if ( isset( $val['option'], $val['value'] ) ) {
|
@@ -505,13 +505,13 @@
|
|
505 |
</div>
|
506 |
</div>
|
507 |
<div class="ufbl-form-field-wrap">
|
508 |
-
<label><?php _e( 'ID of the field',
|
509 |
<div class="ufbl-form-field">
|
510 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
511 |
</div>
|
512 |
</div>
|
513 |
<div class="ufbl-form-field-wrap">
|
514 |
-
<label><?php _e( 'Class of the field',
|
515 |
<div class="ufbl-form-field">
|
516 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
517 |
</div>
|
@@ -530,61 +530,61 @@
|
|
530 |
<div class="ufbl-each-form-field ufbl-relative">
|
531 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
532 |
<div class="ufbl-form-field-wrap">
|
533 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Password',
|
534 |
<div class="ufbl-form-field">
|
535 |
<input type="password" disabled="disabled"/>
|
536 |
</div>
|
537 |
</div><!--ufbl-form-field-wrap-->
|
538 |
<div class="ufbl-field-controls">
|
539 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
540 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
541 |
</div>
|
542 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
543 |
<span class="ufbl-up-arrow"></span>
|
544 |
<div class="ufbl-form-field-wrap">
|
545 |
-
<label><?php _e( 'Field Label',
|
546 |
<div class="ufbl-form-field">
|
547 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Password',
|
548 |
</div>
|
549 |
</div>
|
550 |
<div class="ufbl-form-field-wrap">
|
551 |
-
<label><?php _e( 'Required',
|
552 |
<div class="ufbl-form-field">
|
553 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
554 |
</div>
|
555 |
</div>
|
556 |
<div class="ufbl-form-field-wrap">
|
557 |
-
<label><?php _e( 'Max Characters',
|
558 |
<div class="ufbl-form-field">
|
559 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo isset( $val['max_chars'] ) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
560 |
</div>
|
561 |
</div>
|
562 |
<div class="ufbl-form-field-wrap">
|
563 |
-
<label><?php _e( 'Min Characters',
|
564 |
<div class="ufbl-form-field">
|
565 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo isset( $val['min_chars'] ) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
566 |
</div>
|
567 |
</div>
|
568 |
<div class="ufbl-form-field-wrap">
|
569 |
-
<label><?php _e( 'Error Message',
|
570 |
<div class="ufbl-form-field">
|
571 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill number only',
|
572 |
</div>
|
573 |
</div>
|
574 |
<div class="ufbl-form-field-wrap">
|
575 |
-
<label><?php _e( 'Placeholder',
|
576 |
<div class="ufbl-form-field">
|
577 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Password here',
|
578 |
</div>
|
579 |
</div>
|
580 |
<div class="ufbl-form-field-wrap">
|
581 |
-
<label><?php _e( 'ID of the field',
|
582 |
<div class="ufbl-form-field">
|
583 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
584 |
</div>
|
585 |
</div>
|
586 |
<div class="ufbl-form-field-wrap">
|
587 |
-
<label><?php _e( 'Class of the field',
|
588 |
<div class="ufbl-form-field">
|
589 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
590 |
</div>
|
@@ -603,37 +603,37 @@
|
|
603 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
604 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
605 |
<div class="ufbl-form-field-wrap">
|
606 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Hidden',
|
607 |
<div class="ufbl-form-field">
|
608 |
<input type="hidden" disabled="disabled"/>
|
609 |
</div>
|
610 |
</div><!--ufbl-form-field-wrap-->
|
611 |
<div class="ufbl-field-controls">
|
612 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
613 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
614 |
</div>
|
615 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
616 |
<span class="ufbl-up-arrow"></span>
|
617 |
<div class="ufbl-form-field-wrap">
|
618 |
-
<label><?php _e( 'Field Label',
|
619 |
<div class="ufbl-form-field">
|
620 |
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo isset( $val['field_label'] ) ? esc_attr( $val['field_label'] ) : '' ?>"/>
|
621 |
</div>
|
622 |
</div>
|
623 |
<div class="ufbl-form-field-wrap">
|
624 |
-
<label><?php _e( 'Pre filled value',
|
625 |
<div class="ufbl-form-field">
|
626 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo isset( $val['pre_filled_value'] ) ? esc_attr( $val['pre_filled_value'] ) : '' ?>"/>
|
627 |
</div>
|
628 |
</div>
|
629 |
<div class="ufbl-form-field-wrap">
|
630 |
-
<label><?php _e( 'ID of the field',
|
631 |
<div class="ufbl-form-field">
|
632 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : '' ?>"/>
|
633 |
</div>
|
634 |
</div>
|
635 |
<div class="ufbl-form-field-wrap">
|
636 |
-
<label><?php _e( 'Class of the field',
|
637 |
<div class="ufbl-form-field">
|
638 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : '' ?>"/>
|
639 |
</div>
|
@@ -652,67 +652,67 @@
|
|
652 |
<div class="ufbl-each-form-field ufbl-relative">
|
653 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
654 |
<div class="ufbl-form-field-wrap">
|
655 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Number',
|
656 |
<div class="ufbl-form-field">
|
657 |
<input type="number" disabled="disabled"/>
|
658 |
</div>
|
659 |
</div><!--ufbl-form-field-wrap-->
|
660 |
<div class="ufbl-field-controls">
|
661 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
662 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
663 |
</div>
|
664 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
665 |
<span class="ufbl-up-arrow"></span>
|
666 |
<div class="ufbl-form-field-wrap">
|
667 |
-
<label><?php _e( 'Field Label',
|
668 |
<div class="ufbl-form-field">
|
669 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Number',
|
670 |
</div>
|
671 |
</div>
|
672 |
<div class="ufbl-form-field-wrap">
|
673 |
-
<label><?php _e( 'Required',
|
674 |
<div class="ufbl-form-field">
|
675 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
676 |
</div>
|
677 |
</div>
|
678 |
<div class="ufbl-form-field-wrap">
|
679 |
-
<label><?php _e( 'Max Value',
|
680 |
<div class="ufbl-form-field">
|
681 |
<input type="text" name="field_data[<?php echo $key; ?>][max_value]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_value" value="<?php echo isset( $val['max_value'] ) ? $val['max_value'] : ''; ?>"/>
|
682 |
</div>
|
683 |
</div>
|
684 |
<div class="ufbl-form-field-wrap">
|
685 |
-
<label><?php _e( 'Min Value',
|
686 |
<div class="ufbl-form-field">
|
687 |
<input type="text" name="field_data[<?php echo $key; ?>][min_value]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_value" value="<?php echo isset( $val['min_value'] ) ? $val['min_value'] : ''; ?>"/>
|
688 |
</div>
|
689 |
</div>
|
690 |
<div class="ufbl-form-field-wrap">
|
691 |
-
<label><?php _e( 'Error Message',
|
692 |
<div class="ufbl-form-field">
|
693 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill number only',
|
694 |
</div>
|
695 |
</div>
|
696 |
<div class="ufbl-form-field-wrap">
|
697 |
-
<label><?php _e( 'Placeholder',
|
698 |
<div class="ufbl-form-field">
|
699 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your age here',
|
700 |
</div>
|
701 |
</div>
|
702 |
<div class="ufbl-form-field-wrap">
|
703 |
-
<label><?php _e( 'Pre filled value',
|
704 |
<div class="ufbl-form-field">
|
705 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
706 |
</div>
|
707 |
</div>
|
708 |
<div class="ufbl-form-field-wrap">
|
709 |
-
<label><?php _e( 'ID of the field',
|
710 |
<div class="ufbl-form-field">
|
711 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_label"/>
|
712 |
</div>
|
713 |
</div>
|
714 |
<div class="ufbl-form-field-wrap">
|
715 |
-
<label><?php _e( 'Class of the field',
|
716 |
<div class="ufbl-form-field">
|
717 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_label"/>
|
718 |
</div>
|
@@ -732,42 +732,42 @@
|
|
732 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
733 |
<div class="ufbl-form-field-wrap">
|
734 |
<div class="ufbl-form-field">
|
735 |
-
<input type="submit" disabled="disabled" class="button-primary ufbl-submit-reference" value="<?php echo ($val['button_label'] == '') ? __( 'Submit',
|
736 |
</div>
|
737 |
</div><!--ufbl-form-field-wrap-->
|
738 |
<div class="ufbl-field-controls">
|
739 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
740 |
-
<a href="javascript:void(0)" class="ufbl-field-delete-trigger" data-confirm-message="<?php _e( 'If you delete this element then data related with this element will also be deleted. Are you sure you want to delete this element?',
|
741 |
</div>
|
742 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
743 |
<span class="ufbl-up-arrow"></span>
|
744 |
<div class="ufbl-form-field-wrap">
|
745 |
-
<label><?php _e( 'Submit Button label',
|
746 |
<div class="ufbl-form-field">
|
747 |
<input type="text" name="field_data[<?php echo $key; ?>][button_label]" class="ufbl-submit-button" value="<?php echo esc_attr( $val['button_label'] ); ?>"/>
|
748 |
</div>
|
749 |
</div>
|
750 |
<div class="ufbl-form-field-wrap">
|
751 |
-
<label><?php _e( 'Show Reset Button',
|
752 |
<div class="ufbl-form-field">
|
753 |
<?php $show_reset_button = isset($val['show_reset_button'])?1:0;?>
|
754 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][show_reset_button]" value="1" <?php checked( $show_reset_button,true);?>/>
|
755 |
</div>
|
756 |
</div>
|
757 |
<div class="ufbl-form-field-wrap">
|
758 |
-
<label><?php _e( 'Reset Button label',
|
759 |
<div class="ufbl-form-field">
|
760 |
<input type="text" name="field_data[<?php echo $key; ?>][reset_label]" value="<?php echo isset($val['reset_label'])?esc_attr($val['reset_label']):'';?>"/>
|
761 |
</div>
|
762 |
</div>
|
763 |
<div class="ufbl-form-field-wrap">
|
764 |
-
<label><?php _e( 'ID of the field',
|
765 |
<div class="ufbl-form-field">
|
766 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo esc_attr( $val['field_id'] ); ?>"/>
|
767 |
</div>
|
768 |
</div>
|
769 |
<div class="ufbl-form-field-wrap">
|
770 |
-
<label><?php _e( 'Class of the field',
|
771 |
<div class="ufbl-form-field">
|
772 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo esc_attr( $val['field_class'] ); ?>"/>
|
773 |
</div>
|
@@ -785,73 +785,73 @@
|
|
785 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
786 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
787 |
<div class="ufbl-form-field-wrap">
|
788 |
-
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Captcha',
|
789 |
<div class="ufbl-form-field">
|
790 |
|
791 |
</div>
|
792 |
</div><!--ufbl-form-field-wrap-->
|
793 |
<div class="ufbl-field-controls">
|
794 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
795 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
796 |
</div>
|
797 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
798 |
<span class="ufbl-up-arrow"></span>
|
799 |
<div class="ufbl-form-field-wrap">
|
800 |
-
<label><?php _e( 'Field Label',
|
801 |
<div class="ufbl-form-field">
|
802 |
-
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Human Check',
|
803 |
</div>
|
804 |
</div>
|
805 |
<div class="ufbl-form-field-wrap">
|
806 |
-
<label><?php _e( 'Captcha Type',
|
807 |
<div class="ufbl-form-field">
|
808 |
<select name="field_data[<?php echo $key; ?>][captcha_type]" class="ufbl-captcha-type-dropdown">
|
809 |
-
<option value="mathematical" <?php selected( $val['captcha_type'], 'mathematical' ); ?>><?php _e( 'Mathematical Captcha',
|
810 |
-
<option value="google" <?php selected( $val['captcha_type'], 'google' ); ?>><?php _e( 'Google reCaptcha',
|
811 |
</select>
|
812 |
</div>
|
813 |
</div>
|
814 |
<div class="ufbl-captcha-field-ref" <?php if ( $val['captcha_type'] == 'mathematical' ) { ?>style="display:none;"<?php } ?>>
|
815 |
<div class="ufbl-form-field-wrap">
|
816 |
-
<label><?php _e( 'Site Key',
|
817 |
<div class="ufbl-form-field">
|
818 |
<input type="text" name="field_data[<?php echo $key; ?>][site_key]" value="<?php echo isset( $val['site_key'] ) ? esc_attr( $val['site_key'] ) : ''; ?>"/>
|
819 |
</div>
|
820 |
</div>
|
821 |
<div class="ufbl-form-field-wrap">
|
822 |
-
<label><?php _e( 'Secret Key',
|
823 |
<div class="ufbl-form-field">
|
824 |
<input type="text" name="field_data[<?php echo $key; ?>][secret_key]" value="<?php echo isset( $val['secret_key'] ) ? esc_attr( $val['secret_key'] ) : ''; ?>"/>
|
825 |
</div>
|
826 |
</div>
|
827 |
<div class="ufbl-field-extra-note">
|
828 |
<?php
|
829 |
-
_e( 'Google Captcha will only show up in form filled the valid google captcha keys.Please visit <a href="https://www.google.com/recaptcha/admin" target="_blank">here</a> to get your site and secret key.',
|
830 |
?>
|
831 |
|
832 |
</div>
|
833 |
</div>
|
834 |
<div class="ufbl-form-field-wrap">
|
835 |
-
<label><?php _e( 'Error Message',
|
836 |
<div class="ufbl-form-field">
|
837 |
-
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please verify you are human.',
|
838 |
</div>
|
839 |
</div>
|
840 |
<div class="ufbl-form-field-wrap">
|
841 |
-
<label><?php _e( 'Placeholder',
|
842 |
<div class="ufbl-form-field">
|
843 |
-
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Enter Sum',
|
844 |
<div class="ufbl-field-note"><?php _e( 'Note: Placeholder is only for the mathematical type captcha.' ); ?></div>
|
845 |
</div>
|
846 |
</div>
|
847 |
<div class="ufbl-form-field-wrap">
|
848 |
-
<label><?php _e( 'ID of the field',
|
849 |
<div class="ufbl-form-field">
|
850 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="ufbl_key" data-field-type="field_label" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
851 |
</div>
|
852 |
</div>
|
853 |
<div class="ufbl-form-field-wrap">
|
854 |
-
<label><?php _e( 'Class of the field',
|
855 |
<div class="ufbl-form-field">
|
856 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="ufbl_key" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
857 |
</div>
|
@@ -878,9 +878,9 @@
|
|
878 |
|
879 |
<div class="ufbl-clear"></div>
|
880 |
<div class="ufbl-form-controls ufbl-text-align-right">
|
881 |
-
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form',
|
882 |
-
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview',
|
883 |
-
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.',
|
884 |
</div>
|
885 |
<div class="ufbl-clear"></div>
|
886 |
</div>
|
3 |
<div class="ufbl-form-elements-wrap">
|
4 |
<div class="ufbl-form-elements-inner-wrap ufbl-relative">
|
5 |
<span class="ufbl-form-element-title">Form Elements</span>
|
6 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Single Line Textfield', 'ultimate-form-builder-lite' ); ?>" data-field-type="textfield">
|
7 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Multiple Line Textfield', 'ultimate-form-builder-lite' ); ?>" data-field-type="textarea">
|
8 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Email Address', 'ultimate-form-builder-lite' ); ?>" data-field-type="email">
|
9 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Dropdown Menu', 'ultimate-form-builder-lite' ); ?>" data-field-type="dropdown">
|
10 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Radio Button', 'ultimate-form-builder-lite' ); ?>" data-field-type="radio">
|
11 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Checkbox', 'ultimate-form-builder-lite' ); ?>" data-field-type="checkbox">
|
12 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Password', 'ultimate-form-builder-lite' ); ?>" data-field-type="password">
|
13 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Hidden Field', 'ultimate-form-builder-lite' ); ?>" data-field-type="hidden">
|
14 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Number Field', 'ultimate-form-builder-lite' ); ?>" data-field-type="number">
|
15 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Submit Button', 'ultimate-form-builder-lite' ); ?>" data-field-type="submit">
|
16 |
+
<input type="button" class="button-primary ufbl-form-element" value="<?php _e( 'Captcha', 'ultimate-form-builder-lite' ); ?>" data-field-type="captcha">
|
17 |
|
18 |
</div>
|
19 |
|
42 |
<div class="ufbl-each-form-field ufbl-relative">
|
43 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
44 |
<div class="ufbl-form-field-wrap">
|
45 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Texfield', 'ultimate-form-builder-lite' ); ?></label>
|
46 |
<div class="ufbl-form-field">
|
47 |
<input type="text" disabled="disabled"/>
|
48 |
</div>
|
49 |
</div><!--ufbl-form-field-wrap-->
|
50 |
<div class="ufbl-field-controls">
|
51 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
52 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
53 |
</div>
|
54 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
55 |
<span class="ufbl-up-arrow"></span>
|
56 |
<div class="ufbl-form-field-wrap">
|
57 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
58 |
<div class="ufbl-form-field">
|
59 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Name', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field ufbl-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
60 |
</div>
|
61 |
</div>
|
62 |
<div class="ufbl-form-field-wrap">
|
63 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
64 |
<div class="ufbl-form-field">
|
65 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="required" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
66 |
</div>
|
67 |
</div>
|
68 |
<div class="ufbl-form-field-wrap">
|
69 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
70 |
<div class="ufbl-form-field">
|
71 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo (isset( $val['max_chars'] )) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
72 |
</div>
|
73 |
</div>
|
74 |
<div class="ufbl-form-field-wrap">
|
75 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
76 |
<div class="ufbl-form-field">
|
77 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo (isset( $val['min_chars'] )) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
78 |
</div>
|
79 |
</div>
|
80 |
<div class="ufbl-form-field-wrap">
|
81 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
82 |
<div class="ufbl-form-field">
|
83 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo (isset( $val['error_message'] )) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
84 |
</div>
|
85 |
</div>
|
86 |
<div class="ufbl-form-field-wrap">
|
87 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
88 |
<div class="ufbl-form-field">
|
89 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Name here', 'ultimate-form-builder-lite' ); ?>' data-field-name="<?php echo $key; ?>" data-field-type="placeholder" value="<?php echo (isset( $val['placeholder'] )) ? esc_attr( $val['placeholder'] ) : ''; ?>"/>
|
90 |
</div>
|
91 |
</div>
|
92 |
<div class="ufbl-form-field-wrap">
|
93 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
94 |
<div class="ufbl-form-field">
|
95 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
96 |
</div>
|
97 |
</div>
|
98 |
<div class="ufbl-form-field-wrap">
|
99 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
100 |
<div class="ufbl-form-field">
|
101 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
102 |
</div>
|
103 |
</div>
|
104 |
<div class="ufbl-form-field-wrap">
|
105 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
106 |
<div class="ufbl-form-field">
|
107 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo (isset( $val['field_class'] )) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
108 |
</div>
|
121 |
<div class="ufbl-each-form-field ufbl-relative">
|
122 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
123 |
<div class="ufbl-form-field-wrap">
|
124 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Texfield', 'ultimate-form-builder-lite' ); ?></label>
|
125 |
<div class="ufbl-form-field">
|
126 |
<textarea disabled="disabled"></textarea>
|
127 |
</div>
|
128 |
</div><!--ufbl-form-field-wrap-->
|
129 |
<div class="ufbl-field-controls">
|
130 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
131 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
132 |
</div>
|
133 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
134 |
<span class="ufbl-up-arrow"></span>
|
135 |
<div class="ufbl-form-field-wrap">
|
136 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
137 |
<div class="ufbl-form-field">
|
138 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Message', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_type" value="<?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
139 |
</div>
|
140 |
</div>
|
141 |
<div class="ufbl-form-field-wrap">
|
142 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
143 |
<div class="ufbl-form-field">
|
144 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_type" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
145 |
</div>
|
146 |
</div>
|
147 |
<div class="ufbl-form-field-wrap">
|
148 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
149 |
<div class="ufbl-form-field">
|
150 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo (isset( $val['error_message'] )) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
151 |
</div>
|
152 |
</div>
|
153 |
<div class="ufbl-form-field-wrap">
|
154 |
+
<label><?php _e( 'Textarea Rows', 'ultimate-form-builder-lite' ); ?></label>
|
155 |
<div class="ufbl-form-field">
|
156 |
<input type="text" name="field_data[<?php echo $key; ?>][textarea_rows]" placeholder='5' data-field-name="<?php echo $key; ?>" data-field-type="textarea_rows" value="<?php echo (isset( $val['textarea_rows'] )) ? esc_attr( $val['textarea_rows'] ) : ''; ?>"/>
|
157 |
</div>
|
158 |
</div>
|
159 |
<div class="ufbl-form-field-wrap">
|
160 |
+
<label><?php _e( 'Textarea Columns', 'ultimate-form-builder-lite' ); ?></label>
|
161 |
<div class="ufbl-form-field">
|
162 |
<input type="text" name="field_data[<?php echo $key; ?>][textarea_columns]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="textarea_columns" value="<?php echo (isset( $val['textarea_columns'] )) ? esc_attr( $val['textarea_columns'] ) : ''; ?>"/>
|
163 |
</div>
|
164 |
</div>
|
165 |
<div class="ufbl-form-field-wrap">
|
166 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
167 |
<div class="ufbl-form-field">
|
168 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo (isset( $val['max_chars'] )) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
169 |
</div>
|
170 |
</div>
|
171 |
<div class="ufbl-form-field-wrap">
|
172 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
173 |
<div class="ufbl-form-field">
|
174 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo (isset( $val['min_chars'] )) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
175 |
</div>
|
176 |
</div>
|
177 |
<div class="ufbl-form-field-wrap">
|
178 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
179 |
<div class="ufbl-form-field">
|
180 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your message here', 'ultimate-form-builder-lite' ); ?>' data-field-name="<?php echo $key; ?>" data-field-type="placeholder" value="<?php echo (isset( $val['placeholder'] )) ? esc_attr( $val['placeholder'] ) : ''; ?>"/>
|
181 |
</div>
|
182 |
</div>
|
183 |
<div class="ufbl-form-field-wrap">
|
184 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
185 |
<div class="ufbl-form-field">
|
186 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
187 |
</div>
|
188 |
</div>
|
189 |
<div class="ufbl-form-field-wrap">
|
190 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
191 |
<div class="ufbl-form-field">
|
192 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
193 |
</div>
|
194 |
</div>
|
195 |
<div class="ufbl-form-field-wrap">
|
196 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
197 |
<div class="ufbl-form-field">
|
198 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo (isset( $val['field_class'] )) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
199 |
</div>
|
212 |
<div class="ufbl-each-form-field ufbl-relative">
|
213 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
214 |
<div class="ufbl-form-field-wrap">
|
215 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Email', 'ultimate-form-builder-lite' ); ?></label>
|
216 |
<div class="ufbl-form-field">
|
217 |
<input type="email" disabled="disabled"/>
|
218 |
</div>
|
219 |
</div><!--ufbl-form-field-wrap-->
|
220 |
<div class="ufbl-field-controls">
|
221 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
222 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
223 |
</div>
|
224 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
225 |
<span class="ufbl-up-arrow"></span>
|
226 |
<div class="ufbl-form-field-wrap">
|
227 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
228 |
<div class="ufbl-form-field">
|
229 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Email', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
230 |
</div>
|
231 |
</div>
|
232 |
<div class="ufbl-form-field-wrap">
|
233 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
234 |
<div class="ufbl-form-field">
|
235 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="required" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
236 |
</div>
|
237 |
</div>
|
238 |
<div class="ufbl-form-field-wrap">
|
239 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
240 |
<div class="ufbl-form-field">
|
241 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo (isset( $val['error_message'] )) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
242 |
</div>
|
243 |
</div>
|
244 |
<div class="ufbl-form-field-wrap">
|
245 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
246 |
<div class="ufbl-form-field">
|
247 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Email here', 'ultimate-form-builder-lite' ); ?>' data-field-name="<?php echo $key; ?>" data-field-type="placeholder" value="<?php echo (isset( $val['placeholder'] )) ? esc_attr( $val['placeholder'] ) : ''; ?>"/>
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="ufbl-form-field-wrap">
|
251 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
252 |
<div class="ufbl-form-field">
|
253 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
254 |
</div>
|
255 |
</div>
|
256 |
<div class="ufbl-form-field-wrap">
|
257 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
258 |
<div class="ufbl-form-field">
|
259 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo (isset( $val['field_id'] )) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
260 |
</div>
|
261 |
</div>
|
262 |
<div class="ufbl-form-field-wrap">
|
263 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
264 |
<div class="ufbl-form-field">
|
265 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_type" value="<?php echo (isset( $val['field_type'] )) ? esc_attr( $val['field_type'] ) : ''; ?>"/>
|
266 |
</div>
|
279 |
<div class="ufbl-each-form-field ufbl-relative">
|
280 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
281 |
<div class="ufbl-form-field-wrap">
|
282 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Dropdown', 'ultimate-form-builder-lite' ); ?></label>
|
283 |
<div class="ufbl-form-field">
|
284 |
<select disabled="disabled">
|
285 |
+
<option><?php _e( 'Option 1', 'ultimate-form-builder-lite' ) ?></option>
|
286 |
</select>
|
287 |
</div>
|
288 |
</div><!--ufbl-form-field-wrap-->
|
289 |
<div class="ufbl-field-controls">
|
290 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
291 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
292 |
</div>
|
293 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
294 |
<span class="ufbl-up-arrow"></span>
|
295 |
<div class="ufbl-form-field-wrap">
|
296 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
297 |
<div class="ufbl-form-field">
|
298 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Country', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo (isset( $val['field_label'] )) ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
299 |
</div>
|
300 |
</div>
|
301 |
<div class="ufbl-form-field-wrap">
|
302 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
303 |
<div class="ufbl-form-field">
|
304 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_type" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
305 |
</div>
|
306 |
</div>
|
307 |
<div class="ufbl-form-field-wrap">
|
308 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
309 |
<div class="ufbl-form-field">
|
310 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo isset( $val['error_message'] ) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
311 |
</div>
|
312 |
</div>
|
313 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
314 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
315 |
<div class="ufbl-form-field">
|
316 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="<?php echo $key; ?>"/>
|
317 |
<div class="ufbl-option-value-wrap">
|
318 |
<?php
|
319 |
if ( isset( $val['option'], $val['value'] ) ) {
|
335 |
</div>
|
336 |
</div>
|
337 |
<div class="ufbl-form-field-wrap">
|
338 |
+
<label><?php _e( 'Multiple', 'ultimate-form-builder-lite' ); ?></label>
|
339 |
<div class="ufbl-form-field">
|
340 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][multiple]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="multiple" <?php checked($val['multiple'],true);?>/>
|
341 |
</div>
|
342 |
</div>
|
343 |
<div class="ufbl-form-field-wrap">
|
344 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
345 |
<div class="ufbl-form-field">
|
346 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
347 |
</div>
|
348 |
</div>
|
349 |
<div class="ufbl-form-field-wrap">
|
350 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
351 |
<div class="ufbl-form-field">
|
352 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
353 |
</div>
|
366 |
<div class="ufbl-each-form-field ufbl-relative">
|
367 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
368 |
<div class="ufbl-form-field-wrap">
|
369 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Radio', 'ultimate-form-builder-lite' ); ?></label>
|
370 |
<div class="ufbl-form-field">
|
371 |
+
<label><input type="radio" checked="checked" disabled="disabled"><?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?></label>
|
372 |
+
<label><input type="radio" disabled="disabled"><?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?></label>
|
373 |
</div>
|
374 |
</div><!--ufbl-form-field-wrap-->
|
375 |
<div class="ufbl-field-controls">
|
376 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
377 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
378 |
</div>
|
379 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
380 |
<span class="ufbl-up-arrow"></span>
|
381 |
<div class="ufbl-form-field-wrap">
|
382 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
383 |
<div class="ufbl-form-field">
|
384 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Gender', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
385 |
</div>
|
386 |
</div>
|
387 |
<div class="ufbl-form-field-wrap">
|
388 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
389 |
<div class="ufbl-form-field">
|
390 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
391 |
</div>
|
392 |
</div>
|
393 |
<div class="ufbl-form-field-wrap">
|
394 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
395 |
<div class="ufbl-form-field">
|
396 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo (isset( $val['error_message'] ) && $val['error_message'] != '') ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
397 |
</div>
|
398 |
</div>
|
399 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
400 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
401 |
<div class="ufbl-form-field">
|
402 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="<?php echo $key; ?>"/>
|
403 |
<div class="ufbl-option-value-wrap">
|
404 |
<?php
|
405 |
if ( isset( $val['option'], $val['value'] ) ) {
|
424 |
</div>
|
425 |
</div>
|
426 |
<div class="ufbl-form-field-wrap">
|
427 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
428 |
<div class="ufbl-form-field">
|
429 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
430 |
</div>
|
431 |
</div>
|
432 |
<div class="ufbl-form-field-wrap">
|
433 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
434 |
<div class="ufbl-form-field">
|
435 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
436 |
</div>
|
449 |
<div class="ufbl-each-form-field ufbl-relative">
|
450 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
451 |
<div class="ufbl-form-field-wrap">
|
452 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Checkbox', 'ultimate-form-builder-lite' ); ?></label>
|
453 |
<div class="ufbl-form-field">
|
454 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?></label>
|
455 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?></label>
|
456 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?></label>
|
457 |
</div>
|
458 |
</div><!--ufbl-form-field-wrap-->
|
459 |
<div class="ufbl-field-controls">
|
460 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
461 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
462 |
</div>
|
463 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
464 |
<span class="ufbl-up-arrow"></span>
|
465 |
<div class="ufbl-form-field-wrap">
|
466 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
467 |
<div class="ufbl-form-field">
|
468 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Hobbies', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo isset( $val['field_label'] ) ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
469 |
</div>
|
470 |
</div>
|
471 |
<div class="ufbl-form-field-wrap">
|
472 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
473 |
<div class="ufbl-form-field">
|
474 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
475 |
</div>
|
476 |
</div>
|
477 |
<div class="ufbl-form-field-wrap">
|
478 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
479 |
<div class="ufbl-form-field">
|
480 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo isset( $val['field_label'] ) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
481 |
</div>
|
482 |
</div>
|
483 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
484 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
485 |
<div class="ufbl-form-field">
|
486 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="<?php echo $key; ?>"/>
|
487 |
<div class="ufbl-option-value-wrap">
|
488 |
<?php
|
489 |
if ( isset( $val['option'], $val['value'] ) ) {
|
505 |
</div>
|
506 |
</div>
|
507 |
<div class="ufbl-form-field-wrap">
|
508 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
509 |
<div class="ufbl-form-field">
|
510 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
511 |
</div>
|
512 |
</div>
|
513 |
<div class="ufbl-form-field-wrap">
|
514 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
515 |
<div class="ufbl-form-field">
|
516 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
517 |
</div>
|
530 |
<div class="ufbl-each-form-field ufbl-relative">
|
531 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
532 |
<div class="ufbl-form-field-wrap">
|
533 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Password', 'ultimate-form-builder-lite' ); ?></label>
|
534 |
<div class="ufbl-form-field">
|
535 |
<input type="password" disabled="disabled"/>
|
536 |
</div>
|
537 |
</div><!--ufbl-form-field-wrap-->
|
538 |
<div class="ufbl-field-controls">
|
539 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
540 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
541 |
</div>
|
542 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
543 |
<span class="ufbl-up-arrow"></span>
|
544 |
<div class="ufbl-form-field-wrap">
|
545 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
546 |
<div class="ufbl-form-field">
|
547 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Password', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo isset( $val['field_label'] ) ? esc_attr( $val['field_label'] ) : ''; ?>"/>
|
548 |
</div>
|
549 |
</div>
|
550 |
<div class="ufbl-form-field-wrap">
|
551 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
552 |
<div class="ufbl-form-field">
|
553 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
554 |
</div>
|
555 |
</div>
|
556 |
<div class="ufbl-form-field-wrap">
|
557 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
558 |
<div class="ufbl-form-field">
|
559 |
<input type="text" name="field_data[<?php echo $key; ?>][max_chars]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_chars" value="<?php echo isset( $val['max_chars'] ) ? esc_attr( $val['max_chars'] ) : ''; ?>"/>
|
560 |
</div>
|
561 |
</div>
|
562 |
<div class="ufbl-form-field-wrap">
|
563 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
564 |
<div class="ufbl-form-field">
|
565 |
<input type="text" name="field_data[<?php echo $key; ?>][min_chars]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_chars" value="<?php echo isset( $val['min_chars'] ) ? esc_attr( $val['min_chars'] ) : ''; ?>"/>
|
566 |
</div>
|
567 |
</div>
|
568 |
<div class="ufbl-form-field-wrap">
|
569 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
570 |
<div class="ufbl-form-field">
|
571 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill number only', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo isset( $val['error_message'] ) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
572 |
</div>
|
573 |
</div>
|
574 |
<div class="ufbl-form-field-wrap">
|
575 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
576 |
<div class="ufbl-form-field">
|
577 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your Password here', 'ultimate-form-builder-lite' ); ?>' data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo isset( $val['placeholder'] ) ? esc_attr( $val['placeholder'] ) : ''; ?>"/>
|
578 |
</div>
|
579 |
</div>
|
580 |
<div class="ufbl-form-field-wrap">
|
581 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
582 |
<div class="ufbl-form-field">
|
583 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
584 |
</div>
|
585 |
</div>
|
586 |
<div class="ufbl-form-field-wrap">
|
587 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
588 |
<div class="ufbl-form-field">
|
589 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
590 |
</div>
|
603 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
604 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
605 |
<div class="ufbl-form-field-wrap">
|
606 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Hidden', 'ultimate-form-builder-lite' ); ?></label>
|
607 |
<div class="ufbl-form-field">
|
608 |
<input type="hidden" disabled="disabled"/>
|
609 |
</div>
|
610 |
</div><!--ufbl-form-field-wrap-->
|
611 |
<div class="ufbl-field-controls">
|
612 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
613 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
614 |
</div>
|
615 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
616 |
<span class="ufbl-up-arrow"></span>
|
617 |
<div class="ufbl-form-field-wrap">
|
618 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
619 |
<div class="ufbl-form-field">
|
620 |
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo isset( $val['field_label'] ) ? esc_attr( $val['field_label'] ) : '' ?>"/>
|
621 |
</div>
|
622 |
</div>
|
623 |
<div class="ufbl-form-field-wrap">
|
624 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
625 |
<div class="ufbl-form-field">
|
626 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo isset( $val['pre_filled_value'] ) ? esc_attr( $val['pre_filled_value'] ) : '' ?>"/>
|
627 |
</div>
|
628 |
</div>
|
629 |
<div class="ufbl-form-field-wrap">
|
630 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
631 |
<div class="ufbl-form-field">
|
632 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : '' ?>"/>
|
633 |
</div>
|
634 |
</div>
|
635 |
<div class="ufbl-form-field-wrap">
|
636 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
637 |
<div class="ufbl-form-field">
|
638 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : '' ?>"/>
|
639 |
</div>
|
652 |
<div class="ufbl-each-form-field ufbl-relative">
|
653 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
654 |
<div class="ufbl-form-field-wrap">
|
655 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Number', 'ultimate-form-builder-lite' ); ?></label>
|
656 |
<div class="ufbl-form-field">
|
657 |
<input type="number" disabled="disabled"/>
|
658 |
</div>
|
659 |
</div><!--ufbl-form-field-wrap-->
|
660 |
<div class="ufbl-field-controls">
|
661 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
662 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
663 |
</div>
|
664 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
665 |
<span class="ufbl-up-arrow"></span>
|
666 |
<div class="ufbl-form-field-wrap">
|
667 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
668 |
<div class="ufbl-form-field">
|
669 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Your Number', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo esc_attr( $val['field_label'] ); ?>"/>
|
670 |
</div>
|
671 |
</div>
|
672 |
<div class="ufbl-form-field-wrap">
|
673 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
674 |
<div class="ufbl-form-field">
|
675 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][required]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="field_label" <?php echo (isset( $val['required'] ) && $val['required'] == 1) ? 'checked="checked"' : ''; ?>/>
|
676 |
</div>
|
677 |
</div>
|
678 |
<div class="ufbl-form-field-wrap">
|
679 |
+
<label><?php _e( 'Max Value', 'ultimate-form-builder-lite' ); ?></label>
|
680 |
<div class="ufbl-form-field">
|
681 |
<input type="text" name="field_data[<?php echo $key; ?>][max_value]" placeholder='50' data-field-name="<?php echo $key; ?>" data-field-type="max_value" value="<?php echo isset( $val['max_value'] ) ? $val['max_value'] : ''; ?>"/>
|
682 |
</div>
|
683 |
</div>
|
684 |
<div class="ufbl-form-field-wrap">
|
685 |
+
<label><?php _e( 'Min Value', 'ultimate-form-builder-lite' ); ?></label>
|
686 |
<div class="ufbl-form-field">
|
687 |
<input type="text" name="field_data[<?php echo $key; ?>][min_value]" placeholder='20' data-field-name="<?php echo $key; ?>" data-field-type="min_value" value="<?php echo isset( $val['min_value'] ) ? $val['min_value'] : ''; ?>"/>
|
688 |
</div>
|
689 |
</div>
|
690 |
<div class="ufbl-form-field-wrap">
|
691 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
692 |
<div class="ufbl-form-field">
|
693 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please fill number only', 'ultimate-form-builder-lite' ); ?>" data-field-name="<?php echo $key; ?>" data-field-type="error_message" value="<?php echo esc_attr( $val['error_message'] ); ?>"/>
|
694 |
</div>
|
695 |
</div>
|
696 |
<div class="ufbl-form-field-wrap">
|
697 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
698 |
<div class="ufbl-form-field">
|
699 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Your age here', 'ultimate-form-builder-lite' ); ?>' data-field-name="<?php echo $key; ?>" data-field-type="field_label" value="<?php echo esc_attr( $val['placeholder'] ); ?>"/>
|
700 |
</div>
|
701 |
</div>
|
702 |
<div class="ufbl-form-field-wrap">
|
703 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
704 |
<div class="ufbl-form-field">
|
705 |
<input type="text" name="field_data[<?php echo $key; ?>][pre_filled_value]" data-field-name="<?php echo $key; ?>" data-field-type="pre_filled_value" value="<?php echo (isset( $val['pre_filled_value'] )) ? esc_attr( $val['pre_filled_value'] ) : ''; ?>"/>
|
706 |
</div>
|
707 |
</div>
|
708 |
<div class="ufbl-form-field-wrap">
|
709 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
710 |
<div class="ufbl-form-field">
|
711 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_label"/>
|
712 |
</div>
|
713 |
</div>
|
714 |
<div class="ufbl-form-field-wrap">
|
715 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
716 |
<div class="ufbl-form-field">
|
717 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_label"/>
|
718 |
</div>
|
732 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
733 |
<div class="ufbl-form-field-wrap">
|
734 |
<div class="ufbl-form-field">
|
735 |
+
<input type="submit" disabled="disabled" class="button-primary ufbl-submit-reference" value="<?php echo ($val['button_label'] == '') ? __( 'Submit', 'ultimate-form-builder-lite' ) : esc_attr( $val['button_label'] ); ?>"/>
|
736 |
</div>
|
737 |
</div><!--ufbl-form-field-wrap-->
|
738 |
<div class="ufbl-field-controls">
|
739 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
740 |
+
<a href="javascript:void(0)" class="ufbl-field-delete-trigger" data-confirm-message="<?php _e( 'If you delete this element then data related with this element will also be deleted. Are you sure you want to delete this element?', 'ultimate-form-builder-lite' ); ?>">Delete</a>
|
741 |
</div>
|
742 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
743 |
<span class="ufbl-up-arrow"></span>
|
744 |
<div class="ufbl-form-field-wrap">
|
745 |
+
<label><?php _e( 'Submit Button label', 'ultimate-form-builder-lite' ); ?></label>
|
746 |
<div class="ufbl-form-field">
|
747 |
<input type="text" name="field_data[<?php echo $key; ?>][button_label]" class="ufbl-submit-button" value="<?php echo esc_attr( $val['button_label'] ); ?>"/>
|
748 |
</div>
|
749 |
</div>
|
750 |
<div class="ufbl-form-field-wrap">
|
751 |
+
<label><?php _e( 'Show Reset Button', 'ultimate-form-builder-lite' ); ?></label>
|
752 |
<div class="ufbl-form-field">
|
753 |
<?php $show_reset_button = isset($val['show_reset_button'])?1:0;?>
|
754 |
<input type="checkbox" name="field_data[<?php echo $key; ?>][show_reset_button]" value="1" <?php checked( $show_reset_button,true);?>/>
|
755 |
</div>
|
756 |
</div>
|
757 |
<div class="ufbl-form-field-wrap">
|
758 |
+
<label><?php _e( 'Reset Button label', 'ultimate-form-builder-lite' ); ?></label>
|
759 |
<div class="ufbl-form-field">
|
760 |
<input type="text" name="field_data[<?php echo $key; ?>][reset_label]" value="<?php echo isset($val['reset_label'])?esc_attr($val['reset_label']):'';?>"/>
|
761 |
</div>
|
762 |
</div>
|
763 |
<div class="ufbl-form-field-wrap">
|
764 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
765 |
<div class="ufbl-form-field">
|
766 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="<?php echo $key; ?>" data-field-type="field_id" value="<?php echo esc_attr( $val['field_id'] ); ?>"/>
|
767 |
</div>
|
768 |
</div>
|
769 |
<div class="ufbl-form-field-wrap">
|
770 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
771 |
<div class="ufbl-form-field">
|
772 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="<?php echo $key; ?>" data-field-type="field_class" value="<?php echo esc_attr( $val['field_class'] ); ?>"/>
|
773 |
</div>
|
785 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
786 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
787 |
<div class="ufbl-form-field-wrap">
|
788 |
+
<label class="ufbl-field-label-ref"><?php echo (isset( $val['field_label'] ) && $val['field_label'] != '') ? esc_attr( $val['field_label'] ) : __( 'Untitled Captcha', 'ultimate-form-builder-lite' ); ?></label>
|
789 |
<div class="ufbl-form-field">
|
790 |
|
791 |
</div>
|
792 |
</div><!--ufbl-form-field-wrap-->
|
793 |
<div class="ufbl-field-controls">
|
794 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
795 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
796 |
</div>
|
797 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
798 |
<span class="ufbl-up-arrow"></span>
|
799 |
<div class="ufbl-form-field-wrap">
|
800 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
801 |
<div class="ufbl-form-field">
|
802 |
+
<input type="text" name="field_data[<?php echo $key; ?>][field_label]" placeholder="<?php _e( 'Human Check', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label" value="<?php echo esc_attr( $val['field_label'] ); ?>"/>
|
803 |
</div>
|
804 |
</div>
|
805 |
<div class="ufbl-form-field-wrap">
|
806 |
+
<label><?php _e( 'Captcha Type', 'ultimate-form-builder-lite' ); ?></label>
|
807 |
<div class="ufbl-form-field">
|
808 |
<select name="field_data[<?php echo $key; ?>][captcha_type]" class="ufbl-captcha-type-dropdown">
|
809 |
+
<option value="mathematical" <?php selected( $val['captcha_type'], 'mathematical' ); ?>><?php _e( 'Mathematical Captcha', 'ultimate-form-builder-lite' ); ?></option>
|
810 |
+
<option value="google" <?php selected( $val['captcha_type'], 'google' ); ?>><?php _e( 'Google reCaptcha', 'ultimate-form-builder-lite' ); ?></option>
|
811 |
</select>
|
812 |
</div>
|
813 |
</div>
|
814 |
<div class="ufbl-captcha-field-ref" <?php if ( $val['captcha_type'] == 'mathematical' ) { ?>style="display:none;"<?php } ?>>
|
815 |
<div class="ufbl-form-field-wrap">
|
816 |
+
<label><?php _e( 'Site Key', 'ultimate-form-builder-lite' ) ?></label>
|
817 |
<div class="ufbl-form-field">
|
818 |
<input type="text" name="field_data[<?php echo $key; ?>][site_key]" value="<?php echo isset( $val['site_key'] ) ? esc_attr( $val['site_key'] ) : ''; ?>"/>
|
819 |
</div>
|
820 |
</div>
|
821 |
<div class="ufbl-form-field-wrap">
|
822 |
+
<label><?php _e( 'Secret Key', 'ultimate-form-builder-lite' ) ?></label>
|
823 |
<div class="ufbl-form-field">
|
824 |
<input type="text" name="field_data[<?php echo $key; ?>][secret_key]" value="<?php echo isset( $val['secret_key'] ) ? esc_attr( $val['secret_key'] ) : ''; ?>"/>
|
825 |
</div>
|
826 |
</div>
|
827 |
<div class="ufbl-field-extra-note">
|
828 |
<?php
|
829 |
+
_e( 'Google Captcha will only show up in form filled the valid google captcha keys.Please visit <a href="https://www.google.com/recaptcha/admin" target="_blank">here</a> to get your site and secret key.', 'ultimate-form-builder-lite' );
|
830 |
?>
|
831 |
|
832 |
</div>
|
833 |
</div>
|
834 |
<div class="ufbl-form-field-wrap">
|
835 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
836 |
<div class="ufbl-form-field">
|
837 |
+
<input type="text" name="field_data[<?php echo $key; ?>][error_message]" placeholder="<?php _e( 'Please verify you are human.', 'ultimate-form-builder-lite' ); ?>" value="<?php echo isset( $val['error_message'] ) ? esc_attr( $val['error_message'] ) : ''; ?>"/>
|
838 |
</div>
|
839 |
</div>
|
840 |
<div class="ufbl-form-field-wrap">
|
841 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
842 |
<div class="ufbl-form-field">
|
843 |
+
<input type="text" name="field_data[<?php echo $key; ?>][placeholder]" placeholder='<?php _e( 'Enter Sum', 'ultimate-form-builder-lite' ); ?>' value="<?php echo isset( $val['placeholder'] ) ? esc_attr( $val['placeholder'] ) : ''; ?>"/>
|
844 |
<div class="ufbl-field-note"><?php _e( 'Note: Placeholder is only for the mathematical type captcha.' ); ?></div>
|
845 |
</div>
|
846 |
</div>
|
847 |
<div class="ufbl-form-field-wrap">
|
848 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
849 |
<div class="ufbl-form-field">
|
850 |
<input type="text" name="field_data[<?php echo $key; ?>][field_id]" data-field-name="ufbl_key" data-field-type="field_label" value="<?php echo isset( $val['field_id'] ) ? esc_attr( $val['field_id'] ) : ''; ?>"/>
|
851 |
</div>
|
852 |
</div>
|
853 |
<div class="ufbl-form-field-wrap">
|
854 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
855 |
<div class="ufbl-form-field">
|
856 |
<input type="text" name="field_data[<?php echo $key; ?>][field_class]" data-field-name="ufbl_key" data-field-type="field_class" value="<?php echo isset( $val['field_class'] ) ? esc_attr( $val['field_class'] ) : ''; ?>"/>
|
857 |
</div>
|
878 |
|
879 |
<div class="ufbl-clear"></div>
|
880 |
<div class="ufbl-form-controls ufbl-text-align-right">
|
881 |
+
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form', 'ultimate-form-builder-lite' ); ?>"/>
|
882 |
+
<a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form_row['form_id'] ); ?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview', 'ultimate-form-builder-lite' ); ?>"/></a>
|
883 |
+
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.', 'ultimate-form-builder-lite' ); ?></div>
|
884 |
</div>
|
885 |
<div class="ufbl-clear"></div>
|
886 |
</div>
|
inc/views/backend/boxes/form-fields-html.php
CHANGED
@@ -4,67 +4,67 @@
|
|
4 |
<div class="ufbl-each-form-field ufbl-relative">
|
5 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
6 |
<div class="ufbl-form-field-wrap">
|
7 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Texfield',
|
8 |
<div class="ufbl-form-field">
|
9 |
<input type="text" disabled="disabled"/>
|
10 |
</div>
|
11 |
</div><!--ufbl-form-field-wrap-->
|
12 |
<div class="ufbl-field-controls">
|
13 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
14 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
15 |
</div>
|
16 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
17 |
<span class="ufbl-up-arrow"></span>
|
18 |
<div class="ufbl-form-field-wrap">
|
19 |
-
<label><?php _e( 'Field Label',
|
20 |
<div class="ufbl-form-field">
|
21 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Name',
|
22 |
</div>
|
23 |
</div>
|
24 |
<div class="ufbl-form-field-wrap">
|
25 |
-
<label><?php _e( 'Required',
|
26 |
<div class="ufbl-form-field">
|
27 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="required"/>
|
28 |
</div>
|
29 |
</div>
|
30 |
<div class="ufbl-form-field-wrap">
|
31 |
-
<label><?php _e( 'Max Characters',
|
32 |
<div class="ufbl-form-field">
|
33 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_chars"/>
|
34 |
</div>
|
35 |
</div>
|
36 |
<div class="ufbl-form-field-wrap">
|
37 |
-
<label><?php _e( 'Min Characters',
|
38 |
<div class="ufbl-form-field">
|
39 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_chars"/>
|
40 |
</div>
|
41 |
</div>
|
42 |
<div class="ufbl-form-field-wrap">
|
43 |
-
<label><?php _e( 'Error Message',
|
44 |
<div class="ufbl-form-field">
|
45 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
46 |
</div>
|
47 |
</div>
|
48 |
<div class="ufbl-form-field-wrap">
|
49 |
-
<label><?php _e( 'Placeholder',
|
50 |
<div class="ufbl-form-field">
|
51 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Name here',
|
52 |
</div>
|
53 |
</div>
|
54 |
<div class="ufbl-form-field-wrap">
|
55 |
-
<label><?php _e( 'Pre filled value',
|
56 |
<div class="ufbl-form-field">
|
57 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
58 |
</div>
|
59 |
</div>
|
60 |
<div class="ufbl-form-field-wrap">
|
61 |
-
<label><?php _e( 'ID of the field',
|
62 |
<div class="ufbl-form-field">
|
63 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
64 |
</div>
|
65 |
</div>
|
66 |
<div class="ufbl-form-field-wrap">
|
67 |
-
<label><?php _e( 'Class of the field',
|
68 |
<div class="ufbl-form-field">
|
69 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
70 |
</div>
|
@@ -80,79 +80,79 @@
|
|
80 |
<div class="ufbl-each-form-field ufbl-relative">
|
81 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
82 |
<div class="ufbl-form-field-wrap">
|
83 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Texarea',
|
84 |
<div class="ufbl-form-field">
|
85 |
<textarea disabled="disabled"></textarea>
|
86 |
</div>
|
87 |
</div><!--ufbl-form-field-wrap-->
|
88 |
<div class="ufbl-field-controls">
|
89 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
90 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
91 |
</div>
|
92 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
93 |
<span class="ufbl-up-arrow"></span>
|
94 |
<div class="ufbl-form-field-wrap">
|
95 |
-
<label><?php _e( 'Field Label',
|
96 |
<div class="ufbl-form-field">
|
97 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Message',
|
98 |
</div>
|
99 |
</div>
|
100 |
<div class="ufbl-form-field-wrap">
|
101 |
-
<label><?php _e( 'Required',
|
102 |
<div class="ufbl-form-field">
|
103 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_type"/>
|
104 |
</div>
|
105 |
</div>
|
106 |
<div class="ufbl-form-field-wrap">
|
107 |
-
<label><?php _e( 'Error Message',
|
108 |
<div class="ufbl-form-field">
|
109 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
110 |
</div>
|
111 |
</div>
|
112 |
<div class="ufbl-form-field-wrap">
|
113 |
-
<label><?php _e( 'Textarea Rows',
|
114 |
<div class="ufbl-form-field">
|
115 |
<input type="text" name="field_data[ufbl_key][textarea_rows]" placeholder='5' data-field-name="ufbl_key" data-field-type="field_type"/>
|
116 |
</div>
|
117 |
</div>
|
118 |
<div class="ufbl-form-field-wrap">
|
119 |
-
<label><?php _e( 'Textarea Columns',
|
120 |
<div class="ufbl-form-field">
|
121 |
<input type="text" name="field_data[ufbl_key][textarea_columns]" placeholder='20' data-field-name="ufbl_key" data-field-type="textarea_columns"/>
|
122 |
</div>
|
123 |
</div>
|
124 |
<div class="ufbl-form-field-wrap">
|
125 |
-
<label><?php _e( 'Max Characters',
|
126 |
<div class="ufbl-form-field">
|
127 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_chars"/>
|
128 |
</div>
|
129 |
</div>
|
130 |
<div class="ufbl-form-field-wrap">
|
131 |
-
<label><?php _e( 'Min Characters',
|
132 |
<div class="ufbl-form-field">
|
133 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_chars"/>
|
134 |
</div>
|
135 |
</div>
|
136 |
<div class="ufbl-form-field-wrap">
|
137 |
-
<label><?php _e( 'Placeholder',
|
138 |
<div class="ufbl-form-field">
|
139 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your message here',
|
140 |
</div>
|
141 |
</div>
|
142 |
<div class="ufbl-form-field-wrap">
|
143 |
-
<label><?php _e( 'Pre filled value',
|
144 |
<div class="ufbl-form-field">
|
145 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="ufbl-form-field-wrap">
|
149 |
-
<label><?php _e( 'ID of the field',
|
150 |
<div class="ufbl-form-field">
|
151 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="ufbl-form-field-wrap">
|
155 |
-
<label><?php _e( 'Class of the field',
|
156 |
<div class="ufbl-form-field">
|
157 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
158 |
</div>
|
@@ -168,55 +168,55 @@
|
|
168 |
<div class="ufbl-each-form-field ufbl-relative">
|
169 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
170 |
<div class="ufbl-form-field-wrap">
|
171 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Email',
|
172 |
<div class="ufbl-form-field">
|
173 |
<input type="email" disabled="disabled"/>
|
174 |
</div>
|
175 |
</div><!--ufbl-form-field-wrap-->
|
176 |
<div class="ufbl-field-controls">
|
177 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
178 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
179 |
</div>
|
180 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
181 |
<span class="ufbl-up-arrow"></span>
|
182 |
<div class="ufbl-form-field-wrap">
|
183 |
-
<label><?php _e( 'Field Label',
|
184 |
<div class="ufbl-form-field">
|
185 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Email',
|
186 |
</div>
|
187 |
</div>
|
188 |
<div class="ufbl-form-field-wrap">
|
189 |
-
<label><?php _e( 'Required',
|
190 |
<div class="ufbl-form-field">
|
191 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="required"/>
|
192 |
</div>
|
193 |
</div>
|
194 |
<div class="ufbl-form-field-wrap">
|
195 |
-
<label><?php _e( 'Error Message',
|
196 |
<div class="ufbl-form-field">
|
197 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
198 |
</div>
|
199 |
</div>
|
200 |
<div class="ufbl-form-field-wrap">
|
201 |
-
<label><?php _e( 'Placeholder',
|
202 |
<div class="ufbl-form-field">
|
203 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Email here',
|
204 |
</div>
|
205 |
</div>
|
206 |
<div class="ufbl-form-field-wrap">
|
207 |
-
<label><?php _e( 'Pre filled value',
|
208 |
<div class="ufbl-form-field">
|
209 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
210 |
</div>
|
211 |
</div>
|
212 |
<div class="ufbl-form-field-wrap">
|
213 |
-
<label><?php _e( 'ID of the field',
|
214 |
<div class="ufbl-form-field">
|
215 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
216 |
</div>
|
217 |
</div>
|
218 |
<div class="ufbl-form-field-wrap">
|
219 |
-
<label><?php _e( 'Class of the field',
|
220 |
<div class="ufbl-form-field">
|
221 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_type"/>
|
222 |
</div>
|
@@ -232,77 +232,77 @@
|
|
232 |
<div class="ufbl-each-form-field ufbl-relative">
|
233 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
234 |
<div class="ufbl-form-field-wrap">
|
235 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Dropdown',
|
236 |
<div class="ufbl-form-field">
|
237 |
<select disabled="disabled">
|
238 |
-
<option><?php _e( 'Option 1',
|
239 |
</select>
|
240 |
</div>
|
241 |
</div><!--ufbl-form-field-wrap-->
|
242 |
<div class="ufbl-field-controls">
|
243 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
244 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
245 |
</div>
|
246 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
247 |
<span class="ufbl-up-arrow"></span>
|
248 |
<div class="ufbl-form-field-wrap">
|
249 |
-
<label><?php _e( 'Field Label',
|
250 |
<div class="ufbl-form-field">
|
251 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Country',
|
252 |
</div>
|
253 |
</div>
|
254 |
<div class="ufbl-form-field-wrap">
|
255 |
-
<label><?php _e( 'Required',
|
256 |
<div class="ufbl-form-field">
|
257 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_type"/>
|
258 |
</div>
|
259 |
</div>
|
260 |
<div class="ufbl-form-field-wrap">
|
261 |
-
<label><?php _e( 'Error Message',
|
262 |
<div class="ufbl-form-field">
|
263 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
264 |
</div>
|
265 |
</div>
|
266 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
267 |
-
<label><?php _e( 'Options',
|
268 |
<div class="ufbl-form-field">
|
269 |
-
<input type="button" value="<?php _e( 'Add Option',
|
270 |
<div class="ufbl-option-value-wrap">
|
271 |
<div class="ufbl-each-option">
|
272 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
273 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1',
|
274 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1',
|
275 |
<span class="ufbl-option-remover">X</span>
|
276 |
</div>
|
277 |
<div class="ufbl-each-option">
|
278 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
279 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2',
|
280 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2',
|
281 |
<span class="ufbl-option-remover">X</span>
|
282 |
</div>
|
283 |
<div class="ufbl-each-option">
|
284 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
285 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 3',
|
286 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 3',
|
287 |
<span class="ufbl-option-remover">X</span>
|
288 |
</div>
|
289 |
</div>
|
290 |
</div>
|
291 |
</div>
|
292 |
<div class="ufbl-form-field-wrap">
|
293 |
-
<label><?php _e( 'Multiple',
|
294 |
<div class="ufbl-form-field">
|
295 |
<input type="checkbox" name="field_data[ufbl_key][multiple]" value="1" data-field-name="ufbl_key" data-field-type="multiple"/>
|
296 |
</div>
|
297 |
</div>
|
298 |
<div class="ufbl-form-field-wrap">
|
299 |
-
<label><?php _e( 'ID of the field',
|
300 |
<div class="ufbl-form-field">
|
301 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
302 |
</div>
|
303 |
</div>
|
304 |
<div class="ufbl-form-field-wrap">
|
305 |
-
<label><?php _e( 'Class of the field',
|
306 |
<div class="ufbl-form-field">
|
307 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
308 |
</div>
|
@@ -318,51 +318,51 @@
|
|
318 |
<div class="ufbl-each-form-field ufbl-relative">
|
319 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
320 |
<div class="ufbl-form-field-wrap">
|
321 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Radio',
|
322 |
<div class="ufbl-form-field">
|
323 |
-
<label><input type="radio" checked="checked" disabled="disabled"><?php _e( 'Option 1',
|
324 |
-
<label><input type="radio" disabled="disabled"><?php _e( 'Option 2',
|
325 |
</div>
|
326 |
</div><!--ufbl-form-field-wrap-->
|
327 |
<div class="ufbl-field-controls">
|
328 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
329 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
330 |
</div>
|
331 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
332 |
<span class="ufbl-up-arrow"></span>
|
333 |
<div class="ufbl-form-field-wrap">
|
334 |
-
<label><?php _e( 'Field Label',
|
335 |
<div class="ufbl-form-field">
|
336 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Gender',
|
337 |
</div>
|
338 |
</div>
|
339 |
<div class="ufbl-form-field-wrap">
|
340 |
-
<label><?php _e( 'Required',
|
341 |
<div class="ufbl-form-field">
|
342 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1"/>
|
343 |
</div>
|
344 |
</div>
|
345 |
<div class="ufbl-form-field-wrap">
|
346 |
-
<label><?php _e( 'Error Message',
|
347 |
<div class="ufbl-form-field">
|
348 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
349 |
</div>
|
350 |
</div>
|
351 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
352 |
-
<label><?php _e( 'Options',
|
353 |
<div class="ufbl-form-field">
|
354 |
-
<input type="button" value="<?php _e( 'Add Option',
|
355 |
<div class="ufbl-option-value-wrap">
|
356 |
<div class="ufbl-each-option">
|
357 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
358 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1',
|
359 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1',
|
360 |
<span class="ufbl-option-remover">X</span>
|
361 |
</div>
|
362 |
<div class="ufbl-each-option">
|
363 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
364 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2',
|
365 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2',
|
366 |
<span class="ufbl-option-remover">X</span>
|
367 |
</div>
|
368 |
|
@@ -370,13 +370,13 @@
|
|
370 |
</div>
|
371 |
</div>
|
372 |
<div class="ufbl-form-field-wrap">
|
373 |
-
<label><?php _e( 'ID of the field',
|
374 |
<div class="ufbl-form-field">
|
375 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
376 |
</div>
|
377 |
</div>
|
378 |
<div class="ufbl-form-field-wrap">
|
379 |
-
<label><?php _e( 'Class of the field',
|
380 |
<div class="ufbl-form-field">
|
381 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
382 |
</div>
|
@@ -392,71 +392,71 @@
|
|
392 |
<div class="ufbl-each-form-field ufbl-relative">
|
393 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
394 |
<div class="ufbl-form-field-wrap">
|
395 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Checkbox',
|
396 |
<div class="ufbl-form-field">
|
397 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 1',
|
398 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 2',
|
399 |
-
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 3',
|
400 |
</div>
|
401 |
</div><!--ufbl-form-field-wrap-->
|
402 |
<div class="ufbl-field-controls">
|
403 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
404 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
405 |
</div>
|
406 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
407 |
<span class="ufbl-up-arrow"></span>
|
408 |
<div class="ufbl-form-field-wrap">
|
409 |
-
<label><?php _e( 'Field Label',
|
410 |
<div class="ufbl-form-field">
|
411 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Hobbies',
|
412 |
</div>
|
413 |
</div>
|
414 |
<div class="ufbl-form-field-wrap">
|
415 |
-
<label><?php _e( 'Required',
|
416 |
<div class="ufbl-form-field">
|
417 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
418 |
</div>
|
419 |
</div>
|
420 |
<div class="ufbl-form-field-wrap">
|
421 |
-
<label><?php _e( 'Error Message',
|
422 |
<div class="ufbl-form-field">
|
423 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name',
|
424 |
</div>
|
425 |
</div>
|
426 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
427 |
-
<label><?php _e( 'Options',
|
428 |
<div class="ufbl-form-field">
|
429 |
-
<input type="button" value="<?php _e( 'Add Option',
|
430 |
<div class="ufbl-option-value-wrap">
|
431 |
<div class="ufbl-each-option">
|
432 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
433 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1',
|
434 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1',
|
435 |
<span class="ufbl-option-remover">X</span>
|
436 |
</div>
|
437 |
<div class="ufbl-each-option">
|
438 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
439 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2',
|
440 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2',
|
441 |
<span class="ufbl-option-remover">X</span>
|
442 |
</div>
|
443 |
<div class="ufbl-each-option">
|
444 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
445 |
-
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 3',
|
446 |
-
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 3',
|
447 |
<span class="ufbl-option-remover">X</span>
|
448 |
</div>
|
449 |
</div>
|
450 |
</div>
|
451 |
</div>
|
452 |
<div class="ufbl-form-field-wrap">
|
453 |
-
<label><?php _e( 'ID of the field',
|
454 |
<div class="ufbl-form-field">
|
455 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
456 |
</div>
|
457 |
</div>
|
458 |
<div class="ufbl-form-field-wrap">
|
459 |
-
<label><?php _e( 'Class of the field',
|
460 |
<div class="ufbl-form-field">
|
461 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
462 |
</div>
|
@@ -472,61 +472,61 @@
|
|
472 |
<div class="ufbl-each-form-field ufbl-relative">
|
473 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
474 |
<div class="ufbl-form-field-wrap">
|
475 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Password',
|
476 |
<div class="ufbl-form-field">
|
477 |
<input type="password" disabled="disabled"/>
|
478 |
</div>
|
479 |
</div><!--ufbl-form-field-wrap-->
|
480 |
<div class="ufbl-field-controls">
|
481 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
482 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
483 |
</div>
|
484 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
485 |
<span class="ufbl-up-arrow"></span>
|
486 |
<div class="ufbl-form-field-wrap">
|
487 |
-
<label><?php _e( 'Field Label',
|
488 |
<div class="ufbl-form-field">
|
489 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Password',
|
490 |
</div>
|
491 |
</div>
|
492 |
<div class="ufbl-form-field-wrap">
|
493 |
-
<label><?php _e( 'Required',
|
494 |
<div class="ufbl-form-field">
|
495 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
496 |
</div>
|
497 |
</div>
|
498 |
<div class="ufbl-form-field-wrap">
|
499 |
-
<label><?php _e( 'Max Characters',
|
500 |
<div class="ufbl-form-field">
|
501 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="field_label"/>
|
502 |
</div>
|
503 |
</div>
|
504 |
<div class="ufbl-form-field-wrap">
|
505 |
-
<label><?php _e( 'Min Characters',
|
506 |
<div class="ufbl-form-field">
|
507 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="field_label"/>
|
508 |
</div>
|
509 |
</div>
|
510 |
<div class="ufbl-form-field-wrap">
|
511 |
-
<label><?php _e( 'Error Message',
|
512 |
<div class="ufbl-form-field">
|
513 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill number only',
|
514 |
</div>
|
515 |
</div>
|
516 |
<div class="ufbl-form-field-wrap">
|
517 |
-
<label><?php _e( 'Placeholder',
|
518 |
<div class="ufbl-form-field">
|
519 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Password here',
|
520 |
</div>
|
521 |
</div>
|
522 |
<div class="ufbl-form-field-wrap">
|
523 |
-
<label><?php _e( 'ID of the field',
|
524 |
<div class="ufbl-form-field">
|
525 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
526 |
</div>
|
527 |
</div>
|
528 |
<div class="ufbl-form-field-wrap">
|
529 |
-
<label><?php _e( 'Class of the field',
|
530 |
<div class="ufbl-form-field">
|
531 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
532 |
</div>
|
@@ -542,37 +542,37 @@
|
|
542 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
543 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
544 |
<div class="ufbl-form-field-wrap">
|
545 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Hidden',
|
546 |
<div class="ufbl-form-field">
|
547 |
<input type="hidden" disabled="disabled"/>
|
548 |
</div>
|
549 |
</div><!--ufbl-form-field-wrap-->
|
550 |
<div class="ufbl-field-controls">
|
551 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
552 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
553 |
</div>
|
554 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
555 |
<span class="ufbl-up-arrow"></span>
|
556 |
<div class="ufbl-form-field-wrap">
|
557 |
-
<label><?php _e( 'Field Label',
|
558 |
<div class="ufbl-form-field">
|
559 |
<input type="text" name="field_data[ufbl_key][field_label]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
560 |
</div>
|
561 |
</div>
|
562 |
<div class="ufbl-form-field-wrap">
|
563 |
-
<label><?php _e( 'Pre filled value',
|
564 |
<div class="ufbl-form-field">
|
565 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
566 |
</div>
|
567 |
</div>
|
568 |
<div class="ufbl-form-field-wrap">
|
569 |
-
<label><?php _e( 'ID of the field',
|
570 |
<div class="ufbl-form-field">
|
571 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
572 |
</div>
|
573 |
</div>
|
574 |
<div class="ufbl-form-field-wrap">
|
575 |
-
<label><?php _e( 'Class of the field',
|
576 |
<div class="ufbl-form-field">
|
577 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
578 |
</div>
|
@@ -588,67 +588,67 @@
|
|
588 |
<div class="ufbl-each-form-field ufbl-relative">
|
589 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
590 |
<div class="ufbl-form-field-wrap">
|
591 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Number',
|
592 |
<div class="ufbl-form-field">
|
593 |
<input type="number" disabled="disabled"/>
|
594 |
</div>
|
595 |
</div><!--ufbl-form-field-wrap-->
|
596 |
<div class="ufbl-field-controls">
|
597 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
598 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
599 |
</div>
|
600 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
601 |
<span class="ufbl-up-arrow"></span>
|
602 |
<div class="ufbl-form-field-wrap">
|
603 |
-
<label><?php _e( 'Field Label',
|
604 |
<div class="ufbl-form-field">
|
605 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Number',
|
606 |
</div>
|
607 |
</div>
|
608 |
<div class="ufbl-form-field-wrap">
|
609 |
-
<label><?php _e( 'Required',
|
610 |
<div class="ufbl-form-field">
|
611 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
612 |
</div>
|
613 |
</div>
|
614 |
<div class="ufbl-form-field-wrap">
|
615 |
-
<label><?php _e( 'Max Value',
|
616 |
<div class="ufbl-form-field">
|
617 |
<input type="text" name="field_data[ufbl_key][max_value]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_value"/>
|
618 |
</div>
|
619 |
</div>
|
620 |
<div class="ufbl-form-field-wrap">
|
621 |
-
<label><?php _e( 'Min Value',
|
622 |
<div class="ufbl-form-field">
|
623 |
<input type="text" name="field_data[ufbl_key][min_value]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_value"/>
|
624 |
</div>
|
625 |
</div>
|
626 |
<div class="ufbl-form-field-wrap">
|
627 |
-
<label><?php _e( 'Error Message',
|
628 |
<div class="ufbl-form-field">
|
629 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill number only',
|
630 |
</div>
|
631 |
</div>
|
632 |
<div class="ufbl-form-field-wrap">
|
633 |
-
<label><?php _e( 'Placeholder',
|
634 |
<div class="ufbl-form-field">
|
635 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Password here',
|
636 |
</div>
|
637 |
</div>
|
638 |
<div class="ufbl-form-field-wrap">
|
639 |
-
<label><?php _e( 'Pre filled value',
|
640 |
<div class="ufbl-form-field">
|
641 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
642 |
</div>
|
643 |
</div>
|
644 |
<div class="ufbl-form-field-wrap">
|
645 |
-
<label><?php _e( 'ID of the field',
|
646 |
<div class="ufbl-form-field">
|
647 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
648 |
</div>
|
649 |
</div>
|
650 |
<div class="ufbl-form-field-wrap">
|
651 |
-
<label><?php _e( 'Class of the field',
|
652 |
<div class="ufbl-form-field">
|
653 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
654 |
</div>
|
@@ -664,72 +664,72 @@
|
|
664 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
665 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
666 |
<div class="ufbl-form-field-wrap">
|
667 |
-
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Captcha',
|
668 |
<div class="ufbl-form-field">
|
669 |
|
670 |
</div>
|
671 |
</div><!--ufbl-form-field-wrap-->
|
672 |
<div class="ufbl-field-controls">
|
673 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
674 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
675 |
</div>
|
676 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
677 |
<span class="ufbl-up-arrow"></span>
|
678 |
<div class="ufbl-form-field-wrap">
|
679 |
-
<label><?php _e( 'Field Label',
|
680 |
<div class="ufbl-form-field">
|
681 |
-
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Human Check',
|
682 |
</div>
|
683 |
</div>
|
684 |
<div class="ufbl-form-field-wrap">
|
685 |
-
<label><?php _e( 'Captcha Type',
|
686 |
<div class="ufbl-form-field">
|
687 |
<select name="field_data[ufbl_key][captcha_type]" class="ufbl-captcha-type-dropdown">
|
688 |
-
<option value="mathematical"><?php _e( 'Mathematical Captcha',
|
689 |
-
<option value="google"><?php _e( 'Google reCaptcha',
|
690 |
</select>
|
691 |
</div>
|
692 |
</div>
|
693 |
<div class="ufbl-captcha-field-ref" style="display:none;">
|
694 |
<div class="ufbl-form-field-wrap">
|
695 |
-
<label><?php _e( 'Site Key',
|
696 |
<div class="ufbl-form-field">
|
697 |
<input type="text" name="field_data[ufbl_key][site_key]" data-field-name="ufbl_key"/>
|
698 |
</div>
|
699 |
</div>
|
700 |
<div class="ufbl-form-field-wrap">
|
701 |
-
<label><?php _e( 'Secret Key',
|
702 |
<div class="ufbl-form-field">
|
703 |
<input type="text" name="field_data[ufbl_key][secret_key]" data-field-name="ufbl_key"/>
|
704 |
</div>
|
705 |
</div>
|
706 |
<div class="ufbl-field-extra-note">
|
707 |
<?php
|
708 |
-
_e( 'Google Captcha will only show up in form filled the valid google captcha keys.Please visit <a href="https://www.google.com/recaptcha/admin" target="_blank">here</a> to get your site and secret key.',
|
709 |
?>
|
710 |
|
711 |
</div>
|
712 |
</div>
|
713 |
<div class="ufbl-form-field-wrap">
|
714 |
-
<label><?php _e( 'Error Message',
|
715 |
<div class="ufbl-form-field">
|
716 |
-
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please verify you are human.',
|
717 |
</div>
|
718 |
</div>
|
719 |
<div class="ufbl-form-field-wrap">
|
720 |
-
<label><?php _e( 'Placeholder',
|
721 |
<div class="ufbl-form-field">
|
722 |
-
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Enter Sum',
|
723 |
</div>
|
724 |
</div>
|
725 |
<div class="ufbl-form-field-wrap">
|
726 |
-
<label><?php _e( 'ID of the field',
|
727 |
<div class="ufbl-form-field">
|
728 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
729 |
</div>
|
730 |
</div>
|
731 |
<div class="ufbl-form-field-wrap">
|
732 |
-
<label><?php _e( 'Class of the field',
|
733 |
<div class="ufbl-form-field">
|
734 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
735 |
</div>
|
@@ -746,41 +746,41 @@
|
|
746 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
747 |
<div class="ufbl-form-field-wrap">
|
748 |
<div class="ufbl-form-field">
|
749 |
-
<input type="submit" disabled="disabled" class="button-primary ufbl-submit-reference" value="<?php _e( 'Submit',
|
750 |
</div>
|
751 |
</div><!--ufbl-form-field-wrap-->
|
752 |
<div class="ufbl-field-controls">
|
753 |
-
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings',
|
754 |
-
<a href="javascript:void(0)" class="ufbl-field-delete-trigger" data-confirm-message="<?php _e( 'If you delete this element then data related with this element will also be deleted. Are you sure you want to delete this element?',
|
755 |
</div>
|
756 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
757 |
<span class="ufbl-up-arrow"></span>
|
758 |
<div class="ufbl-form-field-wrap">
|
759 |
-
<label><?php _e( 'Submit Button label',
|
760 |
<div class="ufbl-form-field">
|
761 |
<input type="text" name="field_data[ufbl_key][button_label]" class="ufbl-submit-button" data-field-name="ufbl_key" data-field-type="button_label"/>
|
762 |
</div>
|
763 |
</div>
|
764 |
<div class="ufbl-form-field-wrap">
|
765 |
-
<label><?php _e( 'Show Reset Button',
|
766 |
<div class="ufbl-form-field">
|
767 |
<input type="checkbox" name="field_data[ufbl_key][show_reset_button]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
768 |
</div>
|
769 |
</div>
|
770 |
<div class="ufbl-form-field-wrap">
|
771 |
-
<label><?php _e( 'Reset Button label',
|
772 |
<div class="ufbl-form-field">
|
773 |
<input type="text" name="field_data[ufbl_key][reset_label]" data-field-name="ufbl_key" data-field-type="button_label"/>
|
774 |
</div>
|
775 |
</div>
|
776 |
<div class="ufbl-form-field-wrap">
|
777 |
-
<label><?php _e( 'ID of the field',
|
778 |
<div class="ufbl-form-field">
|
779 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
780 |
</div>
|
781 |
</div>
|
782 |
<div class="ufbl-form-field-wrap">
|
783 |
-
<label><?php _e( 'Class of the field',
|
784 |
<div class="ufbl-form-field">
|
785 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
786 |
</div>
|
4 |
<div class="ufbl-each-form-field ufbl-relative">
|
5 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
6 |
<div class="ufbl-form-field-wrap">
|
7 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Texfield', 'ultimate-form-builder-lite' ); ?></label>
|
8 |
<div class="ufbl-form-field">
|
9 |
<input type="text" disabled="disabled"/>
|
10 |
</div>
|
11 |
</div><!--ufbl-form-field-wrap-->
|
12 |
<div class="ufbl-field-controls">
|
13 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
14 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
15 |
</div>
|
16 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
17 |
<span class="ufbl-up-arrow"></span>
|
18 |
<div class="ufbl-form-field-wrap">
|
19 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
20 |
<div class="ufbl-form-field">
|
21 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Name', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field ufbl-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
22 |
</div>
|
23 |
</div>
|
24 |
<div class="ufbl-form-field-wrap">
|
25 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
26 |
<div class="ufbl-form-field">
|
27 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="required"/>
|
28 |
</div>
|
29 |
</div>
|
30 |
<div class="ufbl-form-field-wrap">
|
31 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
32 |
<div class="ufbl-form-field">
|
33 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_chars"/>
|
34 |
</div>
|
35 |
</div>
|
36 |
<div class="ufbl-form-field-wrap">
|
37 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
38 |
<div class="ufbl-form-field">
|
39 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_chars"/>
|
40 |
</div>
|
41 |
</div>
|
42 |
<div class="ufbl-form-field-wrap">
|
43 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
44 |
<div class="ufbl-form-field">
|
45 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="error_message"/>
|
46 |
</div>
|
47 |
</div>
|
48 |
<div class="ufbl-form-field-wrap">
|
49 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
50 |
<div class="ufbl-form-field">
|
51 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Name here', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="placeholder"/>
|
52 |
</div>
|
53 |
</div>
|
54 |
<div class="ufbl-form-field-wrap">
|
55 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
56 |
<div class="ufbl-form-field">
|
57 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
58 |
</div>
|
59 |
</div>
|
60 |
<div class="ufbl-form-field-wrap">
|
61 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
62 |
<div class="ufbl-form-field">
|
63 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
64 |
</div>
|
65 |
</div>
|
66 |
<div class="ufbl-form-field-wrap">
|
67 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
68 |
<div class="ufbl-form-field">
|
69 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
70 |
</div>
|
80 |
<div class="ufbl-each-form-field ufbl-relative">
|
81 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
82 |
<div class="ufbl-form-field-wrap">
|
83 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Texarea', 'ultimate-form-builder-lite' ); ?></label>
|
84 |
<div class="ufbl-form-field">
|
85 |
<textarea disabled="disabled"></textarea>
|
86 |
</div>
|
87 |
</div><!--ufbl-form-field-wrap-->
|
88 |
<div class="ufbl-field-controls">
|
89 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
90 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
91 |
</div>
|
92 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
93 |
<span class="ufbl-up-arrow"></span>
|
94 |
<div class="ufbl-form-field-wrap">
|
95 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
96 |
<div class="ufbl-form-field">
|
97 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Message', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_type"/>
|
98 |
</div>
|
99 |
</div>
|
100 |
<div class="ufbl-form-field-wrap">
|
101 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
102 |
<div class="ufbl-form-field">
|
103 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_type"/>
|
104 |
</div>
|
105 |
</div>
|
106 |
<div class="ufbl-form-field-wrap">
|
107 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
108 |
<div class="ufbl-form-field">
|
109 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_type"/>
|
110 |
</div>
|
111 |
</div>
|
112 |
<div class="ufbl-form-field-wrap">
|
113 |
+
<label><?php _e( 'Textarea Rows', 'ultimate-form-builder-lite' ); ?></label>
|
114 |
<div class="ufbl-form-field">
|
115 |
<input type="text" name="field_data[ufbl_key][textarea_rows]" placeholder='5' data-field-name="ufbl_key" data-field-type="field_type"/>
|
116 |
</div>
|
117 |
</div>
|
118 |
<div class="ufbl-form-field-wrap">
|
119 |
+
<label><?php _e( 'Textarea Columns', 'ultimate-form-builder-lite' ); ?></label>
|
120 |
<div class="ufbl-form-field">
|
121 |
<input type="text" name="field_data[ufbl_key][textarea_columns]" placeholder='20' data-field-name="ufbl_key" data-field-type="textarea_columns"/>
|
122 |
</div>
|
123 |
</div>
|
124 |
<div class="ufbl-form-field-wrap">
|
125 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
126 |
<div class="ufbl-form-field">
|
127 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_chars"/>
|
128 |
</div>
|
129 |
</div>
|
130 |
<div class="ufbl-form-field-wrap">
|
131 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
132 |
<div class="ufbl-form-field">
|
133 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_chars"/>
|
134 |
</div>
|
135 |
</div>
|
136 |
<div class="ufbl-form-field-wrap">
|
137 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
138 |
<div class="ufbl-form-field">
|
139 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your message here', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="placeholder"/>
|
140 |
</div>
|
141 |
</div>
|
142 |
<div class="ufbl-form-field-wrap">
|
143 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
144 |
<div class="ufbl-form-field">
|
145 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="ufbl-form-field-wrap">
|
149 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
150 |
<div class="ufbl-form-field">
|
151 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="ufbl-form-field-wrap">
|
155 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
156 |
<div class="ufbl-form-field">
|
157 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
158 |
</div>
|
168 |
<div class="ufbl-each-form-field ufbl-relative">
|
169 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
170 |
<div class="ufbl-form-field-wrap">
|
171 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Email', 'ultimate-form-builder-lite' ); ?></label>
|
172 |
<div class="ufbl-form-field">
|
173 |
<input type="email" disabled="disabled"/>
|
174 |
</div>
|
175 |
</div><!--ufbl-form-field-wrap-->
|
176 |
<div class="ufbl-field-controls">
|
177 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
178 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
179 |
</div>
|
180 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
181 |
<span class="ufbl-up-arrow"></span>
|
182 |
<div class="ufbl-form-field-wrap">
|
183 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
184 |
<div class="ufbl-form-field">
|
185 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Email', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
186 |
</div>
|
187 |
</div>
|
188 |
<div class="ufbl-form-field-wrap">
|
189 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
190 |
<div class="ufbl-form-field">
|
191 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="required"/>
|
192 |
</div>
|
193 |
</div>
|
194 |
<div class="ufbl-form-field-wrap">
|
195 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
196 |
<div class="ufbl-form-field">
|
197 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="error_message"/>
|
198 |
</div>
|
199 |
</div>
|
200 |
<div class="ufbl-form-field-wrap">
|
201 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
202 |
<div class="ufbl-form-field">
|
203 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Email here', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="placeholder"/>
|
204 |
</div>
|
205 |
</div>
|
206 |
<div class="ufbl-form-field-wrap">
|
207 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
208 |
<div class="ufbl-form-field">
|
209 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="pre_filled_value"/>
|
210 |
</div>
|
211 |
</div>
|
212 |
<div class="ufbl-form-field-wrap">
|
213 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
214 |
<div class="ufbl-form-field">
|
215 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
216 |
</div>
|
217 |
</div>
|
218 |
<div class="ufbl-form-field-wrap">
|
219 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
220 |
<div class="ufbl-form-field">
|
221 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_type"/>
|
222 |
</div>
|
232 |
<div class="ufbl-each-form-field ufbl-relative">
|
233 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
234 |
<div class="ufbl-form-field-wrap">
|
235 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Dropdown', 'ultimate-form-builder-lite' ); ?></label>
|
236 |
<div class="ufbl-form-field">
|
237 |
<select disabled="disabled">
|
238 |
+
<option><?php _e( 'Option 1', 'ultimate-form-builder-lite' ) ?></option>
|
239 |
</select>
|
240 |
</div>
|
241 |
</div><!--ufbl-form-field-wrap-->
|
242 |
<div class="ufbl-field-controls">
|
243 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
244 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
245 |
</div>
|
246 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
247 |
<span class="ufbl-up-arrow"></span>
|
248 |
<div class="ufbl-form-field-wrap">
|
249 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
250 |
<div class="ufbl-form-field">
|
251 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Country', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_type"/>
|
252 |
</div>
|
253 |
</div>
|
254 |
<div class="ufbl-form-field-wrap">
|
255 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
256 |
<div class="ufbl-form-field">
|
257 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_type"/>
|
258 |
</div>
|
259 |
</div>
|
260 |
<div class="ufbl-form-field-wrap">
|
261 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
262 |
<div class="ufbl-form-field">
|
263 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_type"/>
|
264 |
</div>
|
265 |
</div>
|
266 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
267 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
268 |
<div class="ufbl-form-field">
|
269 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="ufbl_key"/>
|
270 |
<div class="ufbl-option-value-wrap">
|
271 |
<div class="ufbl-each-option">
|
272 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
273 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="option"/>
|
274 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="value"/>
|
275 |
<span class="ufbl-option-remover">X</span>
|
276 |
</div>
|
277 |
<div class="ufbl-each-option">
|
278 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
279 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="option"/>
|
280 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="value"/>
|
281 |
<span class="ufbl-option-remover">X</span>
|
282 |
</div>
|
283 |
<div class="ufbl-each-option">
|
284 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
285 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="option"/>
|
286 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="value"/>
|
287 |
<span class="ufbl-option-remover">X</span>
|
288 |
</div>
|
289 |
</div>
|
290 |
</div>
|
291 |
</div>
|
292 |
<div class="ufbl-form-field-wrap">
|
293 |
+
<label><?php _e( 'Multiple', 'ultimate-form-builder-lite' ); ?></label>
|
294 |
<div class="ufbl-form-field">
|
295 |
<input type="checkbox" name="field_data[ufbl_key][multiple]" value="1" data-field-name="ufbl_key" data-field-type="multiple"/>
|
296 |
</div>
|
297 |
</div>
|
298 |
<div class="ufbl-form-field-wrap">
|
299 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
300 |
<div class="ufbl-form-field">
|
301 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
302 |
</div>
|
303 |
</div>
|
304 |
<div class="ufbl-form-field-wrap">
|
305 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
306 |
<div class="ufbl-form-field">
|
307 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
308 |
</div>
|
318 |
<div class="ufbl-each-form-field ufbl-relative">
|
319 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
320 |
<div class="ufbl-form-field-wrap">
|
321 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Radio', 'ultimate-form-builder-lite' ); ?></label>
|
322 |
<div class="ufbl-form-field">
|
323 |
+
<label><input type="radio" checked="checked" disabled="disabled"><?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?></label>
|
324 |
+
<label><input type="radio" disabled="disabled"><?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?></label>
|
325 |
</div>
|
326 |
</div><!--ufbl-form-field-wrap-->
|
327 |
<div class="ufbl-field-controls">
|
328 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
329 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
330 |
</div>
|
331 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
332 |
<span class="ufbl-up-arrow"></span>
|
333 |
<div class="ufbl-form-field-wrap">
|
334 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
335 |
<div class="ufbl-form-field">
|
336 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Gender', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
337 |
</div>
|
338 |
</div>
|
339 |
<div class="ufbl-form-field-wrap">
|
340 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
341 |
<div class="ufbl-form-field">
|
342 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1"/>
|
343 |
</div>
|
344 |
</div>
|
345 |
<div class="ufbl-form-field-wrap">
|
346 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
347 |
<div class="ufbl-form-field">
|
348 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_label"/>
|
349 |
</div>
|
350 |
</div>
|
351 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
352 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
353 |
<div class="ufbl-form-field">
|
354 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="ufbl_key"/>
|
355 |
<div class="ufbl-option-value-wrap">
|
356 |
<div class="ufbl-each-option">
|
357 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
358 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="field_label"/>
|
359 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="field_label"/>
|
360 |
<span class="ufbl-option-remover">X</span>
|
361 |
</div>
|
362 |
<div class="ufbl-each-option">
|
363 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
364 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="field_label"/>
|
365 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="field_label"/>
|
366 |
<span class="ufbl-option-remover">X</span>
|
367 |
</div>
|
368 |
|
370 |
</div>
|
371 |
</div>
|
372 |
<div class="ufbl-form-field-wrap">
|
373 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
374 |
<div class="ufbl-form-field">
|
375 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
376 |
</div>
|
377 |
</div>
|
378 |
<div class="ufbl-form-field-wrap">
|
379 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
380 |
<div class="ufbl-form-field">
|
381 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
382 |
</div>
|
392 |
<div class="ufbl-each-form-field ufbl-relative">
|
393 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
394 |
<div class="ufbl-form-field-wrap">
|
395 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Checkbox', 'ultimate-form-builder-lite' ); ?></label>
|
396 |
<div class="ufbl-form-field">
|
397 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?></label>
|
398 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?></label>
|
399 |
+
<label><input type="checkbox" disabled="disabled"><?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?></label>
|
400 |
</div>
|
401 |
</div><!--ufbl-form-field-wrap-->
|
402 |
<div class="ufbl-field-controls">
|
403 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
404 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
405 |
</div>
|
406 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
407 |
<span class="ufbl-up-arrow"></span>
|
408 |
<div class="ufbl-form-field-wrap">
|
409 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
410 |
<div class="ufbl-form-field">
|
411 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Hobbies', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
412 |
</div>
|
413 |
</div>
|
414 |
<div class="ufbl-form-field-wrap">
|
415 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
416 |
<div class="ufbl-form-field">
|
417 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
418 |
</div>
|
419 |
</div>
|
420 |
<div class="ufbl-form-field-wrap">
|
421 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
422 |
<div class="ufbl-form-field">
|
423 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill your name', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_label"/>
|
424 |
</div>
|
425 |
</div>
|
426 |
<div class="ufbl-form-field-wrap ufbl-full-width ufbl-op-wrap">
|
427 |
+
<label><?php _e( 'Options', 'ultimate-form-builder-lite' ); ?></label>
|
428 |
<div class="ufbl-form-field">
|
429 |
+
<input type="button" value="<?php _e( 'Add Option', 'ultimate-form-builder-lite' ); ?>" class="ufbl-option-value-adder button-primary" data-field-key="ufbl_key"/>
|
430 |
<div class="ufbl-option-value-wrap">
|
431 |
<div class="ufbl-each-option">
|
432 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
433 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="field_label"/>
|
434 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 1', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="field_label"/>
|
435 |
<span class="ufbl-option-remover">X</span>
|
436 |
</div>
|
437 |
<div class="ufbl-each-option">
|
438 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
439 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="field_label"/>
|
440 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 2', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="field_label"/>
|
441 |
<span class="ufbl-option-remover">X</span>
|
442 |
</div>
|
443 |
<div class="ufbl-each-option">
|
444 |
<span class="ufbl-option-drag-arrow"><i class="fa fa-arrows"></i></span>
|
445 |
+
<input type="text" name="field_data[ufbl_key][option][]" value="<?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?>" placeholder="Option" data-field-name="ufbl_key" data-field-type="field_label"/>
|
446 |
+
<input type="text" name="field_data[ufbl_key][value][]" value="<?php _e( 'Option 3', 'ultimate-form-builder-lite' ); ?>" placeholder="Value" data-field-name="ufbl_key" data-field-type="field_label"/>
|
447 |
<span class="ufbl-option-remover">X</span>
|
448 |
</div>
|
449 |
</div>
|
450 |
</div>
|
451 |
</div>
|
452 |
<div class="ufbl-form-field-wrap">
|
453 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
454 |
<div class="ufbl-form-field">
|
455 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
456 |
</div>
|
457 |
</div>
|
458 |
<div class="ufbl-form-field-wrap">
|
459 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
460 |
<div class="ufbl-form-field">
|
461 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
462 |
</div>
|
472 |
<div class="ufbl-each-form-field ufbl-relative">
|
473 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
474 |
<div class="ufbl-form-field-wrap">
|
475 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Password', 'ultimate-form-builder-lite' ); ?></label>
|
476 |
<div class="ufbl-form-field">
|
477 |
<input type="password" disabled="disabled"/>
|
478 |
</div>
|
479 |
</div><!--ufbl-form-field-wrap-->
|
480 |
<div class="ufbl-field-controls">
|
481 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
482 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
483 |
</div>
|
484 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
485 |
<span class="ufbl-up-arrow"></span>
|
486 |
<div class="ufbl-form-field-wrap">
|
487 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
488 |
<div class="ufbl-form-field">
|
489 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Password', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
490 |
</div>
|
491 |
</div>
|
492 |
<div class="ufbl-form-field-wrap">
|
493 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
494 |
<div class="ufbl-form-field">
|
495 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
496 |
</div>
|
497 |
</div>
|
498 |
<div class="ufbl-form-field-wrap">
|
499 |
+
<label><?php _e( 'Max Characters', 'ultimate-form-builder-lite' ); ?></label>
|
500 |
<div class="ufbl-form-field">
|
501 |
<input type="text" name="field_data[ufbl_key][max_chars]" placeholder='50' data-field-name="ufbl_key" data-field-type="field_label"/>
|
502 |
</div>
|
503 |
</div>
|
504 |
<div class="ufbl-form-field-wrap">
|
505 |
+
<label><?php _e( 'Min Characters', 'ultimate-form-builder-lite' ); ?></label>
|
506 |
<div class="ufbl-form-field">
|
507 |
<input type="text" name="field_data[ufbl_key][min_chars]" placeholder='20' data-field-name="ufbl_key" data-field-type="field_label"/>
|
508 |
</div>
|
509 |
</div>
|
510 |
<div class="ufbl-form-field-wrap">
|
511 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
512 |
<div class="ufbl-form-field">
|
513 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill number only', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_label"/>
|
514 |
</div>
|
515 |
</div>
|
516 |
<div class="ufbl-form-field-wrap">
|
517 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
518 |
<div class="ufbl-form-field">
|
519 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Password here', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="field_label"/>
|
520 |
</div>
|
521 |
</div>
|
522 |
<div class="ufbl-form-field-wrap">
|
523 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
524 |
<div class="ufbl-form-field">
|
525 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
526 |
</div>
|
527 |
</div>
|
528 |
<div class="ufbl-form-field-wrap">
|
529 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
530 |
<div class="ufbl-form-field">
|
531 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
532 |
</div>
|
542 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
543 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
544 |
<div class="ufbl-form-field-wrap">
|
545 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Hidden', 'ultimate-form-builder-lite' ); ?></label>
|
546 |
<div class="ufbl-form-field">
|
547 |
<input type="hidden" disabled="disabled"/>
|
548 |
</div>
|
549 |
</div><!--ufbl-form-field-wrap-->
|
550 |
<div class="ufbl-field-controls">
|
551 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
552 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
553 |
</div>
|
554 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
555 |
<span class="ufbl-up-arrow"></span>
|
556 |
<div class="ufbl-form-field-wrap">
|
557 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
558 |
<div class="ufbl-form-field">
|
559 |
<input type="text" name="field_data[ufbl_key][field_label]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
560 |
</div>
|
561 |
</div>
|
562 |
<div class="ufbl-form-field-wrap">
|
563 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
564 |
<div class="ufbl-form-field">
|
565 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
566 |
</div>
|
567 |
</div>
|
568 |
<div class="ufbl-form-field-wrap">
|
569 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
570 |
<div class="ufbl-form-field">
|
571 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
572 |
</div>
|
573 |
</div>
|
574 |
<div class="ufbl-form-field-wrap">
|
575 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
576 |
<div class="ufbl-form-field">
|
577 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
578 |
</div>
|
588 |
<div class="ufbl-each-form-field ufbl-relative">
|
589 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
590 |
<div class="ufbl-form-field-wrap">
|
591 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Number', 'ultimate-form-builder-lite' ); ?></label>
|
592 |
<div class="ufbl-form-field">
|
593 |
<input type="number" disabled="disabled"/>
|
594 |
</div>
|
595 |
</div><!--ufbl-form-field-wrap-->
|
596 |
<div class="ufbl-field-controls">
|
597 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
598 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
599 |
</div>
|
600 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
601 |
<span class="ufbl-up-arrow"></span>
|
602 |
<div class="ufbl-form-field-wrap">
|
603 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
604 |
<div class="ufbl-form-field">
|
605 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Your Number', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
606 |
</div>
|
607 |
</div>
|
608 |
<div class="ufbl-form-field-wrap">
|
609 |
+
<label><?php _e( 'Required', 'ultimate-form-builder-lite' ); ?></label>
|
610 |
<div class="ufbl-form-field">
|
611 |
<input type="checkbox" name="field_data[ufbl_key][required]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
612 |
</div>
|
613 |
</div>
|
614 |
<div class="ufbl-form-field-wrap">
|
615 |
+
<label><?php _e( 'Max Value', 'ultimate-form-builder-lite' ); ?></label>
|
616 |
<div class="ufbl-form-field">
|
617 |
<input type="text" name="field_data[ufbl_key][max_value]" placeholder='50' data-field-name="ufbl_key" data-field-type="max_value"/>
|
618 |
</div>
|
619 |
</div>
|
620 |
<div class="ufbl-form-field-wrap">
|
621 |
+
<label><?php _e( 'Min Value', 'ultimate-form-builder-lite' ); ?></label>
|
622 |
<div class="ufbl-form-field">
|
623 |
<input type="text" name="field_data[ufbl_key][min_value]" placeholder='20' data-field-name="ufbl_key" data-field-type="min_value"/>
|
624 |
</div>
|
625 |
</div>
|
626 |
<div class="ufbl-form-field-wrap">
|
627 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
628 |
<div class="ufbl-form-field">
|
629 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please fill number only', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_label"/>
|
630 |
</div>
|
631 |
</div>
|
632 |
<div class="ufbl-form-field-wrap">
|
633 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
634 |
<div class="ufbl-form-field">
|
635 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Your Password here', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="field_label"/>
|
636 |
</div>
|
637 |
</div>
|
638 |
<div class="ufbl-form-field-wrap">
|
639 |
+
<label><?php _e( 'Pre filled value', 'ultimate-form-builder-lite' ); ?></label>
|
640 |
<div class="ufbl-form-field">
|
641 |
<input type="text" name="field_data[ufbl_key][pre_filled_value]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
642 |
</div>
|
643 |
</div>
|
644 |
<div class="ufbl-form-field-wrap">
|
645 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
646 |
<div class="ufbl-form-field">
|
647 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
648 |
</div>
|
649 |
</div>
|
650 |
<div class="ufbl-form-field-wrap">
|
651 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
652 |
<div class="ufbl-form-field">
|
653 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
654 |
</div>
|
664 |
<div class="ufbl-each-form-field ufbl-submit-button-wrap ufbl-relative">
|
665 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
666 |
<div class="ufbl-form-field-wrap">
|
667 |
+
<label class="ufbl-field-label-ref"><?php _e( 'Untitled Captcha', 'ultimate-form-builder-lite' ); ?></label>
|
668 |
<div class="ufbl-form-field">
|
669 |
|
670 |
</div>
|
671 |
</div><!--ufbl-form-field-wrap-->
|
672 |
<div class="ufbl-field-controls">
|
673 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
674 |
<a href="javascript:void(0)" class="ufbl-field-delete-trigger">Delete</a>
|
675 |
</div>
|
676 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
677 |
<span class="ufbl-up-arrow"></span>
|
678 |
<div class="ufbl-form-field-wrap">
|
679 |
+
<label><?php _e( 'Field Label', 'ultimate-form-builder-lite' ); ?></label>
|
680 |
<div class="ufbl-form-field">
|
681 |
+
<input type="text" name="field_data[ufbl_key][field_label]" placeholder="<?php _e( 'Human Check', 'ultimate-form-builder-lite' ); ?>" class="ufbl-field-label-field" data-field-name="ufbl_key" data-field-type="field_label"/>
|
682 |
</div>
|
683 |
</div>
|
684 |
<div class="ufbl-form-field-wrap">
|
685 |
+
<label><?php _e( 'Captcha Type', 'ultimate-form-builder-lite' ); ?></label>
|
686 |
<div class="ufbl-form-field">
|
687 |
<select name="field_data[ufbl_key][captcha_type]" class="ufbl-captcha-type-dropdown">
|
688 |
+
<option value="mathematical"><?php _e( 'Mathematical Captcha', 'ultimate-form-builder-lite' ); ?></option>
|
689 |
+
<option value="google"><?php _e( 'Google reCaptcha', 'ultimate-form-builder-lite' ); ?></option>
|
690 |
</select>
|
691 |
</div>
|
692 |
</div>
|
693 |
<div class="ufbl-captcha-field-ref" style="display:none;">
|
694 |
<div class="ufbl-form-field-wrap">
|
695 |
+
<label><?php _e( 'Site Key', 'ultimate-form-builder-lite' ) ?></label>
|
696 |
<div class="ufbl-form-field">
|
697 |
<input type="text" name="field_data[ufbl_key][site_key]" data-field-name="ufbl_key"/>
|
698 |
</div>
|
699 |
</div>
|
700 |
<div class="ufbl-form-field-wrap">
|
701 |
+
<label><?php _e( 'Secret Key', 'ultimate-form-builder-lite' ) ?></label>
|
702 |
<div class="ufbl-form-field">
|
703 |
<input type="text" name="field_data[ufbl_key][secret_key]" data-field-name="ufbl_key"/>
|
704 |
</div>
|
705 |
</div>
|
706 |
<div class="ufbl-field-extra-note">
|
707 |
<?php
|
708 |
+
_e( 'Google Captcha will only show up in form filled the valid google captcha keys.Please visit <a href="https://www.google.com/recaptcha/admin" target="_blank">here</a> to get your site and secret key.', 'ultimate-form-builder-lite' );
|
709 |
?>
|
710 |
|
711 |
</div>
|
712 |
</div>
|
713 |
<div class="ufbl-form-field-wrap">
|
714 |
+
<label><?php _e( 'Error Message', 'ultimate-form-builder-lite' ); ?></label>
|
715 |
<div class="ufbl-form-field">
|
716 |
+
<input type="text" name="field_data[ufbl_key][error_message]" placeholder="<?php _e( 'Please verify you are human.', 'ultimate-form-builder-lite' ); ?>" data-field-name="ufbl_key" data-field-type="field_label"/>
|
717 |
</div>
|
718 |
</div>
|
719 |
<div class="ufbl-form-field-wrap">
|
720 |
+
<label><?php _e( 'Placeholder', 'ultimate-form-builder-lite' ); ?></label>
|
721 |
<div class="ufbl-form-field">
|
722 |
+
<input type="text" name="field_data[ufbl_key][placeholder]" placeholder='<?php _e( 'Enter Sum', 'ultimate-form-builder-lite' ); ?>' data-field-name="ufbl_key" data-field-type="placeholder"/>
|
723 |
</div>
|
724 |
</div>
|
725 |
<div class="ufbl-form-field-wrap">
|
726 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
727 |
<div class="ufbl-form-field">
|
728 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
729 |
</div>
|
730 |
</div>
|
731 |
<div class="ufbl-form-field-wrap">
|
732 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
733 |
<div class="ufbl-form-field">
|
734 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_label"/>
|
735 |
</div>
|
746 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
747 |
<div class="ufbl-form-field-wrap">
|
748 |
<div class="ufbl-form-field">
|
749 |
+
<input type="submit" disabled="disabled" class="button-primary ufbl-submit-reference" value="<?php _e( 'Submit', 'ultimate-form-builder-lite' ); ?>"/>
|
750 |
</div>
|
751 |
</div><!--ufbl-form-field-wrap-->
|
752 |
<div class="ufbl-field-controls">
|
753 |
+
<a href="javascript:void(0)" class="ufbl-field-settings-trigger button-primary"><?php _e( 'Settings', 'ultimate-form-builder-lite' ); ?></a><span>+</span>
|
754 |
+
<a href="javascript:void(0)" class="ufbl-field-delete-trigger" data-confirm-message="<?php _e( 'If you delete this element then data related with this element will also be deleted. Are you sure you want to delete this element?', 'ultimate-form-builder-lite' ); ?>">Delete</a>
|
755 |
</div>
|
756 |
<div class="ufbl-field-settings-wrap" style="display:none;">
|
757 |
<span class="ufbl-up-arrow"></span>
|
758 |
<div class="ufbl-form-field-wrap">
|
759 |
+
<label><?php _e( 'Submit Button label', 'ultimate-form-builder-lite' ); ?></label>
|
760 |
<div class="ufbl-form-field">
|
761 |
<input type="text" name="field_data[ufbl_key][button_label]" class="ufbl-submit-button" data-field-name="ufbl_key" data-field-type="button_label"/>
|
762 |
</div>
|
763 |
</div>
|
764 |
<div class="ufbl-form-field-wrap">
|
765 |
+
<label><?php _e( 'Show Reset Button', 'ultimate-form-builder-lite' ); ?></label>
|
766 |
<div class="ufbl-form-field">
|
767 |
<input type="checkbox" name="field_data[ufbl_key][show_reset_button]" value="1" data-field-name="ufbl_key" data-field-type="field_label"/>
|
768 |
</div>
|
769 |
</div>
|
770 |
<div class="ufbl-form-field-wrap">
|
771 |
+
<label><?php _e( 'Reset Button label', 'ultimate-form-builder-lite' ); ?></label>
|
772 |
<div class="ufbl-form-field">
|
773 |
<input type="text" name="field_data[ufbl_key][reset_label]" data-field-name="ufbl_key" data-field-type="button_label"/>
|
774 |
</div>
|
775 |
</div>
|
776 |
<div class="ufbl-form-field-wrap">
|
777 |
+
<label><?php _e( 'ID of the field', 'ultimate-form-builder-lite' ); ?></label>
|
778 |
<div class="ufbl-form-field">
|
779 |
<input type="text" name="field_data[ufbl_key][field_id]" data-field-name="ufbl_key" data-field-type="field_id"/>
|
780 |
</div>
|
781 |
</div>
|
782 |
<div class="ufbl-form-field-wrap">
|
783 |
+
<label><?php _e( 'Class of the field', 'ultimate-form-builder-lite' ); ?></label>
|
784 |
<div class="ufbl-form-field">
|
785 |
<input type="text" name="field_data[ufbl_key][field_class]" data-field-name="ufbl_key" data-field-type="field_class"/>
|
786 |
</div>
|
inc/views/backend/entry-detail.php
CHANGED
@@ -15,14 +15,14 @@
|
|
15 |
$field_count = 0;
|
16 |
?>
|
17 |
<div class="ufbl-entry-field-wrap <?php echo ($field_count % 2 == 0) ? 'ufbl-entry-even' : ''; ?>">
|
18 |
-
<label><?php _e( 'Entry Posted Date',
|
19 |
<div class="ufbl-entry-value"><?php echo esc_attr( $entry_row['entry_created'] ); ?></div>
|
20 |
</div>
|
21 |
<?php
|
22 |
foreach ( $field_data as $field_key => $field_settings ) {
|
23 |
$field_count++;
|
24 |
if ( !in_array( $field_settings['field_type'], $except_field_types ) ) {
|
25 |
-
$field_label = ($field_settings['field_label'] != '') ? esc_attr( $field_settings['field_label'] ) : __( 'Untitled',
|
26 |
if ( isset( $entry_detail[$field_key] ) ) {
|
27 |
if ( is_array( $entry_detail[$field_key] ) ) {
|
28 |
$entry_detail[$field_key] = array_map( 'esc_attr', $entry_detail[$field_key] );
|
@@ -46,7 +46,7 @@
|
|
46 |
}
|
47 |
} else {
|
48 |
?>
|
49 |
-
<p><?php _e( "It seems that you have deleted the form of this entry.Entry not found in database!",
|
50 |
<?php
|
51 |
}
|
52 |
?>
|
15 |
$field_count = 0;
|
16 |
?>
|
17 |
<div class="ufbl-entry-field-wrap <?php echo ($field_count % 2 == 0) ? 'ufbl-entry-even' : ''; ?>">
|
18 |
+
<label><?php _e( 'Entry Posted Date', 'ultimate-form-builder-lite' ); ?></label>
|
19 |
<div class="ufbl-entry-value"><?php echo esc_attr( $entry_row['entry_created'] ); ?></div>
|
20 |
</div>
|
21 |
<?php
|
22 |
foreach ( $field_data as $field_key => $field_settings ) {
|
23 |
$field_count++;
|
24 |
if ( !in_array( $field_settings['field_type'], $except_field_types ) ) {
|
25 |
+
$field_label = ($field_settings['field_label'] != '') ? esc_attr( $field_settings['field_label'] ) : __( 'Untitled', 'ultimate-form-builder-lite' ) . ' ' . $field_settings['field_type'];
|
26 |
if ( isset( $entry_detail[$field_key] ) ) {
|
27 |
if ( is_array( $entry_detail[$field_key] ) ) {
|
28 |
$entry_detail[$field_key] = array_map( 'esc_attr', $entry_detail[$field_key] );
|
46 |
}
|
47 |
} else {
|
48 |
?>
|
49 |
+
<p><?php _e( "It seems that you have deleted the form of this entry.Entry not found in database!", 'ultimate-form-builder-lite' ); ?></p>
|
50 |
<?php
|
51 |
}
|
52 |
?>
|
inc/views/backend/form-builder.php
CHANGED
@@ -9,9 +9,9 @@
|
|
9 |
?>
|
10 |
<div class="ufbl-shortcode-display-wrap">Shortcode: <input type="text" onfocus="this.select();" readonly="readonly" value="[ufbl form_id="<?php echo $_GET['form_id']?>"]" class="shortcode-in-list-table wp-ui-text-highlight code"></div>
|
11 |
<h2 class="nav-tab-wrapper">
|
12 |
-
<a href="javascript:void(0);" class="nav-tab nav-tab-active ufbl-tab-trigger" data-id="form-builder"><?php _e( 'Form Builder',
|
13 |
-
<a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id="display"><?php _e( 'Display Settings',
|
14 |
-
<a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id='email'><?php _e( 'Email Settings',
|
15 |
|
16 |
</h2>
|
17 |
<?php if ( isset( $_SESSION['ufbl_message'] ) ) { ?>
|
@@ -26,9 +26,9 @@
|
|
26 |
</div>
|
27 |
<?php } ?>
|
28 |
<div class="ufbl-form-controls ufbl-text-align-right">
|
29 |
-
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form',
|
30 |
-
<a href="<?php echo site_url('?ufbl_form_preview=true&ufbl_form_id='.$form_row['form_id']);?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview',
|
31 |
-
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.',
|
32 |
</div>
|
33 |
<div class="ufbl-clear"></div>
|
34 |
<div class="ufbl-tab-content-wrapper">
|
9 |
?>
|
10 |
<div class="ufbl-shortcode-display-wrap">Shortcode: <input type="text" onfocus="this.select();" readonly="readonly" value="[ufbl form_id="<?php echo $_GET['form_id']?>"]" class="shortcode-in-list-table wp-ui-text-highlight code"></div>
|
11 |
<h2 class="nav-tab-wrapper">
|
12 |
+
<a href="javascript:void(0);" class="nav-tab nav-tab-active ufbl-tab-trigger" data-id="form-builder"><?php _e( 'Form Builder', 'ultimate-form-builder-lite' ); ?></a>
|
13 |
+
<a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id="display"><?php _e( 'Display Settings', 'ultimate-form-builder-lite' ); ?></a>
|
14 |
+
<a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id='email'><?php _e( 'Email Settings', 'ultimate-form-builder-lite' ); ?></a>
|
15 |
|
16 |
</h2>
|
17 |
<?php if ( isset( $_SESSION['ufbl_message'] ) ) { ?>
|
26 |
</div>
|
27 |
<?php } ?>
|
28 |
<div class="ufbl-form-controls ufbl-text-align-right">
|
29 |
+
<input type="button" class="button-primary ufbl-save-form" value="<?php _e( 'Save Form', 'ultimate-form-builder-lite' ); ?>"/>
|
30 |
+
<a href="<?php echo site_url('?ufbl_form_preview=true&ufbl_form_id='.$form_row['form_id']);?>" target="_blank"><input type="button" class="button-primary" value="<?php _e( 'Preview', 'ultimate-form-builder-lite' ); ?>"/></a>
|
31 |
+
<div class="ufbl-field-note"><?php _e( 'Note: Please save form before preview.', 'ultimate-form-builder-lite' ); ?></div>
|
32 |
</div>
|
33 |
<div class="ufbl-clear"></div>
|
34 |
<div class="ufbl-tab-content-wrapper">
|
inc/views/backend/form-entries-list.php
CHANGED
@@ -7,10 +7,10 @@
|
|
7 |
self::load_view( 'backend/header' );
|
8 |
?>
|
9 |
<div class="ufbl-entry-filter-wrap">
|
10 |
-
<h3><?php _e( 'Form Entries',
|
11 |
|
12 |
<select class="ufbl-entry-filter-select" data-admin-url="<?php echo admin_url(); ?>">
|
13 |
-
<option value=""><?php _e( 'All Form entries',
|
14 |
<?php
|
15 |
$form_id = isset( $_GET['form_id'] ) ? $_GET['form_id'] : '';
|
16 |
if ( count( $form_rows ) > 0 ) {
|
@@ -24,7 +24,7 @@
|
|
24 |
</select>
|
25 |
<?php $csv_nonce = wp_create_nonce( 'ufbl-csv-nonce' ); ?>
|
26 |
<?php if ( $form_id != '' ) { ?>
|
27 |
-
<a href="<?php echo admin_url( 'admin-post.php?action=ufbl_csv_export&form_id=' . $form_id . '&_wpnonce=' . $csv_nonce ); ?>"><input type="button" class="ufbl-csv-export-trigger" value="<?php _e( 'Export to CSV',
|
28 |
<?php
|
29 |
}
|
30 |
|
@@ -47,7 +47,7 @@
|
|
47 |
$page_link = admin_url( 'admin.php?page=ufbl-form-entries&page_num=' . $previous_page );
|
48 |
}
|
49 |
?>
|
50 |
-
<a class="ufbl-entry-previous-page ufbl-entry-page-link" href="<?php echo $page_link; ?>"><?php _e( 'Previous',
|
51 |
<?php
|
52 |
}
|
53 |
for ( $page = $lower_page_limit; $page <= $upper_page_limit; $page++ ) {
|
@@ -67,7 +67,7 @@
|
|
67 |
$page_link = admin_url( 'admin.php?page=ufbl-form-entries&page_num=' . $next_page );
|
68 |
}
|
69 |
?>
|
70 |
-
<a class="ufbl-entry-next-page ufbl-entry-page-link" href="<?php echo $page_link; ?>"><?php _e( 'Next',
|
71 |
<?php
|
72 |
}
|
73 |
?>
|
@@ -80,10 +80,10 @@
|
|
80 |
<thead>
|
81 |
<tr>
|
82 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
83 |
-
<?php _e( 'Form Title',
|
84 |
</th>
|
85 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
86 |
-
<?php _e( 'Entry Recieved',
|
87 |
</th>
|
88 |
|
89 |
</tr>
|
@@ -91,10 +91,10 @@
|
|
91 |
<tfoot>
|
92 |
<tr>
|
93 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
94 |
-
<?php _e( 'Form Title',
|
95 |
</th>
|
96 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
97 |
-
<?php _e( 'Entry Recieved',
|
98 |
</th>
|
99 |
|
100 |
</tr>
|
@@ -119,11 +119,11 @@
|
|
119 |
</strong>
|
120 |
<div class="row-actions ufbl-relative">
|
121 |
<span class="delete ufbl-delete"><a href="javascript:void(0);">Delete</a> | </span>
|
122 |
-
<span class="ufbl-view-entry"><a href="javascript:void(0);" data-entry-id="<?php echo $form_entry_row['entry_id']; ?>"><?php _e( 'View Entry',
|
123 |
<div class="ufbl-delete-confirmation" style="display:none">
|
124 |
-
<p><?php _e( 'Are you sure you want to delete this entry?',
|
125 |
-
<input type="button" value="<?php _e( 'Yes',
|
126 |
-
<input type="button" value="<?php _e( 'Cancel',
|
127 |
<span class="ufbl-ajax-loader" style="display:none;"></span>
|
128 |
</div>
|
129 |
</div>
|
@@ -135,7 +135,7 @@
|
|
135 |
}
|
136 |
} else {
|
137 |
?>
|
138 |
-
<tr><td colspan="2"><div class="ufbl-noresult"><?php _e( 'Entries not found for this form.',
|
139 |
<?php
|
140 |
}
|
141 |
?>
|
7 |
self::load_view( 'backend/header' );
|
8 |
?>
|
9 |
<div class="ufbl-entry-filter-wrap">
|
10 |
+
<h3><?php _e( 'Form Entries', 'ultimate-form-builder-lite' ); ?></h3>
|
11 |
|
12 |
<select class="ufbl-entry-filter-select" data-admin-url="<?php echo admin_url(); ?>">
|
13 |
+
<option value=""><?php _e( 'All Form entries', 'ultimate-form-builder-lite' ); ?></option>
|
14 |
<?php
|
15 |
$form_id = isset( $_GET['form_id'] ) ? $_GET['form_id'] : '';
|
16 |
if ( count( $form_rows ) > 0 ) {
|
24 |
</select>
|
25 |
<?php $csv_nonce = wp_create_nonce( 'ufbl-csv-nonce' ); ?>
|
26 |
<?php if ( $form_id != '' ) { ?>
|
27 |
+
<a href="<?php echo admin_url( 'admin-post.php?action=ufbl_csv_export&form_id=' . $form_id . '&_wpnonce=' . $csv_nonce ); ?>"><input type="button" class="ufbl-csv-export-trigger" value="<?php _e( 'Export to CSV', 'ultimate-form-builder-lite' ); ?>" data-admin-url="<?php echo admin_url(); ?>" data-form-id="<?php echo $form_id; ?>"/></a>
|
28 |
<?php
|
29 |
}
|
30 |
|
47 |
$page_link = admin_url( 'admin.php?page=ufbl-form-entries&page_num=' . $previous_page );
|
48 |
}
|
49 |
?>
|
50 |
+
<a class="ufbl-entry-previous-page ufbl-entry-page-link" href="<?php echo $page_link; ?>"><?php _e( 'Previous', 'ultimate-form-builder-lite' ); ?></a>
|
51 |
<?php
|
52 |
}
|
53 |
for ( $page = $lower_page_limit; $page <= $upper_page_limit; $page++ ) {
|
67 |
$page_link = admin_url( 'admin.php?page=ufbl-form-entries&page_num=' . $next_page );
|
68 |
}
|
69 |
?>
|
70 |
+
<a class="ufbl-entry-next-page ufbl-entry-page-link" href="<?php echo $page_link; ?>"><?php _e( 'Next', 'ultimate-form-builder-lite' ); ?></a>
|
71 |
<?php
|
72 |
}
|
73 |
?>
|
80 |
<thead>
|
81 |
<tr>
|
82 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
83 |
+
<?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?>
|
84 |
</th>
|
85 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
86 |
+
<?php _e( 'Entry Recieved', 'ultimate-form-builder-lite' ); ?>
|
87 |
</th>
|
88 |
|
89 |
</tr>
|
91 |
<tfoot>
|
92 |
<tr>
|
93 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
94 |
+
<?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?>
|
95 |
</th>
|
96 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
97 |
+
<?php _e( 'Entry Recieved', 'ultimate-form-builder-lite' ); ?>
|
98 |
</th>
|
99 |
|
100 |
</tr>
|
119 |
</strong>
|
120 |
<div class="row-actions ufbl-relative">
|
121 |
<span class="delete ufbl-delete"><a href="javascript:void(0);">Delete</a> | </span>
|
122 |
+
<span class="ufbl-view-entry"><a href="javascript:void(0);" data-entry-id="<?php echo $form_entry_row['entry_id']; ?>"><?php _e( 'View Entry', 'ultimate-form-builder-lite' ); ?></a></span>
|
123 |
<div class="ufbl-delete-confirmation" style="display:none">
|
124 |
+
<p><?php _e( 'Are you sure you want to delete this entry?', 'ultimate-form-builder-lite' ); ?></p>
|
125 |
+
<input type="button" value="<?php _e( 'Yes', 'ultimate-form-builder-lite' ); ?>" data-entry-id="<?php echo $form_entry_row['entry_id']; ?>" class="ufbl-delete-yes ufbl-delete-entry-yes"/>
|
126 |
+
<input type="button" value="<?php _e( 'Cancel', 'ultimate-form-builder-lite' ); ?>" class="ufbl-delete-cancel"/>
|
127 |
<span class="ufbl-ajax-loader" style="display:none;"></span>
|
128 |
</div>
|
129 |
</div>
|
135 |
}
|
136 |
} else {
|
137 |
?>
|
138 |
+
<tr><td colspan="2"><div class="ufbl-noresult"><?php _e( 'Entries not found for this form.', 'ultimate-form-builder-lite' ); ?></div></td></tr>
|
139 |
<?php
|
140 |
}
|
141 |
?>
|
inc/views/backend/form-list.php
CHANGED
@@ -11,38 +11,38 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
11 |
|
12 |
|
13 |
<div class="ufbl-form-list">
|
14 |
-
<h2><?php _e( 'Forms',
|
15 |
|
16 |
<table class="wp-list-table widefat fixed posts">
|
17 |
<thead>
|
18 |
<tr>
|
19 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
20 |
-
<?php _e( 'Form Title',
|
21 |
</th>
|
22 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
23 |
-
<?php _e( 'Shortcode',
|
24 |
</th>
|
25 |
<th scope="col" id="last-modified" class="manage-column column-shortcode">
|
26 |
-
<?php _e( 'Last Modified',
|
27 |
</th>
|
28 |
<th scope="col" id="status" class="manage-column column-shortcode">
|
29 |
-
<?php _e( 'Status',
|
30 |
</th>
|
31 |
</tr>
|
32 |
</thead>
|
33 |
<tfoot>
|
34 |
<tr>
|
35 |
<th scope="col" id="title" class="manage-column column-shortcode" >
|
36 |
-
<span><?php _e( 'Form Title',
|
37 |
</th>
|
38 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
39 |
-
<?php _e( 'Shortcode',
|
40 |
</th>
|
41 |
<th scope="col" id="last-modified" class="manage-column column-shortcode">
|
42 |
-
<?php _e( 'Last Modified',
|
43 |
</th>
|
44 |
<th scope="col" id="status" class="manage-column column-shortcode">
|
45 |
-
<?php _e( 'Status',
|
46 |
</th>
|
47 |
</tr>
|
48 |
</tfoot>
|
@@ -65,12 +65,12 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
65 |
<span class="edit"><a href="<?php echo admin_url() . 'admin.php?page=ufbl&action=edit-form&form_id=' . $form->form_id; ?>">Edit</a> | </span>
|
66 |
<span class="ufbl-copy" data-form-id="<?php echo $form->form_id; ?>"><a href="javascript:void(0);">Copy</a> | </span>
|
67 |
<span class="delete ufbl-delete"><a href="javascript:void(0);">Delete</a> | </span>
|
68 |
-
<span class="ufbl-preview"><a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form->form_id ); ?>" target="_blank"><?php _e( 'Preview',
|
69 |
-
<span class="ufbl-entries"><a href="<?php echo admin_url( 'admin.php?page=ufbl-form-entries&form_id=' . $form->form_id ); ?>"><?php _e( 'Entries',
|
70 |
<div class="ufbl-delete-confirmation" style="display:none">
|
71 |
-
<p><?php _e( 'Are you sure you want to delete this form?',
|
72 |
-
<input type="button" value="<?php _e( 'Yes',
|
73 |
-
<input type="button" value="<?php _e( 'Cancel',
|
74 |
<span class="ufbl-ajax-loader" style="display:none;"></span>
|
75 |
</div>
|
76 |
</div>
|
@@ -96,7 +96,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
96 |
}
|
97 |
} else {
|
98 |
?>
|
99 |
-
<tr><td colspan="4"><div class="ufbl-noresult"><?php _e( 'Forms not added yet',
|
100 |
<?php
|
101 |
}
|
102 |
?>
|
@@ -109,12 +109,12 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
109 |
<div class="ufbl-overlay"></div>
|
110 |
<div class="ufbl-add-form-wrap">
|
111 |
<div class="ufbl-add-field-wrap">
|
112 |
-
<label><?php _e( 'Form Title',
|
113 |
-
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form',
|
114 |
-
<div class="ufbl-field-note"><?php _e( 'Please enter the form title',
|
115 |
</div>
|
116 |
<div class="ufbl-add-field-wrap">
|
117 |
-
<input type="button" class="ufbl-form-add-btn button-primary" value="<?php _e( 'Add Form',
|
118 |
<div class="ufbl-add-error ufbl-error" style="display: none;"></div>
|
119 |
</div>
|
120 |
</div>
|
@@ -123,9 +123,9 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
123 |
<div class="ufbl-overlay"></div>
|
124 |
<div class="ufbl-add-form-wrap">
|
125 |
<div class="ufbl-add-field-wrap">
|
126 |
-
<label><?php _e( 'Copy Form Title',
|
127 |
-
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form',
|
128 |
-
<div class="ufbl-field-note"><?php _e( 'Please enter the form title',
|
129 |
</div>
|
130 |
<div class="ufbl-add-field-wrap">
|
131 |
<div class="ufbl-field">
|
@@ -136,10 +136,10 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
136 |
}
|
137 |
?></select>
|
138 |
</div>
|
139 |
-
<div class="ufbl-field-note"><?php _e( 'Please choose a form to copy.',
|
140 |
</div>
|
141 |
<div class="ufbl-add-field-wrap">
|
142 |
-
<input type="button" class="ufbl-form-copy-btn button-primary" value="<?php _e( 'Copy Form',
|
143 |
<div class="ufbl-add-error ufbl-error" style="display: none;"></div>
|
144 |
</div>
|
145 |
</div>
|
11 |
|
12 |
|
13 |
<div class="ufbl-form-list">
|
14 |
+
<h2><?php _e( 'Forms', 'ultimate-form-builder-lite' ); ?><a href="javascript:void(0);" class="ufbl-add-form-trigger add-new-h2"><?php _e( 'Add New Form' ); ?></a></h2>
|
15 |
|
16 |
<table class="wp-list-table widefat fixed posts">
|
17 |
<thead>
|
18 |
<tr>
|
19 |
<th scope="col" id="title" class="manage-column column-shortcode">
|
20 |
+
<?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?>
|
21 |
</th>
|
22 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
23 |
+
<?php _e( 'Shortcode', 'ultimate-form-builder-lite' ); ?>
|
24 |
</th>
|
25 |
<th scope="col" id="last-modified" class="manage-column column-shortcode">
|
26 |
+
<?php _e( 'Last Modified', 'ultimate-form-builder-lite' ); ?>
|
27 |
</th>
|
28 |
<th scope="col" id="status" class="manage-column column-shortcode">
|
29 |
+
<?php _e( 'Status', 'ultimate-form-builder-lite' ); ?>
|
30 |
</th>
|
31 |
</tr>
|
32 |
</thead>
|
33 |
<tfoot>
|
34 |
<tr>
|
35 |
<th scope="col" id="title" class="manage-column column-shortcode" >
|
36 |
+
<span><?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?>
|
37 |
</th>
|
38 |
<th scope="col" id="shortcode" class="manage-column column-shortcode">
|
39 |
+
<?php _e( 'Shortcode', 'ultimate-form-builder-lite' ); ?>
|
40 |
</th>
|
41 |
<th scope="col" id="last-modified" class="manage-column column-shortcode">
|
42 |
+
<?php _e( 'Last Modified', 'ultimate-form-builder-lite' ); ?>
|
43 |
</th>
|
44 |
<th scope="col" id="status" class="manage-column column-shortcode">
|
45 |
+
<?php _e( 'Status', 'ultimate-form-builder-lite' ); ?>
|
46 |
</th>
|
47 |
</tr>
|
48 |
</tfoot>
|
65 |
<span class="edit"><a href="<?php echo admin_url() . 'admin.php?page=ufbl&action=edit-form&form_id=' . $form->form_id; ?>">Edit</a> | </span>
|
66 |
<span class="ufbl-copy" data-form-id="<?php echo $form->form_id; ?>"><a href="javascript:void(0);">Copy</a> | </span>
|
67 |
<span class="delete ufbl-delete"><a href="javascript:void(0);">Delete</a> | </span>
|
68 |
+
<span class="ufbl-preview"><a href="<?php echo site_url( '?ufbl_form_preview=true&ufbl_form_id=' . $form->form_id ); ?>" target="_blank"><?php _e( 'Preview', 'ultimate-form-builder-lite' ); ?></a> | </span>
|
69 |
+
<span class="ufbl-entries"><a href="<?php echo admin_url( 'admin.php?page=ufbl-form-entries&form_id=' . $form->form_id ); ?>"><?php _e( 'Entries', 'ultimate-form-builder-lite' ); ?></a></span>
|
70 |
<div class="ufbl-delete-confirmation" style="display:none">
|
71 |
+
<p><?php _e( 'Are you sure you want to delete this form?', 'ultimate-form-builder-lite' ); ?></p>
|
72 |
+
<input type="button" value="<?php _e( 'Yes', 'ultimate-form-builder-lite' ); ?>" data-form-id="<?php echo $form->form_id; ?>" class="ufbl-delete-yes ufbl-form-delete-yes"/>
|
73 |
+
<input type="button" value="<?php _e( 'Cancel', 'ultimate-form-builder-lite' ); ?>" data-form-id="<?php echo $form->form_id; ?>" class="ufbl-delete-cancel ufbl-form-cancel"/>
|
74 |
<span class="ufbl-ajax-loader" style="display:none;"></span>
|
75 |
</div>
|
76 |
</div>
|
96 |
}
|
97 |
} else {
|
98 |
?>
|
99 |
+
<tr><td colspan="4"><div class="ufbl-noresult"><?php _e( 'Forms not added yet', 'ultimate-form-builder-lite' ); ?></div></td></tr>
|
100 |
<?php
|
101 |
}
|
102 |
?>
|
109 |
<div class="ufbl-overlay"></div>
|
110 |
<div class="ufbl-add-form-wrap">
|
111 |
<div class="ufbl-add-field-wrap">
|
112 |
+
<label><?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?></label>
|
113 |
+
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form', 'ultimate-form-builder-lite' ); ?>"/></div>
|
114 |
+
<div class="ufbl-field-note"><?php _e( 'Please enter the form title', 'ultimate-form-builder-lite' ); ?></div>
|
115 |
</div>
|
116 |
<div class="ufbl-add-field-wrap">
|
117 |
+
<input type="button" class="ufbl-form-add-btn button-primary" value="<?php _e( 'Add Form', 'ultimate-form-builder-lite' ); ?>"/><span class="ufbl-ajax-loader" style="display: none"></span><span class="ufbl-msg" style="display:none;"><?php _e( 'Form Created.Redirecting...' ); ?></span>
|
118 |
<div class="ufbl-add-error ufbl-error" style="display: none;"></div>
|
119 |
</div>
|
120 |
</div>
|
123 |
<div class="ufbl-overlay"></div>
|
124 |
<div class="ufbl-add-form-wrap">
|
125 |
<div class="ufbl-add-field-wrap">
|
126 |
+
<label><?php _e( 'Copy Form Title', 'ultimate-form-builder-lite' ); ?></label>
|
127 |
+
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form', 'ultimate-form-builder-lite' ); ?>"/></div>
|
128 |
+
<div class="ufbl-field-note"><?php _e( 'Please enter the form title', 'ultimate-form-builder-lite' ); ?></div>
|
129 |
</div>
|
130 |
<div class="ufbl-add-field-wrap">
|
131 |
<div class="ufbl-field">
|
136 |
}
|
137 |
?></select>
|
138 |
</div>
|
139 |
+
<div class="ufbl-field-note"><?php _e( 'Please choose a form to copy.', 'ultimate-form-builder-lite' ); ?></div>
|
140 |
</div>
|
141 |
<div class="ufbl-add-field-wrap">
|
142 |
+
<input type="button" class="ufbl-form-copy-btn button-primary" value="<?php _e( 'Copy Form', 'ultimate-form-builder-lite' ); ?>"/><span class="ufbl-ajax-loader" style="display: none"></span><span class="ufbl-msg" style="display:none;"><?php _e( 'Form Copied.Redirecting...' ); ?></span>
|
143 |
<div class="ufbl-add-error ufbl-error" style="display: none;"></div>
|
144 |
</div>
|
145 |
</div>
|
inc/views/backend/how-to-use.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
-
<h3><?php _e( 'How to use',
|
4 |
|
5 |
<div class="ufbl-content-wrap">
|
6 |
<div class="ufbl-content-section">
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
+
<h3><?php _e( 'How to use', 'ultimate-form-builder-lite' ); ?></h3>
|
4 |
|
5 |
<div class="ufbl-content-wrap">
|
6 |
<div class="ufbl-content-section">
|
inc/views/backend/new-form.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
-
<h3><?php _e( 'New Form',
|
4 |
<div class="ufbl-new-form-wrap">
|
5 |
<div class="ufbl-add-field-wrap">
|
6 |
-
<label><?php _e( 'Form Title',
|
7 |
-
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form',
|
8 |
-
<div class="ufbl-field-note"><?php _e( 'Please enter the form title',
|
9 |
</div>
|
10 |
<div class="ufbl-add-field-wrap ufbl-add-submit-wrap">
|
11 |
<input type="button" class="ufbl-form-add-btn button-primary" value="Add Form"><span class="ufbl-ajax-loader" style="display: none"></span><span class="ufbl-msg" style="display:none;">Form Created.Redirecting...</span>
|
1 |
<div class="wrap">
|
2 |
<?php self::load_view( 'backend/header' ); ?>
|
3 |
+
<h3><?php _e( 'New Form', 'ultimate-form-builder-lite' ); ?></h3>
|
4 |
<div class="ufbl-new-form-wrap">
|
5 |
<div class="ufbl-add-field-wrap">
|
6 |
+
<label><?php _e( 'Form Title', 'ultimate-form-builder-lite' ); ?></label>
|
7 |
+
<div class="ufbl-field"><input type="text" class="ufbl-form-title" placeholder="<?php _e( 'Contact Form', 'ultimate-form-builder-lite' ); ?>"></div>
|
8 |
+
<div class="ufbl-field-note"><?php _e( 'Please enter the form title', 'ultimate-form-builder-lite' ); ?></div>
|
9 |
</div>
|
10 |
<div class="ufbl-add-field-wrap ufbl-add-submit-wrap">
|
11 |
<input type="button" class="ufbl-form-add-btn button-primary" value="Add Form"><span class="ufbl-ajax-loader" style="display: none"></span><span class="ufbl-msg" style="display:none;">Form Created.Redirecting...</span>
|
inc/views/frontend/front-form.php
CHANGED
@@ -7,7 +7,7 @@ $form_width = (isset( $form_design['form_width'] ) && $form_design['form_width']
|
|
7 |
?>
|
8 |
<div class="ufbl-form-wrapper <?php echo $form_template_class; ?>" style="width:<?php echo $form_width; ?>;">
|
9 |
<form method="post" action="" class="ufbl-front-form">
|
10 |
-
<?php if ( !isset( $form_design['hide_form_title'] ) ) { ?><div class="ufbl-form-title"><?php echo (isset( $form_row['form_title'] ) && $form_row['form_title'] != '') ? esc_attr( $form_row['form_title'] ) : __( 'Contact Form',
|
11 |
<?php do_action( 'ufbl_form_start' ); ?>
|
12 |
<input type="hidden" name="form_id" value="<?php echo $form_row['form_id']; ?>" class="form-id"/>
|
13 |
<?php
|
@@ -151,9 +151,9 @@ $form_width = (isset( $form_design['form_width'] ) && $form_design['form_width']
|
|
151 |
?>
|
152 |
<div class="ufbl-form-field-wrap <?php echo ($val['field_class'] != '') ? esc_attr( $val['field_class'] ) : ''; ?>" <?php echo ($val['field_id'] != '') ? 'id="' . esc_attr( $val['field_id'] ) . '"' : ''; ?>>
|
153 |
<div class="ufbl-form-field">
|
154 |
-
<input type="submit" class="ufbl-form-submit" name="<?php echo $key; ?>" value="<?php echo (isset( $val['button_label'] ) && $val['button_label'] != '') ? esc_attr( $val['button_label'] ) : __( 'Submit',
|
155 |
<?php if(isset($val['show_reset_button'])){?>
|
156 |
-
<input type="reset" class="ufbl-form-reset" value="<?php echo (isset( $val['reset_label'] ) && $val['reset_label'] != '') ? esc_attr( $val['reset_label'] ) : __( 'Reset',
|
157 |
<?php }?>
|
158 |
<span class="ufbl-form-loader" style="display:none"></span>
|
159 |
</div>
|
@@ -171,7 +171,7 @@ $form_width = (isset( $form_design['form_width'] ) && $form_design['form_width']
|
|
171 |
$num2 = rand( 0, 9 );
|
172 |
?>
|
173 |
<div class="ufbl-math-captcha-wrap">
|
174 |
-
<span class="ufbl-captcha-num"><?php echo $num1; ?></span> + <span><?php echo $num2; ?></span> = <input type="text" name="<?php echo $key; ?>" class="ufbl-math-captcha-ans" placeholder="<?php echo (isset( $val['placeholder'] ) && $val['placeholder'] != '') ? esc_attr( $val['placeholder'] ) : __( 'Enter Sum',
|
175 |
<input type="hidden" name="<?php echo $key ?>_num_1" value="<?php echo $num1 ?>"/>
|
176 |
<input type="hidden" name="<?php echo $key ?>_num_2" value="<?php echo $num2 ?>"/>
|
177 |
</div>
|
7 |
?>
|
8 |
<div class="ufbl-form-wrapper <?php echo $form_template_class; ?>" style="width:<?php echo $form_width; ?>;">
|
9 |
<form method="post" action="" class="ufbl-front-form">
|
10 |
+
<?php if ( !isset( $form_design['hide_form_title'] ) ) { ?><div class="ufbl-form-title"><?php echo (isset( $form_row['form_title'] ) && $form_row['form_title'] != '') ? esc_attr( $form_row['form_title'] ) : __( 'Contact Form', 'ultimate-form-builder-lite' ); ?></div><?php } ?>
|
11 |
<?php do_action( 'ufbl_form_start' ); ?>
|
12 |
<input type="hidden" name="form_id" value="<?php echo $form_row['form_id']; ?>" class="form-id"/>
|
13 |
<?php
|
151 |
?>
|
152 |
<div class="ufbl-form-field-wrap <?php echo ($val['field_class'] != '') ? esc_attr( $val['field_class'] ) : ''; ?>" <?php echo ($val['field_id'] != '') ? 'id="' . esc_attr( $val['field_id'] ) . '"' : ''; ?>>
|
153 |
<div class="ufbl-form-field">
|
154 |
+
<input type="submit" class="ufbl-form-submit" name="<?php echo $key; ?>" value="<?php echo (isset( $val['button_label'] ) && $val['button_label'] != '') ? esc_attr( $val['button_label'] ) : __( 'Submit', 'ultimate-form-builder-lite' ); ?>"/>
|
155 |
<?php if(isset($val['show_reset_button'])){?>
|
156 |
+
<input type="reset" class="ufbl-form-reset" value="<?php echo (isset( $val['reset_label'] ) && $val['reset_label'] != '') ? esc_attr( $val['reset_label'] ) : __( 'Reset', 'ultimate-form-builder-lite' ); ?>"/>
|
157 |
<?php }?>
|
158 |
<span class="ufbl-form-loader" style="display:none"></span>
|
159 |
</div>
|
171 |
$num2 = rand( 0, 9 );
|
172 |
?>
|
173 |
<div class="ufbl-math-captcha-wrap">
|
174 |
+
<span class="ufbl-captcha-num"><?php echo $num1; ?></span> + <span><?php echo $num2; ?></span> = <input type="text" name="<?php echo $key; ?>" class="ufbl-math-captcha-ans" placeholder="<?php echo (isset( $val['placeholder'] ) && $val['placeholder'] != '') ? esc_attr( $val['placeholder'] ) : __( 'Enter Sum', 'ultimate-form-builder-lite' ); ?>"/>
|
175 |
<input type="hidden" name="<?php echo $key ?>_num_1" value="<?php echo $num1 ?>"/>
|
176 |
<input type="hidden" name="<?php echo $key ?>_num_2" value="<?php echo $num2 ?>"/>
|
177 |
</div>
|
inc/views/frontend/preview-form.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<html>
|
2 |
<head>
|
3 |
-
<title><?php _e( 'Form Preview',
|
4 |
<?php wp_head(); ?>
|
5 |
<style>
|
6 |
body:before{display:none !important;}
|
@@ -11,9 +11,9 @@
|
|
11 |
</head>
|
12 |
<body>
|
13 |
<div class="ufbl-preview-title-wrap">
|
14 |
-
<div class="ufbl-preview-title"><?php _e( 'Preview Mode',
|
15 |
</div>
|
16 |
-
<div class="ufbl-preview-note"><?php _e( 'This is just the basic preview and it may look different when used in frontend as per your theme\'s styles.',
|
17 |
<div class="ufbl-form-preview-wrap">
|
18 |
<?php
|
19 |
$form_id = sanitize_text_field( $_GET['ufbl_form_id'] );
|
1 |
<html>
|
2 |
<head>
|
3 |
+
<title><?php _e( 'Form Preview', 'ultimate-form-builder-lite' ); ?></title>
|
4 |
<?php wp_head(); ?>
|
5 |
<style>
|
6 |
body:before{display:none !important;}
|
11 |
</head>
|
12 |
<body>
|
13 |
<div class="ufbl-preview-title-wrap">
|
14 |
+
<div class="ufbl-preview-title"><?php _e( 'Preview Mode', 'ultimate-form-builder-lite' ); ?></div>
|
15 |
</div>
|
16 |
+
<div class="ufbl-preview-note"><?php _e( 'This is just the basic preview and it may look different when used in frontend as per your theme\'s styles.', 'ultimate-form-builder-lite' ); ?></div>
|
17 |
<div class="ufbl-form-preview-wrap">
|
18 |
<?php
|
19 |
$form_id = sanitize_text_field( $_GET['ufbl_form_id'] );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, form builder, form, forms, contact forms, enquiry forms, for
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,6 +95,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
|
|
|
|
|
|
98 |
= 1.0.2 =
|
99 |
* Fixed small css bug
|
100 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 1.0.3 =
|
99 |
+
* Updated text domain to match plugin's slug
|
100 |
+
|
101 |
= 1.0.2 =
|
102 |
* Fixed small css bug
|
103 |
|
ultimate-form-builder-lite.php
CHANGED
@@ -6,22 +6,22 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
-
Version: 1.0.
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
13 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
14 |
Domain Path: /languages
|
15 |
-
Text Domain:
|
16 |
*/
|
17 |
|
18 |
/**
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
-
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.0.
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
-
defined( 'UFBL_TD' ) or define( 'UFBL_TD', '
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
26 |
defined( 'UFBL_JS_DIR' ) or define( 'UFBL_JS_DIR', plugin_dir_url( __FILE__ ) . 'js' ); //plugin js directory
|
27 |
defined( 'UFBL_CSS_DIR' ) or define( 'UFBL_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' ); // plugin css dir
|
@@ -121,7 +121,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
121 |
* Starts session
|
122 |
*/
|
123 |
function ufbl_init() {
|
124 |
-
load_plugin_textdomain(
|
125 |
if ( !session_id() && !headers_sent() ) {
|
126 |
session_start(); //starts session if already not started
|
127 |
}
|
@@ -132,12 +132,12 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
132 |
* Adds Plugin menu in wordpress backend
|
133 |
*/
|
134 |
function ufbl_menu() {
|
135 |
-
add_menu_page( __( 'Forms',
|
136 |
-
add_submenu_page( UFBL_SLUG, isset( $_GET['form_id'] ) ? __( 'Edit Form',
|
137 |
-
add_submenu_page( UFBL_SLUG, __( 'New Form',
|
138 |
-
add_submenu_page( UFBL_SLUG, __( 'Form Entries',
|
139 |
-
add_submenu_page( UFBL_SLUG, __( 'How to use',
|
140 |
-
add_submenu_page( UFBL_SLUG, __( 'About',
|
141 |
}
|
142 |
|
143 |
/**
|
@@ -150,7 +150,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
150 |
if ( $data['form_row'] != null ) {
|
151 |
$this->library->load_view( 'backend/form-builder', $data );
|
152 |
} else {
|
153 |
-
die( __( 'No form found for this form id.Please go back and create a new form.',
|
154 |
}
|
155 |
} else {
|
156 |
$forms = $this->model->get_all_forms();
|
@@ -198,7 +198,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
198 |
wp_enqueue_script( 'ufbl-custom-select-js', UFBL_JS_DIR . '/jquery.selectbox-0.2.min.js', array( 'jquery' ), UFBL_VERSION );
|
199 |
wp_enqueue_script( 'ufbl-front-js', UFBL_JS_DIR . '/frontend.js', array( 'jquery','ufbl-custom-select-js' ), UFBL_VERSION );
|
200 |
$frontend_js_obj = array(
|
201 |
-
'default_error_message' => __( 'This field is required',
|
202 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
203 |
'ajax_nonce' => wp_create_nonce( 'frontend-ajax-nonce' )
|
204 |
);
|
@@ -312,17 +312,17 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
312 |
|
313 |
$form_html = $this->generate_form( $form_row );
|
314 |
} else {
|
315 |
-
$close_message = isset( $atts['close_message'] ) ? $atts['close_message'] : __( 'This form is closed',
|
316 |
$form_html = '<p>' . $close_message . '</p>';
|
317 |
}
|
318 |
} else {
|
319 |
-
$form_html = '<p>' . __( 'Form couldn\'t be found for id ',
|
320 |
}
|
321 |
|
322 |
|
323 |
return $form_html;
|
324 |
} else {
|
325 |
-
return __( 'Form ID missing',
|
326 |
}
|
327 |
}
|
328 |
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
+
Version: 1.0.3
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
13 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
14 |
Domain Path: /languages
|
15 |
+
Text Domain: ultimate-form-builder-lite
|
16 |
*/
|
17 |
|
18 |
/**
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
+
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.0.3' ); //plugin version
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
+
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
26 |
defined( 'UFBL_JS_DIR' ) or define( 'UFBL_JS_DIR', plugin_dir_url( __FILE__ ) . 'js' ); //plugin js directory
|
27 |
defined( 'UFBL_CSS_DIR' ) or define( 'UFBL_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' ); // plugin css dir
|
121 |
* Starts session
|
122 |
*/
|
123 |
function ufbl_init() {
|
124 |
+
load_plugin_textdomain( 'ultimate-form-builder-lite', false, basename( dirname( __FILE__ ) ) . '/languages' ); //Loads plugin text domain for the translation
|
125 |
if ( !session_id() && !headers_sent() ) {
|
126 |
session_start(); //starts session if already not started
|
127 |
}
|
132 |
* Adds Plugin menu in wordpress backend
|
133 |
*/
|
134 |
function ufbl_menu() {
|
135 |
+
add_menu_page( __( 'Forms', 'ultimate-form-builder-lite' ), __( 'Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ),'dashicons-welcome-widgets-menus',35.7 );
|
136 |
+
add_submenu_page( UFBL_SLUG, isset( $_GET['form_id'] ) ? __( 'Edit Form', 'ultimate-form-builder-lite' ) : __( 'All Forms', 'ultimate-form-builder-lite' ), __( 'All Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ) );
|
137 |
+
add_submenu_page( UFBL_SLUG, __( 'New Form', 'ultimate-form-builder-lite' ), __( 'New Form', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-new-form', array( $this, 'add_new_form' ) );
|
138 |
+
add_submenu_page( UFBL_SLUG, __( 'Form Entries', 'ultimate-form-builder-lite' ), __( 'Form Entries', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-form-entries', array( $this, 'forms_entries' ) );
|
139 |
+
add_submenu_page( UFBL_SLUG, __( 'How to use', 'ultimate-form-builder-lite' ), __( 'How to use', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-how-to-use', array( $this, 'how_to_use' ) );
|
140 |
+
add_submenu_page( UFBL_SLUG, __( 'About', 'ultimate-form-builder-lite' ), __( 'About', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-about', array( $this, 'about' ) );
|
141 |
}
|
142 |
|
143 |
/**
|
150 |
if ( $data['form_row'] != null ) {
|
151 |
$this->library->load_view( 'backend/form-builder', $data );
|
152 |
} else {
|
153 |
+
die( __( 'No form found for this form id.Please go back and create a new form.', 'ultimate-form-builder-lite' ) );
|
154 |
}
|
155 |
} else {
|
156 |
$forms = $this->model->get_all_forms();
|
198 |
wp_enqueue_script( 'ufbl-custom-select-js', UFBL_JS_DIR . '/jquery.selectbox-0.2.min.js', array( 'jquery' ), UFBL_VERSION );
|
199 |
wp_enqueue_script( 'ufbl-front-js', UFBL_JS_DIR . '/frontend.js', array( 'jquery','ufbl-custom-select-js' ), UFBL_VERSION );
|
200 |
$frontend_js_obj = array(
|
201 |
+
'default_error_message' => __( 'This field is required', 'ultimate-form-builder-lite' ),
|
202 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
203 |
'ajax_nonce' => wp_create_nonce( 'frontend-ajax-nonce' )
|
204 |
);
|
312 |
|
313 |
$form_html = $this->generate_form( $form_row );
|
314 |
} else {
|
315 |
+
$close_message = isset( $atts['close_message'] ) ? $atts['close_message'] : __( 'This form is closed', 'ultimate-form-builder-lite' );
|
316 |
$form_html = '<p>' . $close_message . '</p>';
|
317 |
}
|
318 |
} else {
|
319 |
+
$form_html = '<p>' . __( 'Form couldn\'t be found for id ', 'ultimate-form-builder-lite' ) . $form_id . '</p>';
|
320 |
}
|
321 |
|
322 |
|
323 |
return $form_html;
|
324 |
} else {
|
325 |
+
return __( 'Form ID missing', 'ultimate-form-builder-lite' );
|
326 |
}
|
327 |
}
|
328 |
|