← All changes
|
classes/views/frm-fields/back-end/field-description.php
+10
-2
6.5.3
→
trunk
View file →
| @@ -1,13 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Field description setting in the form builder. | |
| 4 | + * | |
| 5 | + * @package Formidable | |
| 6 | + * | |
| 7 | + * @var array $field Field data including 'id' and 'description'. | |
| 8 | + */ | |
| 9 | + | |
| 2 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 11 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 12 | } |
| 5 | 13 | ?> |
| 6 | -<p> | |
| 14 | +<p class="frm-flex-col"> | |
| 7 | 15 | <label for="frm_description_<?php echo esc_attr( $field['id'] ); ?>"> |
| 8 | 16 | <?php esc_html_e( 'Field Description', 'formidable' ); ?> |
| 9 | 17 | </label> |
| 10 | - <textarea id="frm_description_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[description_<?php echo esc_attr( $field['id'] ); ?>]" class="frm_long_input" data-changeme="field_description_<?php echo esc_attr( $field['id'] ); ?>"><?php | |
| 18 | + <textarea id="frm_description_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[description_<?php echo esc_attr( $field['id'] ); ?>]" class="frm_long_input" rows="2" data-changeme="field_description_<?php echo esc_attr( $field['id'] ); ?>"><?php | |
| 11 | 19 | echo FrmAppHelper::esc_textarea( $field['description'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 12 | 20 | ?></textarea> |
| 13 | 21 | </p> |