mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21695 Choice module now uses new help strings
AMOS BEGIN HLP choice/limit.html,[limitanswers_help,mod_choice] HLP choice/options.html,[choiceoptions_help,mod_choice] HLP choice/timerestrict.html,[timerestrict_help,mod_choice] AMOS END
This commit is contained in:
parent
194dd279cc
commit
80de705fcb
6 changed files with 4 additions and 35 deletions
|
@ -81,5 +81,6 @@ $string['spaceleft'] = 'space available';
|
|||
$string['spacesleft'] = 'spaces available';
|
||||
$string['taken'] = 'Taken';
|
||||
$string['timerestrict'] = 'Restrict answering to this time period';
|
||||
$string['timerestrict_help'] = 'This setting allows you to define a time window within which participants are allowed to make a choice. To set an open-ended close date just set the time very far in the future. If you don\'t need this at all then uncheck the box.';
|
||||
$string['viewallresponses'] = 'View {$a} responses';
|
||||
$string['yourselection'] = 'Your selection';
|
||||
|
|
|
@ -33,7 +33,7 @@ class mod_choice_mod_form extends moodleform_mod {
|
|||
$menuoptions[1] = get_string('enable');
|
||||
$mform->addElement('header', 'timerestricthdr', get_string('limit', 'choice'));
|
||||
$mform->addElement('select', 'limitanswers', get_string('limitanswers', 'choice'), $menuoptions);
|
||||
$mform->addHelpButton('limitanswers', 'choice');
|
||||
$mform->addHelpButton('limitanswers', 'limitanswers', 'choice');
|
||||
|
||||
if ($this->_instance){
|
||||
$repeatno = $DB->count_records('choice_options', array('choiceid'=>$this->_instance));
|
||||
|
@ -47,7 +47,7 @@ class mod_choice_mod_form extends moodleform_mod {
|
|||
$repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0);
|
||||
$mform->setType('limit', PARAM_INT);
|
||||
|
||||
$repeateloptions['option']['helpbutton'] = array('options', get_string('modulenameplural', 'choice'), 'choice');
|
||||
$repeateloptions['option']['helpbutton'] = array('choiceoptions', get_string('modulenameplural', 'choice'), 'choice');
|
||||
$mform->setType('option', PARAM_CLEAN);
|
||||
|
||||
$mform->setType('optionid', PARAM_INT);
|
||||
|
@ -61,7 +61,7 @@ class mod_choice_mod_form extends moodleform_mod {
|
|||
//-------------------------------------------------------------------------------
|
||||
$mform->addElement('header', 'timerestricthdr', get_string('timerestrict', 'choice'));
|
||||
$mform->addElement('checkbox', 'timerestrict', get_string('timerestrict', 'choice'));
|
||||
$mform->setHelpButton('timerestrict', array("timerestrict", get_string("timerestrict","choice"), "choice"));
|
||||
$mform->addHelpButton('timerestrict', 'timerestrict', 'choice');
|
||||
|
||||
|
||||
$mform->addElement('date_time_selector', 'timeopen', get_string("choiceopen", "choice"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue