Exemplo n.º 1
0
 protected function initialize()
 {
     parent::initialize();
     $permissions = new \Simplify\Form\Element\Checkboxes('permissions', __('Permissões'));
     $permissions->labelField = 'permission_name';
     $this->Form->addElement(new \Simplify\Form\Element\Text('group_name', __('Nome')));
     $this->Form->addElement($permissions, \Simplify\Form::ACTION_LIST | \Simplify\Form::ACTION_EDIT);
 }
Exemplo n.º 2
0
 protected function initialize()
 {
     parent::initialize();
     $this->Form->addElement(new \Simplify\Form\Element\Text('permission_name', __('Nome')));
     $this->Form->addElement(new \Simplify\Form\Element\Textarea('permission_description', __('Descrição')));
 }