mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-3942 - various forum scoring types - patch by Anthony Borrow; merged from MOODLE_19_STABLE
This commit is contained in:
parent
df1c2c71da
commit
13bbe067f0
5 changed files with 305 additions and 31 deletions
|
@ -77,20 +77,23 @@ class mod_forum_mod_form extends moodleform_mod {
|
|||
|
||||
//-------------------------------------------------------------------------------
|
||||
$mform->addElement('header', '', get_string('grade'));
|
||||
$mform->addElement('checkbox', 'assessed', get_string('allowratings', 'forum') , get_string('ratingsuse', 'forum'));
|
||||
|
||||
$mform->addElement('select', 'assessed', get_string('aggregatetype', 'forum') , forum_get_aggregate_types());
|
||||
$mform->setDefault('assessed', 0);
|
||||
$mform->setHelpButton('assessed', array('assessaggregate', get_string('aggregatetype', 'forum'), 'forum'));
|
||||
|
||||
$mform->addElement('modgrade', 'scale', get_string('grade'), false);
|
||||
$mform->disabledIf('scale', 'assessed');
|
||||
$mform->disabledIf('scale', 'assessed', 'eq', 0);
|
||||
|
||||
$mform->addElement('checkbox', 'ratingtime', get_string('ratingtime', 'forum'));
|
||||
$mform->disabledIf('ratingtime', 'assessed');
|
||||
$mform->disabledIf('ratingtime', 'assessed', 'eq', 0);
|
||||
|
||||
$mform->addElement('date_time_selector', 'assesstimestart', get_string('from'));
|
||||
$mform->disabledIf('assesstimestart', 'assessed');
|
||||
$mform->disabledIf('assesstimestart', 'assessed', 'eq', 0);
|
||||
$mform->disabledIf('assesstimestart', 'ratingtime');
|
||||
|
||||
$mform->addElement('date_time_selector', 'assesstimefinish', get_string('to'));
|
||||
$mform->disabledIf('assesstimefinish', 'assessed');
|
||||
$mform->disabledIf('assesstimefinish', 'assessed', 'eq', 0);
|
||||
$mform->disabledIf('assesstimefinish', 'ratingtime');
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue