<div id="frm_form_editor_container" class="<?php echo ( $has_fields ? 'frm-has-fields' : '' ); ?>">

	<?php
	if ( $has_fields ) {
		// Add form messages.
		require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' );
	}
	?>

	<div id="frm-fake-page" class="frm_hidden">
		<div class="frm-page-break">
			<div class="frm-collapse-page button frm-button-secondary">
				<?php
				/* translators: %s: The page number */
				printf( esc_html__( 'Page %s', 'formidable' ), '<span class="frm-page-num">1</span>' );
				?>
				<i class="frm_icon_font frm_arrowdown6_icon"></i>
			</div>
		</div>
	</div>

	<ul id="frm-show-fields" class="frm_sorting inside">
		<?php
		if ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) {
			$values['count'] = 0;
			foreach ( $values['fields'] as $field ) {
				$values['count']++;
				FrmFieldsController::load_single_field( $field, $values );
				unset( $field );
			}
		}
		?>
	</ul>
	<?php FrmAppHelper::renewal_message(); ?>
	<p id="frm-form-button">
		<button class="frm_button_submit" disabled="disabled">
			<?php echo esc_attr( isset( $form->options['submit_value'] ) ? $form->options['submit_value'] : __( 'Submit', 'formidable' ) ); ?>
		</button>
	</p>

	<div class="frm_no_fields">

		<div class="frm_drag_inst">
			<?php esc_html_e( 'Add Fields Here', 'formidable' ); ?>
		</div>
		<p>
			<?php esc_html_e( 'Click or drag a field from the sidebar to add it to your form', 'formidable' ); ?>
		</p>
		<div class="clear"></div>
	</div>
</div>
<?php FrmFieldsHelper::bulk_options_overlay(); ?>
