Exemplo n.º 1
0
 protected function setUp()
 {
     $realization_time = new Text('realization_time');
     $realization_time->setLabel(Translate::translate('Realization time'));
     $this->addControl($realization_time);
     $partners = new Wpeditor('partners');
     $partners->setLabel(Translate::translate('Partners'));
     $this->addControl($partners);
     $contact = new Textarea('contact');
     $contact->setLabel(Translate::translate('Contact'));
     $this->addControl($contact);
     $external_url = new Text('external_url');
     $external_url->setLabel(Translate::translate('External URL'));
     $external_url->setValidation('url');
     $this->addControl($external_url);
     $group = new Group('persons');
     $group->setLabel(Translate::translate('Persons engage in project'));
     $group->setSortable(true);
     $group->setRepeating(true);
     $label = new Text('label');
     $label->setLabel(Translate::translate('Label'));
     $group->addControl($label);
     $name = new Text('person');
     $name->setLabel(Translate::translate('Person'));
     $group->addControl($name);
     $this->addControl($group);
     $attachments = new Attachments('attachments');
     $this->addControl($attachments);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 protected function setUp()
 {
     $this->setEnterTitleHearLabel(Translate::translate('Name and last name'));
     $text_area = new Textarea('affiliation');
     $text_area->setLabel(Translate::translate('Affiliation'));
     $this->addControl($text_area);
     $text = new Text('email');
     $text->setLabel(Translate::translate('E-mail'));
     $text->setValidation('email');
     $this->addControl($text);
 }
Exemplo n.º 5
0
 protected function setUp()
 {
     $about = new Textarea('about');
     $about->setLabel(Translate::translate('About'));
     $this->addControl($about);
     $title = new Text('title');
     $title->setLabel(Translate::translate('Title'));
     $this->addControl($title);
     $attachments = new Attachments('attachments');
     $attachments->setLabel(Translate::translate('Attachments'));
     $this->addControl($attachments);
 }