mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Merge branch 'MDL-27627-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
91bad7adc1
1 changed files with 2 additions and 2 deletions
|
@ -428,7 +428,7 @@ abstract class moodleform_mod extends moodleform {
|
||||||
|
|
||||||
if (!empty($CFG->enableavailability)) {
|
if (!empty($CFG->enableavailability)) {
|
||||||
// Conditional availability
|
// Conditional availability
|
||||||
$mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
|
$mform->addElement('header', 'availabilityconditionsheader', get_string('availabilityconditions', 'condition'));
|
||||||
$mform->addElement('date_selector', 'availablefrom', get_string('availablefrom', 'condition'), array('optional'=>true));
|
$mform->addElement('date_selector', 'availablefrom', get_string('availablefrom', 'condition'), array('optional'=>true));
|
||||||
$mform->addHelpButton('availablefrom', 'availablefrom', 'condition');
|
$mform->addHelpButton('availablefrom', 'availablefrom', 'condition');
|
||||||
$mform->addElement('date_selector', 'availableuntil', get_string('availableuntil', 'condition'), array('optional'=>true));
|
$mform->addElement('date_selector', 'availableuntil', get_string('availableuntil', 'condition'), array('optional'=>true));
|
||||||
|
@ -522,7 +522,7 @@ abstract class moodleform_mod extends moodleform {
|
||||||
$completion = new completion_info($COURSE);
|
$completion = new completion_info($COURSE);
|
||||||
}
|
}
|
||||||
if ($completion->is_enabled()) {
|
if ($completion->is_enabled()) {
|
||||||
$mform->addElement('header', '', get_string('activitycompletion', 'completion'));
|
$mform->addElement('header', 'activitycompletionheader', get_string('activitycompletion', 'completion'));
|
||||||
|
|
||||||
// Unlock button for if people have completed it (will
|
// Unlock button for if people have completed it (will
|
||||||
// be removed in definition_after_data if they haven't)
|
// be removed in definition_after_data if they haven't)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue