<div class="reveal tiny move-to-newsletter" id="move-to-newsletter" data-reveal>
    <button type="button" class="close-button" data-close aria-label="Close modal"><span aria-hidden="true">&times;</span></button>
    <h1>Move to newsletter</h1>

    <?php if (! empty([1])): ?>
        <form action="<?php echo $view['router']->path('wi_admin_contact_move_to_newsletter'); ?>" id="move_to_newsletter_form" method="POST">
            <input type="hidden" name="email" id="move_to_newsletter_form_email">
            <div class="option-row">
                <label>Grupa odbiorców</label>
                <div class="option-content">
                    <select name="recipient_group_id">
                    <?php foreach ($recipientGroups as $recipientGroup): ?>
                        <option value="<?php echo $recipientGroup->getId() ?>"><?php echo $recipientGroup->getName(); ?></option>
                    <?php endforeach ?>
                    </select>
                </div>
            </div>

            <div class="option-row">
                <button type="submit" class="button tiny save-as-message"><?php echo $view['translator']->trans('Form.send'); ?></button>
            </div>
        </form>
    <?php else: ?>
        <div class="callout secondary" style="margin-top: 5px;">
            Brak grup odbiorców.
        </div>
    <?php endif ?>
</div>
