<div class="reveal tiny" id="addFolder" data-reveal>
    <div class="row">
        <div class="columns">
            <h3><?php echo $view['translator']->trans('media.dir.form.directory_name', [], 'media'); ?></h3>
            <?php echo $view['form']->start($addFolderForm); ?>
            <div class="formAlert"><?php echo $view['form']->errors($addFolderForm['name']); ?></div>
            <?php echo $view['form']->widget($addFolderForm['name'], [
                'attr' => [
                    'class' => ($addFolderForm['name']->vars['attr']['class'] ?? '') . (! $addFolderForm['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.dir.form.create', [], 'media'); ?></button>
            </div>
            <?php echo $view['form']->end($addFolderForm); ?>
        </div>
    </div>
    <button class="close-button" data-close aria-label="Close modal" type="button"><span aria-hidden="true">&times;</span></button>
</div>
