Fix DatePicker attributes.

1.10.x
Julio Montoya 10 years ago
parent e51a039425
commit 067d1b4cab
  1. 3
      main/course_progress/thematic_advance.php
  2. 4
      main/gradebook/lib/fe/linkaddeditform.class.php
  3. 1
      main/inc/lib/formvalidator/FormValidator.class.php
  4. 2
      main/mySpace/user_add.php
  5. 4
      main/newscorm/lp_add.php
  6. 4
      main/newscorm/lp_edit.php

@ -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'));
$form->addElement('html', '</div>');
if (isset($thematic_advance_data['attendance_id']) && $thematic_advance_data['attendance_id'] == 0) {
@ -99,7 +99,6 @@ if ($action == 'thematic_advance_add' || $action == 'thematic_advance_edit') {
} else {
echo '<script> datetime_by_attendance("'.$attendance_select_item_id.'", 0); </script>';
}
}
}

@ -146,10 +146,6 @@ class LinkAddEditForm extends FormValidator
}
}
// ELEMENT: date
//$this->add_datepicker('date',get_lang('Date'));
//$defaults['date'] = ($form_type == self :: TYPE_EDIT ? $link->get_date() : time());
// ELEMENT: description
if ($link->needs_name_and_description()) {
$this->addElement('textarea', 'description', get_lang('Description'), array ('rows' => '3','cols' => '34'));

@ -390,7 +390,6 @@ EOT;
$this->addRule(array($name_1, $name_2), get_lang('StartDateShouldBeBeforeEndDate'), 'date_compare', 'lte');
}
/**
* Adds a progress bar to the form.
*

@ -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('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'));
$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'));
$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'));
$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'));
$form->addElement('html','</div>');
if (api_is_platform_admin()) {

Loading…
Cancel
Save