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();
 }
예제 #2
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')]);
     parent::buildForm();
 }
 public function buildForm()
 {
     $roles = Role::all()->pluck('name', 'id')->toArray();
     $this->add('name_first', 'text', ['label' => "First Name"])->add('name_last', 'text', ['label' => "Last Name"])->add("affiliation_id", "select", ["choices" => $this->parseAffiliationsIntoSelectArray(), "label" => "Affiliation"])->add('rank', 'text', ['label' => "Rank / Position"])->add('role', 'choice', ['choices' => $roles, 'multiple' => false, 'label' => 'Access Level', 'selected' => $this->model ? $this->model->roles[0]->id : null])->add('nomination_limit', 'text', ['label' => "Nomination Limit (Yearly)"])->add('phone', 'text', ['label' => "Phone Number"])->add('email', 'email', ['label' => trans('admin.fields.user.email')])->add('confirmed_email', 'choice', ['choices' => ['N' => "No", 'Y' => "Yes - Confirmed"], 'multiple' => false, 'label' => "Confirmed Email Address"])->add('active', 'choice', ['choices' => ['N' => "No - Deactivated", 'Y' => "Yes - Active"], 'multiple' => false, 'label' => "Account Enabled"])->add('password', 'password', ['label' => trans('admin.fields.user.password'), 'value' => ''])->add('password_confirmation', 'password', ['label' => trans('admin.fields.user.password_confirmation')]);
     parent::buildForm();
 }
 public function buildForm()
 {
     $this->add('published_at', 'date', ['label' => trans('admin.fields.published_at')])->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('description', 'text', ['label' => trans('admin.fields.article.description')]);
     parent::buildForm();
 }
예제 #5
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', 'password', ['label' => trans('admin.fields.user.password')])->add('password_confirmation', 'password', ['label' => trans('admin.fields.user.password_confirmation')])->add('picture', 'file', ['label' => trans('admin.fields.user.picture'), 'attr' => ['class' => '']]);
     parent::buildForm();
 }
 public function buildForm()
 {
     $this->add('email', 'text', ['label' => trans('admin.fields.setting.email')])->add('analytics_id', 'text', ['label' => trans('admin.fields.setting.analytics_id')]);
     parent::buildForm();
 }
 public function buildForm()
 {
     $this->add('language_id', 'choice', ['choices' => $this->data, 'label' => trans('admin.fields.category.language_id')])->add('title', 'text', ['label' => trans('admin.fields.category.title')])->add('color', 'text', ['label' => trans('admin.fields.category.color')])->add('description', 'text', ['label' => trans('admin.fields.category.description')]);
     parent::buildForm();
 }
 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();
 }