<?php
/**
 * Contact
 *
 * Inputs for contact slide.
 *
 * @since   7.0
 *
 * @package WPrequal
 */

namespace WPrequal;

if ( ! defined( 'ABSPATH' ) ) {
	die( 'Access denied!!' );
} ?>

<?php view( 'survey/admin', 'slide-start' ); ?>

<tbody>

	<tr>

		<th scope="row"><label for="contact-form-id"><?php esc_html_e( 'Contact Form', 'wprequal' ); ?></label></th>

		<td><?php wp_dropdown_pages( [
                'post_type'        => 'wpq_contact_form',
                'name'             => 'slide[{key}][contact_form_id]',
                'class'            => 'contact_form_id regular-text wpq-required',
                'id'               => 'contact_form_id',
                'show_option_none' => esc_html( 'Select One' )
            ] ); ?>
        </td>

	</tr>

    <tr>

        <th scope="row"><label for="button-action"><?php esc_html_e( 'Button Action', 'wprequal' ); ?></label></th>

        <td>
            <select id="button-action" name="slide[{key}][button_action]" class="regular-text">
                <option value="<?php echo esc_attr( 'submit-button' ); ?>"><?php esc_html_e( 'Form Submit', 'wprequal' ); ?></option>
                <option value="<?php echo esc_attr( 'next-slide' ); ?>"><?php esc_html_e( 'Next Slide', 'wprequal' ); ?></option>
            </select>

        </td>

    </tr>

</tbody>

<?php view( 'survey/admin', 'slide-end' ); ?>
