<?php
/**
 * Revoke url modal template
 *
 * @since      3.1.0
 *
 * @package    PersonalizeWP
 * @subpackage PersonalizeWP/Admin/Partials
 */

namespace PersonalizeWP\Admin\Partials;

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

<dialog id="revokeURLTokenModal" data-url-action class="dialog">
	<ajax-form msg-submitting="<?php esc_attr_e( 'Revoking URL...', 'personalizewp' ); ?>" msg-disappear close-dialog>
		<form method="post" accept-charset="UTF-8" class="pwp-form flow">
			<div class="dialog-header">
				<h5 class="dialog-title"><?php esc_html_e( 'Revoke URL?', 'personalizewp' ); ?></h5>
				<button formnovalidate value="close" type="button" formmethod="dialog">
					<span aria-hidden="true">&times;</span>
					<span class="screen-reader-text"><?php esc_html_e( 'Close', 'personalizewp' ); ?></span>
				</button>
			</div>
			<p><?php esc_html_e( 'Are you sure you want to revoke this URL?', 'personalizewp' ); ?></p>
			<div class="actions">
				<button type="submit" class="primary btn"><?php esc_html_e( 'Revoke URL', 'personalizewp' ); ?></button>
				<button type="button" class="secondary btn" formnovalidate value="close" formmethod="dialog"><?php esc_html_e( 'Cancel', 'personalizewp' ); ?></button>
			</div>

			<div hidden role="status" class="notice-message"></div>
		</form>
	</ajax-form>
</dialog>
