<div class="reveal tiny" id="rename-form" data-reveal>
    <div class="row">
        <div class="columns">
            <h3><?php echo $view['translator']->trans('media.form.rename', [], 'media'); ?></h3>
            <?php echo $view['form']->start($renameForm); ?>
            <div class="formAlert"><?php echo $view['form']->errors($renameForm['name']); ?></div>
            <?php echo $view['form']->widget($renameForm['name'], [
                'attr' => [
                    'class' => ($renameForm['name']->vars['attr']['class'] ?? '') . (! $renameForm['name']->vars['valid'] ? ' callout alert' : null),
                ],
            ]); ?>
            <div class="float-right">
                <button type="button" class="button no-margin tiny clear" data-close><?php echo $view['translator']->trans('media.dir.form.cancel', [], 'media'); ?></button>
                <button type="submit" class="button no-margin tiny"><?php echo $view['translator']->trans('media.form.save', [], 'media'); ?></button>
            </div>
            <?php echo $view['form']->end($renameForm); ?>
        </div>
    </div>
    <button class="close-button" data-close aria-label="Close modal" type="button"><span aria-hidden="true">&times;</span></button>
</div>
