Completed
Push — master ( 6571bc...e67e8c )
by Stephanie
03:28
created
classes/views/frm-forms/add_field.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -79,17 +79,17 @@  discard block
 block discarded – undo
79 79
 				</a>
80 80
                 <input type="hidden" value="<?php echo esc_attr( $field['other'] ); ?>" id="other_input_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[other_<?php echo esc_attr( $field['id'] ); ?>]">
81 81
             <?php
82
-            }
82
+			}
83 83
 
84 84
 			if ( ! isset( $field['post_field'] ) || $field['post_field'] != 'post_category' ) {
85
-            ?>
85
+			?>
86 86
 			<a href="<?php echo esc_url( admin_url( 'admin-ajax.php?action=frm_import_choices&field_id=' . $field['id'] . '&TB_iframe=1' ) ) ?>" title="<?php echo esc_attr( FrmAppHelper::truncate( strip_tags( str_replace( '"', '&quot;', $field['name'] ) ), 20 ) . ' ' . __( 'Field Choices', 'formidable' ) ); ?>" class="thickbox frm_orange">
87 87
 				<?php esc_html_e( 'Bulk Edit Options', 'formidable' ); ?>
88 88
 			</a>
89 89
             <?php } ?>
90 90
         </div>
91 91
 <?php
92
-    }
92
+	}
93 93
 ?>
94 94
     </div>
95 95
 <?php
@@ -132,22 +132,22 @@  discard block
 block discarded – undo
132 132
 						<?php esc_html_e( 'Required', 'formidable' ); ?>
133 133
 					</label>
134 134
                 <?php
135
-                }
135
+				}
136 136
 
137 137
 				if ( $display['unique'] ) {
138
-                    if ( ! isset( $field['unique'] ) ) {
139
-                        $field['unique'] = false;
140
-                    }
138
+					if ( ! isset( $field['unique'] ) ) {
139
+						$field['unique'] = false;
140
+					}
141 141
 					?>
142 142
                 <label for="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Unique: Do not allow the same response multiple times. For example, if one user enters \'Joe\', then no one else will be allowed to enter the same name.', 'formidable' ) ?>"><input type="checkbox" name="field_options[unique_<?php echo esc_attr( $field['id'] ) ?>]" id="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" value="1" <?php checked( $field['unique'], 1 ); ?> class="frm_mark_unique" />
143 143
 					<?php esc_html_e( 'Unique', 'formidable' ); ?>
144 144
 				</label>
145 145
                 <?php
146
-                }
146
+				}
147 147
 
148 148
 				if ( $display['read_only'] ) {
149
-                    if ( ! isset( $field['read_only'] ) ) {
150
-                        $field['read_only'] = false;
149
+					if ( ! isset( $field['read_only'] ) ) {
150
+						$field['read_only'] = false;
151 151
 					}
152 152
 					?>
153 153
 				<label for="frm_read_only_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Read Only: Show this field but do not allow the field value to be edited from the front-end.', 'formidable' ) ?>" >
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 				<?php
158 158
 				}
159 159
 
160
-                do_action( 'frm_field_options_form_top', $field, $display, $values );
160
+				do_action( 'frm_field_options_form_top', $field, $display, $values );
161 161
 
162 162
 				if ( $display['required'] ) {
163 163
 				?>
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 						</td>
212 212
 					</tr>
213 213
 				<?php
214
-                }
214
+				}
215 215
 
216 216
 				// Field Size
217 217
 				if ( $display['size'] ) {
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 				do_action( 'frm_field_options_form', $field, $display, $values );
292 292
 
293 293
 				if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) {
294
-                ?>
294
+				?>
295 295
 					<tr class="frm_validation_msg <?php echo ( $display['invalid'] || $field['required'] || FrmField::is_option_true( $field, 'unique' ) || FrmField::is_option_true( $field, 'conf_field' ) ) ? '' : 'frm_hidden'; ?>">
296 296
 					<td colspan="2">
297 297
                     <div class="menu-settings">
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                             <input type="text" name="field_options[blank_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['blank'] ); ?>" />
306 306
                         </p>
307 307
                         <?php
308
-                        }
308
+						}
309 309
 
310 310
 						if ( $display['invalid'] ) {
311 311
 							$hidden = FrmField::is_field_type( $field, 'text' ) && ! FrmField::is_option_true( $field, 'format' );
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
                             <input type="text" name="field_options[unique_msg_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['unique_msg'] ); ?>" />
325 325
                         </p>
326 326
                         <?php
327
-                        }
327
+						}
328 328
 
329 329
 						if ( $display['conf_field'] ) {
330 330
 						?>
Please login to merge, or discard this patch.