Rename add_select to addSelect

1.10.x
Julio Montoya 11 years ago
parent ec53682a5e
commit a743554ecc
  1. 2
      main/admin/session_add.php
  2. 2
      main/admin/session_edit.php
  3. 2
      main/inc/lib/formvalidator/FormValidator.class.php
  4. 4
      main/link/link_form.class.php

@ -273,7 +273,7 @@ if (intval($countUsers) < 50) {
$form->addRule('coach_username', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('coach_username', get_lang('ThisFieldIsRequired'), 'required');
$form->add_html('<div id="ajax_list_coachs"></div>'); $form->add_html('<div id="ajax_list_coachs"></div>');
$form->add_select('session_category', get_lang('SessionCategory'), $categoriesOptions, array( $form->addSelect('session_category', get_lang('SessionCategory'), $categoriesOptions, array(
'id' => 'session_category', 'id' => 'session_category',
'class' => 'chzn-select', 'class' => 'chzn-select',
'style' => 'width:370px;' 'style' => 'width:370px;'

@ -130,7 +130,7 @@ $form->addElement('select', 'id_coach', get_lang('CoachName'), $coachesOption, a
)); ));
$form->addRule('id_coach', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('id_coach', get_lang('ThisFieldIsRequired'), 'required');
$form->add_select('session_category', get_lang('SessionCategory'), $categoriesOption, array( $form->addSelect('session_category', get_lang('SessionCategory'), $categoriesOption, array(
'id' => 'session_category', 'id' => 'session_category',
'class' => 'chzn-select', 'class' => 'chzn-select',
'style' => 'width:370px;' 'style' => 'width:370px;'

@ -332,7 +332,7 @@ EOT;
* @param string $options * @param string $options
* @param array $attributes * @param array $attributes
*/ */
public function add_select($name, $label, $options = '', $attributes = array()) public function addSelect($name, $label, $options = '', $attributes = array())
{ {
$this->addElement('select', $name, $label, $options, $attributes); $this->addElement('select', $name, $label, $options, $attributes);
} }

@ -87,7 +87,7 @@ class LinkForm extends \FormValidator
foreach ($categories as $category) { foreach ($categories as $category) {
$options[$category->id] = $category->category_title; $options[$category->id] = $category->category_title;
} }
$this->add_select('category_id', get_lang('Category'), $options); $this->addSelect('category_id', get_lang('Category'), $options);
$targets = array( $targets = array(
'_self' => get_lang('LinkOpenSelf'), '_self' => get_lang('LinkOpenSelf'),
@ -95,7 +95,7 @@ class LinkForm extends \FormValidator
'_parent' => get_lang('LinkOpenParent'), '_parent' => get_lang('LinkOpenParent'),
'_top' => get_lang('LinkOpenTop') '_top' => get_lang('LinkOpenTop')
); );
$this->add_select('target', get_lang('LinkTarget'), $targets); $this->addSelect('target', get_lang('LinkTarget'), $targets);
//$help = '<span class="help-block">' . get_lang('AddTargetOfLinkOnHomepage') . '</span>'; //$help = '<span class="help-block">' . get_lang('AddTargetOfLinkOnHomepage') . '</span>';
//$this->add_label('', $help); //$this->add_label('', $help);

Loading…
Cancel
Save