Replace datepicker[date] by DatePicker[Date] to fix f246e7278e

1.10.x
Yannick Warnier 10 years ago
parent 23524307e6
commit b75beaf45b
  1. 2
      main/admin/user_add.php
  2. 2
      main/admin/user_edit.php
  3. 2
      main/course_progress/thematic_advance.php
  4. 2
      main/inc/lib/extra_field.lib.php
  5. 4
      main/inc/lib/formvalidator/FormValidator.class.php
  6. 2
      main/mySpace/user_add.php
  7. 4
      main/newscorm/lp_add.php
  8. 4
      main/newscorm/lp_edit.php
  9. 4
      main/wiki/wiki.inc.php

@ -235,7 +235,7 @@ $form->addGroup($group, 'mail', get_lang('SendMailToNewUser'), ' ');
$form->addElement('radio', 'radio_expiration_date', get_lang('ExpirationDate'), get_lang('NeverExpires'), 0);
$group = array ();
$group[] = $form->createElement('radio', 'radio_expiration_date', null, get_lang('On'), 1);
$group[] = $form->createElement('datepicker', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$group[] = $form->createElement('DatePicker', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$form->addGroup($group, 'max_member_group', null, '', false);
// Active account or inactive account
$form->addElement('radio', 'active', get_lang('ActiveAccount'), get_lang('Active'), 1);

@ -263,7 +263,7 @@ if (!$user_data['platform_admin']) {
$form->addElement('radio', 'radio_expiration_date', get_lang('ExpirationDate'), get_lang('NeverExpires'), 0);
$group = array ();
$group[] = $form->createElement('radio', 'radio_expiration_date', null, get_lang('On'), 1);
$group[] = $form->createElement('datepicker', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$group[] = $form->createElement('DatePickerDate', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$form->addGroup($group, 'max_member_group', null, '', false);
// Active account or inactive account

@ -47,7 +47,7 @@ if ($action == 'thematic_advance_add' || $action == 'thematic_advance_edit') {
$form->addElement('html', '<div id="div_custom_datetime" style="display:none">');
}
$form->addElement('datepicker', 'custom_start_date', get_lang('StartDate'), array('form_name'=>'thematic_advance'));
$form->addElement('DatePicker', 'custom_start_date', get_lang('StartDate'), array('form_name'=>'thematic_advance'));
$form->addElement('html', '</div>');
if (isset($thematic_advance_data['attendance_id']) && $thematic_advance_data['attendance_id'] == 0) {

@ -912,7 +912,7 @@ class ExtraField extends Model
break;
case ExtraField::FIELD_TYPE_DATETIME:
$form->addElement(
'datepicker',
'DatePicker',
'extra_'.$field_details['field_variable'],
$field_details['field_display_text'],
array('form_name' => $form_name)

@ -409,7 +409,7 @@ EOT;
*/
function add_datepicker($name, $label)
{
$this->addElement('datepicker', $name, $label, array('form_name' => $this->getAttribute('name')));
$this->addElement('DatePicker', $name, $label, array('form_name' => $this->getAttribute('name')));
$this->_elements[$this->_elementIndex[$name]]->setLocalOption('minYear', 1900); // TODO: Now - 9 years
$this->addRule($name, get_lang('InvalidDate'), 'date');
}
@ -423,7 +423,7 @@ EOT;
*/
public function add_datepickerdate($name, $label)
{
$this->addElement('datepickerdate', $name, $label, array('form_name' => $this->getAttribute('name')));
$this->addElement('DatePickerDate', $name, $label, array('form_name' => $this->getAttribute('name')));
$this->_elements[$this->_elementIndex[$name]]->setLocalOption('minYear', 1900); // TODO: Now - 9 years
$this->addRule($name, get_lang('InvalidDate'), 'date');
}

@ -169,7 +169,7 @@ $form->addGroup($group, 'mail', get_lang('SendMailToNewUser'), '&nbsp;');
$form->addElement('radio', 'radio_expiration_date', get_lang('ExpirationDate'), get_lang('NeverExpires'), 0);
$group = array ();
$group[] = $form->createElement('radio', 'radio_expiration_date', null, get_lang('On'), 1);
$group[] = $form->createElement('datepicker', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$group[] = $form->createElement('DatePicker', 'expiration_date', null, array('form_name' => $form->getAttribute('name'), 'onchange' => 'javascript: enable_expiration_date();'));
$form->addGroup($group, 'max_member_group', null, '', false);
// Active account or inactive account
$form->addElement('radio', 'active', get_lang('ActiveAccount'), get_lang('Active'), 1);

@ -132,13 +132,13 @@ $form -> addElement('html','<div id="options" style="display:none">');
//Start date
$form->addElement('checkbox', 'activate_start_date_check', null, get_lang('EnableStartTime'), array('onclick' => 'activate_start_date()'));
$form->addElement('html','<div id="start_date_div" style="display:block;">');
$form->addElement('datepicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'lp_add'), 5);
$form->addElement('DatePicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'lp_add'), 5);
$form->addElement('html','</div>');
//End date
$form->addElement('checkbox', 'activate_end_date_check', null, get_lang('EnableEndTime'), array('onclick' => 'activate_end_date()'));
$form->addElement('html','<div id="end_date_div" style="display:none;">');
$form->addElement('datepicker', 'expired_on', get_lang('ExpirationDate'), array('form_name'=>'lp_add'), 5);
$form->addElement('DatePicker', 'expired_on', get_lang('ExpirationDate'), array('form_name'=>'lp_add'), 5);
$form->addElement('html','</div>');
$form->addElement('html','</div>');

@ -173,7 +173,7 @@ if ($publicated_on!='0000-00-00 00:00:00' && !empty($publicated_on)) {
}
$form->addElement('html','<div id="start_date_div" style="display:'.$display_date.';">');
$form->addElement('datepicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'form1'), 5);
$form->addElement('DatePicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'form1'), 5);
$form->addElement('html','</div>');
//End date
@ -185,7 +185,7 @@ if ($expired_on!='0000-00-00 00:00:00' && !empty($expired_on)) {
}
$form->addElement('html','<div id="end_date_div" style="display:'.$display_date.';">');
$form->addElement('datepicker', 'expired_on', get_lang('ExpirationDate'), array('form_name'=>'exercise_admin'), 5);
$form->addElement('DatePicker', 'expired_on', get_lang('ExpirationDate'), array('form_name'=>'exercise_admin'), 5);
$form->addElement('html','</div>');
if (api_is_platform_admin()) {

@ -640,7 +640,7 @@ class Wiki
}
$form->addElement('html', '<div id="start_date" style="'.$style.'">');
$form->addElement('datepicker', 'startdate_assig');
$form->addElement('DatePicker', 'startdate_assig');
$form->addElement('html', '</div>');
$form->addElement('checkbox', 'initenddate', null, get_lang('EndDate'), array('id' => 'end_date_toggle'));
@ -652,7 +652,7 @@ class Wiki
}
$form->addElement('html', '<div id="end_date" style="'.$style.'">');
$form->addElement('datepicker', 'enddate_assig');
$form->addElement('DatePicker', 'enddate_assig');
$form->addElement('html', '</div>');
$form->addElement('checkbox', 'delayedsubmit', null, get_lang('AllowLaterSends'));
$form->addElement('text', 'max_text', get_lang('NMaxWords'));

Loading…
Cancel
Save