<?php /** @var \Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper $translator */
$translator = $view['translator'];
$isEdit = ! is_null($ip->getId());
?>

<div class="row">
    <div class="columns">
        <h3><?php echo $isEdit ? $translator->trans('blocked.form.modal.edit', [], 'blocked') : $translator->trans('blocked.form.modal.new', [], 'blocked'); ?></h3>
        <?php echo $view['form']->start($form); ?>
        <?php echo $view['form']->widget($form); ?>
        <div class="float-right">
            <button type="button" class="button no-margin tiny clear" data-close><?php echo $translator->trans('Form.cancel'); ?></button>
            <button type="submit" class="button no-margin tiny"><?php echo $isEdit ? $translator->trans('Form.send') : $translator->trans('Form.create'); ?></button>
        </div>
        <?php echo $view['form']->end($form); ?>
    </div>
</div>