<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wpps-media-rename-panel" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
	<p class="wpps-current-filename">
		<strong><?php esc_html_e( 'Current filename:', 'wp-powersuite' ); ?></strong><br>
		<code><?php echo esc_html( $current ); ?></code>
	</p>
	<p>
		<label class="wpps-field-label"><?php esc_html_e( 'New filename', 'wp-powersuite' ); ?></label>
		<input type="text" class="widefat wpps-new-filename" value="<?php echo esc_attr( $default_name ?? '' ); ?>" data-default="<?php echo esc_attr( $default_name ?? '' ); ?>" placeholder="<?php esc_attr_e( 'Enter new name (extension optional)', 'wp-powersuite' ); ?>" />
	</p>
	<p>
		<label class="wpps-checkbox-label">
			<input type="checkbox" class="wpps-update-title" value="1" />
			<span><?php esc_html_e( 'Update media title', 'wp-powersuite' ); ?></span>
		</label>
	</p>
	<p class="wpps-rename-actions">
		<button type="button" class="button button-primary wpps-rename-file-btn" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
			<?php esc_html_e( 'Rename File', 'wp-powersuite' ); ?>
		</button>
		<button type="button" class="button wpps-scan-references-btn" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
			<?php esc_html_e( 'Scan References', 'wp-powersuite' ); ?>
		</button>
	</p>
	<div class="wpps-rename-result" style="display:none;"></div>
	<div class="wpps-scan-result" style="display:none;"></div>
</div>
