<?php
/**
 * @version 7.9 [rev.7.9.01]
 */
?>
<form action="<?php echo $this->form->getAction(); ?>" method="<?php echo $this->form->getMethod(); ?>"
      id="left-side-search">
    <?php echo $this->form->hiddenElements; ?>
    <ul class="search">
        <?php
        /** @var \Cube\Form\Element $element */
        foreach ($this->form->getElements() as $element) {
            if (!$element->isHidden()) { ?>
                <li>
                    <a><?php echo $element->getLabel(); ?></a>
                    <ul>
                        <li>
                            <?php if ($element->getName() == 'keywords') { ?>
                                <div class="form-group has-feedback">
                                    <?php echo $element->addAttribute('placeholder', 'Search...')->render(); ?>
                                    <span class="glyphicon glyphicon-search btn-icon-search form-control-feedback"></span>
                                </div>
                            <?php }
                            else { ?>
                                <?php echo $element->render(); ?>
                            <?php } ?>
                        </li>
                    </ul>
                </li>
            <?php }
        } ?>
    </ul>
</form>
