protected function setUp() { $this->setEnterTitleHearLabel(Translate::translate('Name and last name')); $text = new Text('email'); $text->setLabel(Translate::translate('E-mail')); $text->setValidation('email'); $this->addControl($text); $text = new Text('affiliation'); $text->setLabel(Translate::translate('Affiliation')); $this->addControl($text); $text_area = new Textarea('contact'); $text_area->setLabel(Translate::translate('Contact')); $this->addControl($text_area); $checkbox = new Checkbox('show_in_team_page'); $checkbox->setLabel(Translate::translate('Show in Team page')); $this->addFilterControl($checkbox); $interests = new Textarea('interests'); $interests->setLabel(Translate::translate('Interests')); $this->addControl($interests); $attachment = new Upload('attachment'); $attachment->setLabel(Translate::translate('Curriculum Vitae')); $this->addControl($attachment); $iamge = new Upload('image'); $iamge->setLabel(Translate::translate('Picture with smile')); $this->addControl($iamge); }
protected function setUp() { $this->setEnterTitleHearLabel(Translate::translate('Name')); $lead = new Textarea('lead'); $lead->setLabel(Translate::translate('Lead')); $this->addControl($lead); $keywords = new Text('keywords'); $keywords->setLabel(Translate::translate('Keywords')); $this->addControl($keywords); $abstract = new Textarea('abstract'); $abstract->setLabel(Translate::translate('Abstract')); $this->addControl($abstract); $text_area = new Textarea('additional_information'); $text_area->setLabel(Translate::translate('Additional information')); $this->addControl($text_area); $select = new Select('publication_year'); $select->setLabel(Translate::translate('Publication year')); $select->setStart(2005); $select->setEnd(date('Y')); $this->addFilterControl($select); $checkbox = new Checkbox('language'); $checkbox->setLabel(Translate::translate('Publication language')); $checkbox->setOptions(array(array('label' => Translate::translate('polish'), 'value' => 'pl'), array('label' => Translate::translate('english'), 'value' => 'en'))); $this->addFilterControl($checkbox); $attachment = new Upload('attachment'); $attachment->setLabel(Translate::translate('Main file')); $this->addControl($attachment); $attachments = new Attachments('attachments'); $this->addControl($attachments); $cover = new Upload('cover'); $cover->setLabel(Translate::translate('Cover')); $this->addControl($cover); }
protected function setUp() { $attachments = new Attachments('attachments'); $this->addControl($attachments); $checkbox = new Checkbox('main_page_promo'); $checkbox->setLabel(Translate::translate('Promotion on main page')); $this->addControl($checkbox); }
protected function setUp() { $attachments = new Attachments('attachments'); $this->addControl($attachments); $checkbox = new Checkbox('main_page_promo'); $checkbox->setLabel(Translate::translate('Promotion on main page')); $this->addControl($checkbox); $place = new Text('place'); $place->setLabel(Translate::translate('Place')); $this->addControl($place); $address = new Text('address'); $address->setLabel(Translate::translate('Event address')); $this->addControl($address); $program = new Group('program'); $program->setLabel(Translate::translate('Program')); $program->setRepeating(true); $program->setSortable(true); $label = new Text('title'); $label->setLabel(Translate::translate('Title')); $program->addControl($label); $description = new Wpeditor('description'); $description->setLabel(Translate::translate('Description')); $program->addControl($description); $this->addControl($program); $start = new Group('start'); $start->setLabel(Translate::translate('Start')); $date = new Date('date_start'); $date->setLabel(Translate::translate('Date start')); $start->addControl($date); $time = new Text('time_start'); $time->setLabel(Translate::translate('Time start')); $start->addControl($time); $this->addControl($start); $end = new Group('end'); $end->setLabel(Translate::translate('End')); $date = new Date('date_end'); $date->setLabel(Translate::translate('Date end')); $end->addControl($date); $time = new Text('time_end'); $time->setLabel(Translate::translate('Time end')); $end->addControl($time); $this->addControl($end); }