<?php
/**
 *
 *
 * @var int    $form_id         Which form we are dealing with.
 * @var int    $field_id        Which field ID we are dealing with.
 * @var string $html_id         Which field html this field has.
 * @var array  $field           Which field object we are dealing with.
 * @var array  $entries         Which entries we are modifying.
 * @var array  $selected_fields Which fields were selected.
 * @var string $view            Which view are in.
 * @var string $placeholder     Placeholder for this field.
 * @var mixed  $form            Form settings.
 */

?>
<select
	id="<?php echo esc_attr( $html_id ); ?>"
	name="field_values[<?php echo esc_attr( $field->id ); ?>]"
	class="gk-gravityactions-edit-field gk-actions-component-select-user__input"
	data-nonce="<?php echo wp_create_nonce( \GravityKit\GravityActions\AJAX::$get_users_nonce_action ); ?>"
	data-ajax-url="<?php echo admin_url( 'admin-ajax.php' ); ?>"
	data-placeholder="<?php esc_attr_e( 'Select a user, leaving empty will empty field.', 'gk-gravityactions' ); ?>"
>
	<option value="">
		<?php if ( ! empty( $placeholder ) ) : ?>
			<?php echo esc_html( $placeholder ); ?>
		<?php endif; ?>
	</option>
</select>