<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<tr>
	<td>
		<label for="field_options_locale_<?php echo absint( $field['id'] ); ?>">
			<?php esc_html_e( 'Calendar Localization', 'formidable-pro' ); ?>
		</label>
	</td>
	<td class="frm-p-0">
		<select name="field_options[locale_<?php echo absint( $field['id'] ); ?>]" id="field_options_locale_<?php echo absint( $field['id'] ); ?>" class="frm-w-full">
			<?php
			foreach ( $locales as $locale_key => $locale ) {
				?>
				<option value="<?php echo esc_attr( $locale_key ); ?>" <?php selected( isset( $field['locale'] ) && $field['locale'] === $locale_key ); ?>>
					<?php echo esc_html( $locale ); ?>
				</option>
			<?php } ?>
		</select>
	</td>
</tr>

<?php if ( ! empty( $upgrade_data ) ) { ?>
<tr>
	<td>
		<?php esc_attr_e( 'Add blackout dates, inline datepickers, dynamic start and end dates, and date calculations.', 'formidable-pro' ); ?>
	</td>
	<td>
		<a href="javascript:void(0)" class="frm_show_upgrade<?php echo esc_attr( $class ); ?>" <?php FrmAppHelper::array_to_html_params( $upgrade_data, true ); ?>>
			<?php FrmAppHelper::icon_by_class( 'frmfont frm_plus1_icon frm_add_tag frm_svg14' ); ?>
			<?php esc_html_e( 'More Datepicker Options', 'formidable-pro' ); ?>
		</a>
	</td>
</tr>
<?php } ?>
