partial('partials/form-element.phtml', array(
'element' => $this->formElement($item, 'custom_field_' . $item['id']),
)); ?>
_('Product Attribute'); ?>
_('Required'); ?>
_('Searchable'); ?>
_('Categories:'); ?>
getTable()->select()
->where('id IN (?)', \Ppb\Utility::unserialize($item['category_ids']));
$multiOptions = $categoriesService->getMultiOptions($select);
echo implode('; ', $multiOptions);
}
else {
echo $this->_('All Categories');
} ?>
|
formElement('text', 'order_id')
->setAttributes(array('class' => 'form-control'))
->setMultiple()
->setValue($item['order_id'])
->render();
?>
|
formElement('hidden', 'id')
->setMultiple()
->setValue($item['id'])
->render();
?>
formElement('checkbox', 'active')
->setValue($item['active'])
->setMultiOptions(array(1 => null))
->setBrackets('[' . $checkboxCounter . ']')
->setMultiple()
->render();
?>
|
|