Example #1
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);
 }
Example #2
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);
 }
Example #3
0
 /**
  * Class constructor
  *
  * @param string $name
  *
  * @access public
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->setRepeating(true);
     $this->setSortable(true);
     $this->setLabel(Translate::translate('Gallery'));
     $upload = new Upload('image');
     $upload->setLabel(Translate::translate('Image'));
     $this->addControl($upload);
 }
Example #4
0
 /**
  * Class constructor
  *
  * @param string $name
  *
  * @access public
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->setRepeating(true);
     $this->setSortable(true);
     $this->setLabel(Translate::translate('Attachments'));
     $upload = new Upload('attachment');
     $upload->setLabel(Translate::translate('File'));
     $this->addControl($upload);
 }