jpajk
3/31/2017 - 6:58 AM

cake multiple select

cake multiple select

<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Form->postLink(
                __('Usuń'),
                ['action' => 'delete', $publication->id],
                ['confirm' => __('Jesteś pewien, że chcesz usunąć publikację # {0}?', $publication->id)]
            )
        ?></li>
        <li><?= $this->Html->link(__('Lista publikacji'), ['action' => 'index']) ?></li>
    </ul>
</nav>
<div class="publications form large-9 medium-8 columns content">
    <?= $this->Form->create($publication) ?>
    <fieldset>
        <legend><?= __('Edytuj publikację') ?></legend>
        <?php
            echo $this->Form->input('name', ['type' => 'text', 'label' => __('Tytuł')]);
            echo $this->Form->input('en_name', ['value' => $publication['en']['content'], 'type' => 'text', 'label' => 'English title']);
            echo $this->Form->input('length', ['label' => __('Długość')]);
            echo $this->Form->input('reading_time', ['label' => __('Czas czytania')]);
            echo $this->Form->control('tags._ids', [
                'type' => 'select',
                'multiple' => true,
                'options' => $tags,
            ]);
        ?>
    </fieldset>
    <?= $this->Form->button(__('Submit')) ?>
    <?= $this->Form->end() ?>
</div>