Form->create('Role');?>
Add Role Form->input('name');?> Form->input('permission', array('type' => 'select', 'options' => $options), array('value' => '3'));?>
Form->input('perm_sync', array('type' => 'checkbox', 'checked' => false));?> Form->input('perm_admin', array('type' => 'checkbox', 'checked' => false));?> Form->input('perm_audit', array('type' => 'checkbox', 'checked' => false));?>
Form->input('perm_auth', array('type' => 'checkbox', 'checked' => false));?> Form->input('perm_site_admin', array('type' => 'checkbox', 'checked' => false));?> Form->input('perm_regexp_access', array('type' => 'checkbox', 'checked' => false));?> Form->input('perm_tagger', array('type' => 'checkbox', 'checked' => false));?>
Form->button('Add', array('class' => 'btn btn-primary')); echo $this->Form->end(); ?>
element('side_menu', array('menuList' => 'admin', 'menuItem' => 'addRole')); $this->Js->get('#RolePermission')->event('change', 'deactivateActions()'); $this->Js->get('#RolePermSync')->event('change', 'checkPerms("RolePermSync")'); $this->Js->get('#RolePermAdmin')->event('change', 'checkPerms("RolePermAdmin")'); $this->Js->get('#RolePermAudit')->event('change', 'checkPerms("RolePermAudit")'); $this->Js->get('#RolePermSiteAdmin')->event('change', 'checkPerms("RolePermSiteAdmin");activateAll();'); $this->Js->get('#RolePermRegexpAccess')->event('change', 'checkPerms("RolePermRegexpAccess")'); $this->Js->get('#RolePermTagger')->event('change', 'checkPerms("RolePermTagger")'); ?> Js->writeBuffer();