Ejemplo n.º 1
0
 public function buildForm()
 {
     $this->add('language_id', 'choice', ['choices' => $this->data, 'label' => trans('admin.fields.page.language_id')])->add('title', 'text', ['label' => trans('admin.fields.page.title')])->add('content', 'textarea', ['label' => trans('admin.fields.page.content')])->add('description', 'text', ['label' => trans('admin.fields.page.description')])->add('image', 'file', ['label' => trans('admin.fields.article.image')]);
     parent::buildForm();
 }
Ejemplo n.º 2
0
 public function buildForm()
 {
     $this->add('title', 'text', ['label' => trans('admin.fields.article.title')])->add('category_id', 'choice', ['choices' => $this->data, 'label' => trans('admin.fields.article.category_id')])->add('content', 'textarea', ['label' => trans('admin.fields.article.content')])->add('image', 'file', ['label' => trans('admin.fields.article.image'), 'wrapper' => ['class' => 'form-group col-md-6']])->add('published_at', 'date', ['label' => trans('admin.fields.published_at'), 'wrapper' => ['class' => 'form-group col-md-6']]);
     parent::buildForm();
 }
Ejemplo n.º 3
0
 public function buildForm()
 {
     $this->add('title', 'text', ['label' => trans('admin.fields.language.title')])->add('code', 'text', ['label' => trans('admin.fields.language.code')])->add('site_title', 'text', ['label' => trans('admin.fields.language.site_title')])->add('site_description', 'text', ['label' => trans('admin.fields.language.site_description')])->add('flag', 'file', ['label' => trans('admin.fields.language.flag'), 'attr' => ['class' => '']]);
     parent::buildForm();
 }
Ejemplo n.º 4
0
 public function buildForm()
 {
     $this->add('name', 'text', ['label' => trans('admin.fields.user.name')])->add('email', 'email', ['label' => trans('admin.fields.user.email')])->add('password', 'repeated', ['type' => 'password', 'second_name' => 'password_confirmation', 'first_options' => ['label' => trans('admin.fields.user.password'), 'attr' => ['placeholder' => 'Enter Password']], 'second_options' => ['label' => trans('admin.fields.user.password_confirmation'), 'attr' => ['placeholder' => 'Repeat Password']]])->add('picture', 'file', ['label' => trans('admin.fields.user.picture'), 'attr' => ['class' => '']]);
     parent::buildForm();
 }
Ejemplo n.º 5
0
 public function buildForm()
 {
     $this->add('email', 'text', ['label' => trans('admin.fields.setting.email')])->add('facebook', 'text', ['label' => trans('admin.fields.setting.facebook')])->add('twitter', 'text', ['label' => trans('admin.fields.setting.twitter')])->add('analytics_id', 'text', ['label' => trans('admin.fields.setting.analytics_id')])->add('disqus_shortname', 'text', ['label' => trans('admin.fields.setting.disqus_shortname')])->add('logo', 'file', ['label' => trans('admin.fields.setting.logo'), 'attr' => ['class' => '']]);
     parent::buildForm();
 }