form->create(null, ['class' => 'row', 'type' => 'get']);
echo '
' . $this->Form->control('uuid', ['label' => __('Product #'), 'value' => isset($_GET['uuid']) ? trim($_GET['uuid']) : '']) . '
';
echo '' . $this->Form->control('user_name', ['label' => __('User'), 'type' => 'text', 'value' => isset($_GET['user_name']) ? trim($_GET['user_name']) : '']) . '
';
echo '' . $this->Form->control('cause_name', ['label' => __('Causes'), 'type' => 'text', 'value' => isset($_GET['cause_name']) ? trim($_GET['cause_name']) : '']) . '
';
echo '' . $this->Form->control('product_name', ['label' => __('Product'), 'type' => 'text', 'value' => isset($_GET['product_name']) ? trim($_GET['product_name']) : '']) . '
';
echo ''
. '
';
echo ''
. $this->Form->control('price_start', ['class' => 'form-control', 'templates' => ['inputContainer' => '{{content}}'], 'label' => false, 'type' => 'text', 'value' => isset($_GET['price_start']) ? $_GET['price_start'] : ''])
. '
'
. ' - '
. ''
. $this->Form->control('price_end', ['class' => 'form-control', 'templates' => ['inputContainer' => '{{content}}'], 'label' => false, 'type' => 'text', 'value' => isset($_GET['price_end']) ? $_GET['price_end'] : ''])
. '
'
. '
'
. '
';
echo ''
. $this->Form->control('stock_start', ['class' => 'form-control', 'templates' => ['inputContainer' => '{{content}}'], 'label' => false, 'type' => 'text', 'value' => isset($_GET['stock_start']) ? $_GET['stock_start'] : ''])
. '
'
. ' -
'
. $this->Form->control('stock_end', ['class' => 'form-control', 'templates' => ['inputContainer' => '{{content}}'], 'label' => false, 'type' => 'text', 'value' => isset($_GET['stock_end']) ? $_GET['stock_end'] : ''])
. '
'
. '' . $this->Form->control('is_active', ['class' => ['form-control', 'select-with-search'], 'type' => 'select', 'options' => ['1' => __('Yes'), '0' => __('No')], 'empty' => __('All'), 'value' => isset($_GET['is_active']) ? trim($_GET['is_active']) : '']) . '
';
echo '';
echo $this->Form->button('Search');
echo $this->Html->link('Reset', ['prefix' => 'Admin', 'controller' => 'Products', 'action' => 'index'], ['class' => 'btn btn-danger float-right']);
echo $this->Form->end()
. '
';
?>
| Paginator->sort('Products.uuid', ['label' => _('Product #')]); ?> | Paginator->sort('Products.user_id', ['label' => _('User')]); ?> | Paginator->sort('Products.cause_id', ['label' => _('Cause')]); ?> | Paginator->sort('Products.name', ['label' => _('Name')]); ?> | Paginator->sort('Products.price_min', ['label' => _('Price min')]); ?> | Paginator->sort('Products.price', ['label' => _('Price')]); ?> | Paginator->sort('Products.stock', ['label' => _('Stock')]); ?> | Paginator->sort('Products.tags', ['label' => _('Tags')]); ?> | Paginator->sort('Products.is_price_fixed', ['label' => _('Price fixed')]); ?> | Paginator->sort('Products.is_active', ['label' => _('Activ')]); ?> | Paginator->sort('Products.created', ['label' => _('Created')]); ?> | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| uuid) ?> | user->name; ?> | cause->name); ?> | name) ?> | Number->format($product->price_min, ['precision' => 0, 'after' => ' Lei']); ?> | Number->format($product->price, ['precision' => 0, 'after' => ' Lei']); ?> | Number->format($product->stock); ?> | tags)) { foreach ($product->tags as $tag) { ?> name; ?> | created); ?> | Html->link(__('View'), ['prefix' => 'Admin', 'controller' => 'Products', 'action' => 'view', $product->id], ['class' => 'btn btn-info btn-xs']); ?> Html->link(__('Edit'), ['prefix' => 'Admin', 'controller' => 'Products', 'action' => 'edit', $product->id], ['class' => 'btn btn-warning btn-xs']); ?> is_active) ? __('Disable') : __('Activate'); ?> |
element('paginator'); ?>