Пример #1
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendItemForm(Form $form)
 {
     $form->addFields(['url' => ['label' => 'URL', 'comment' => 'Enter the URL above. Leave blank for #', 'type' => 'text', 'tab' => 'Item']], 'primary');
 }
Пример #2
0
 public function extendSettingsForm(Form $form)
 {
     $form->addFields(['noop' => ['type' => 'partial', 'path' => '$/flynsarmy/sociallogin/partials/backend/forms/settings/_google_info.htm', 'tab' => 'Google'], 'providers[Google][enabled]' => ['label' => 'Enabled?', 'type' => 'checkbox', 'default' => 'true', 'tab' => 'Google'], 'providers[Google][app_name]' => ['label' => 'Application Name', 'type' => 'text', 'default' => 'Social Login', 'comment' => 'This appears on the Google login screen. Usually your site name.', 'tab' => 'Google'], 'providers[Google][client_id]' => ['label' => 'Client ID', 'type' => 'text', 'tab' => 'Google'], 'providers[Google][client_secret]' => ['label' => 'Client Secret', 'type' => 'text', 'tab' => 'Google']], 'primary');
 }
Пример #3
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendSettingsForm(Form $form)
 {
     $form->addFields(['blog_post_page' => ['tab' => 'Blog', 'label' => 'Blog Post Page', 'comment' => 'Select the page your blog posts are displayed on', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->pages()]], 'primary');
 }
Пример #4
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendItemForm(Form $form)
 {
     $form->addFields(['master_object_id' => ['label' => 'Page', 'comment' => 'Select the page you wish to link to.', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->pages(), 'tab' => 'Item'], 'data[params]' => ['label' => 'Slug Parameters', 'comment' => 'If a slug uses a parameter such as :slug, enter a value for it here. Enter valid JSON - for example {"slug":"my-page-slug"}', 'type' => 'text', 'options' => DropDownHelper::instance()->pages(), 'tab' => 'Item']], 'primary');
 }
Пример #5
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendItemForm(Form $form)
 {
     $form->addFields(['master_object_id' => ['label' => 'Partial', 'comment' => 'Select the partial you wish to render.', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->partials()]], 'primary');
 }
Пример #6
0
 public function extendSettingsForm(Form $form)
 {
     $form->addFields(['noop' => ['type' => 'partial', 'path' => '$/flynsarmy/sociallogin/partials/backend/forms/settings/_facebook_info.htm', 'tab' => 'Facebook'], 'providers[Facebook][enabled]' => ['label' => 'Enabled?', 'type' => 'checkbox', 'default' => 'true', 'tab' => 'Facebook'], 'providers[Facebook][app_id]' => ['label' => 'App ID', 'type' => 'text', 'tab' => 'Facebook'], 'providers[Facebook][app_secret]' => ['label' => 'App Secret', 'type' => 'text', 'tab' => 'Facebook']], 'primary');
 }
Пример #7
0
 public function extendSettingsForm(Form $form)
 {
     $form->addFields(['noop' => ['type' => 'partial', 'path' => '$/flynsarmy/sociallogin/partials/backend/forms/settings/_twitter_info.htm', 'tab' => 'Twitter'], 'providers[Twitter][enabled]' => ['label' => 'Enabled?', 'type' => 'checkbox', 'default' => 'true', 'tab' => 'Twitter'], 'providers[Twitter][api_key]' => ['label' => 'API Key', 'type' => 'text', 'tab' => 'Twitter'], 'providers[Twitter][api_secret]' => ['label' => 'API Secret', 'type' => 'text', 'tab' => 'Twitter']], 'primary');
 }