Example #1
0
 protected function configure(Form $form)
 {
     parent::configure($form);
     $form->addText('name', 'locale.form.name')->setRequired('locale.form.name_required');
     $form->addText('url', 'locale.form.video_source_url')->setRequired('locale.form.video_source_url_required');
     $this->tryAutoFill($form, $this->item);
 }
Example #2
0
 protected function configure(Form $form)
 {
     parent::configure($form);
     $form->addText('name', 'locale.form.name')->setRequired('locale.form.name_required');
     $form->addTextArea('perex', 'locale.form.perex')->setRequired('locale.form.perex_required');
     $form->addTextArea('text', 'locale.form.text')->setRequired('locale.form.text_required');
     $this->tryAutoFill($form, $this->item);
 }
Example #3
0
 protected function configure(Form $form)
 {
     parent::configure($form);
     $form->addTextArea('perex', 'locale.form.perex')->setRequired('locale.form.perex_required');
     $form->addTextArea('text', 'locale.form.text')->setRequired('locale.form.text_required');
     $form->addHidden('startTime', date('Y-m-d H:i:s'));
     $this->tryAutoFill($form, $this->item);
 }
Example #4
0
 protected function configure(Form $form)
 {
     parent::configure($form);
     $form->addUpload('images', 'locale.form.images', true)->setRequired('locale.form.images_required');
 }