Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 protected function configure(Form $form)
 {
     parent::configure($form);
     $form->addUpload('images', 'locale.form.images', true)->setRequired('locale.form.images_required');
 }