Merge branch 'MDL-39437' of git://github.com/rwijaya/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-05-07 15:50:29 +02:00
commit fc076898c7
3 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,7 @@ $string['continuetonextpage'] = 'Continue to next page.';
$string['correctanswerjump'] = 'Correct answer jump';
$string['correctanswerscore'] = 'Correct answer score';
$string['correctresponse'] = 'Correct response';
$string['createaquestionpage'] = 'Create a question page';
$string['credit'] = 'Credit';
$string['customscoring'] = 'Custom scoring';
$string['customscoring_help'] = 'If enabled, then each answer may be given a numerical point value (positive or negative).';

View File

@ -696,7 +696,7 @@ abstract class lesson_add_page_form_base extends moodleform {
$mform = $this->_form;
$editoroptions = $this->_customdata['editoroptions'];
$mform->addElement('header', 'qtypeheading', get_string('addaquestionpage', 'lesson', get_string($this->qtypestring, 'lesson')));
$mform->addElement('header', 'qtypeheading', get_string('createaquestionpage', 'lesson', get_string($this->qtypestring, 'lesson')));
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);

View File

@ -23,6 +23,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson
@javascript
Scenario: Forbidding lesson accesses until a specified date
Given I add a "Lesson" to section "1"
And I expand all fieldsets
And I click on "id_available_enabled" "checkbox"
And I fill the moodle form with:
| Name | Test lesson |
@ -49,6 +50,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson
@javascript
Scenario: Forbidding lesson accesses until a specified date
Given I add a "Lesson" to section "1"
And I expand all fieldsets
And I click on "id_deadline_enabled" "checkbox"
And I fill the moodle form with:
| Name | Test lesson |