<?php
/**
 * Provide an admin view for Category editing
 *
 * @since      1.0.0
 *
 * @package    PersonalizeWP
 * @subpackage PersonalizeWP/Admin/Partials
 */

namespace PersonalizeWP\Admin\Partials;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

?>

<main class="flow">
	<h2 class="section-title">
		<?php
		echo esc_html(
			sprintf(
				/* translators: 1: %s category name. */
				__( 'Edit Category: %s', 'personalizewp' ),
				$category->name
			)
		);
		?>
	</h2>
	<div class="section-description">
		<p><?php esc_html_e( 'Edit the category details using the form below. When finished, click on Save to update the category.', 'personalizewp' ); ?></p>
	</div>

	<form action="<?php echo esc_url( $category->edit_url ); ?>" method="post" accept-charset="UTF-8" class="pwp-form flow">
		<?php
			wp_nonce_field( 'category-update-' . $category->id );
			$modal_mode = false;
			require_once __DIR__ . '/_form.php';
		?>
	</form>
</main>
