<?php
/**
 * @var \App\View\AppView $this
 * @var array $params
 * @var string $message
 */
if (!isset($params['escape']) || $params['escape'] !== false) {
    $message = h($message);
}
?>
<button type="button" class="message warning" role="alert" aria-live="polite" onclick="this.classList.add('hidden');" onkeydown="if(event.key==='Enter'||event.key===' ')this.classList.add('hidden');"><?= $message ?></button>
