Esempio n. 1
0
 public function executeCreate(sfWebRequest $request)
 {
     $form = new sfGuardGroupForm();
     $form->getWidgetSchema()->offsetSet('users_list', new sfWidgetFormInputHidden());
     $this->form = $form;
     $this->processForm($request, $this->form, array('success', 'Отлично!', 'Одной компанией больше.'), '@companies');
     $this->setTemplate('new');
 }
Esempio n. 2
0
 /**
  * DOCUMENT ME
  */
 public function configure()
 {
     parent::configure();
     // Not scalable
     unset($this['users_list']);
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
     $this->widgetSchema->setHelp('permissions_list', 'The default permissions are appropriate for a group that will be given editing privileges somewhere in the site. Members of the group will be able to author blog posts, upload media and view locked pages but will not have editing privileges for pages until you specifically grant them to that group via "This Page."');
 }
 public function configure()
 {
     parent::configure();
     $this->getWidget('sf_guard_group_permission_list')->setOption("renderer_class", "csWidgetFormSelectDoubleList");
 }
Esempio n. 4
0
 protected function setupInheritance()
 {
     parent::setupInheritance();
     $this->widgetSchema->setNameFormat('sf_moo_doo_group[%s]');
 }
Esempio n. 5
0
 public function configure()
 {
     parent::configure();
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
 }
 public function configure()
 {
     parent::configure();
     unset($this['sf_guard_group_permission_list']);
 }