/** * Add subscriber, from admin * * @param array $fields * @return Nette\Forms\Form */ public static function subscribeAdminWp($registered = array()) { $form = new Form('addSubscriberAdminWp'); // Wordpress users $form->addMultiSelect('users', 'Wordpress users:', $registered)->setRequired('If you want to add a wordpress registered user, you have to select one first.')->setOption('description', 'If this form is empty, there aren\'t any wordpress registered subscribers to be added.'); // Submit $form->addSubmit('submit', 'Add')->setAttribute('class', 'button-primary'); return $form; }