form->create(null, ['class' => 'row', 'type' => 'get']);
echo '
';
echo '' . $this->Form->control('uuid', ['label' => __('Banner #'), 'value' => $_GET['uuid'] ?? '']) . '
';
?>
= $this->Form->control('name', ['label' => __('Name'), 'value' => $_GET['name'] ?? '']) ?>
= $this->Form->control('title_link', ['label' => __('Title link'), 'value' => $_GET['title_link'] ?? '']) ?>
= $this->Form->control('url_link', ['label' => __('Url link'), 'value' => $_GET['url_link'] ?? '']) ?>
= $this->Form->control('position', [
'class' => 'form-control select-with-search',
'type' => 'select',
'options' => $positionList,
'value' => $_GET['position'] ?? null
]) ?>
' . $this->Form->control('is_active', ['class' => 'form-control select-with-search', 'type' => 'select', 'options' => ['1' => __('Yes'), '0' => __('No')], 'empty' => __('All'), 'value' => $_GET['is_active'] ?? '']) . '';
echo $this->Form->button('Search');
echo $this->Html->link('Reset', ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'index'], ['class' => 'btn btn-danger float-right']);
echo $this->Form->end() . '
';
?>
| Paginator->sort('Banners.id', ['label' => _('Banner #')]); ?> | Paginator->sort('Banners.image_path', ['label' => _('Image')]); ?> | Paginator->sort('Banners.name', ['label' => _('Name')]); ?> | Paginator->sort('Banners.url_link', ['label' => _('Url link')]); ?> | Paginator->sort('Banners.position', ['label' => _('Position')]); ?> | Paginator->sort('Banners.is_active', ['label' => _('Activ')]); ?> | |
|---|---|---|---|---|---|---|
| uuid); ?> | = $this->Html->image($banner->image_path, ['alt' => 'Banner Image', 'width' => '80', 'height' => '40']); ?> | = $banner->name; ?> | = h($banner->url_link) ?> | = $this->Number->format($banner->position) ?> | Html->link(__('View'), ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'view', $banner->id], ['class' => 'btn btn-info btn-xs']); ?> Html->link(__('Edit'), ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'edit', $banner->id], ['class' => 'btn btn-warning btn-xs']); ?> |
element('paginator'); ?>