MDL-53531 tool_lp: Forms section should not be collapsible at times

This commit is contained in:
Issam Taboubi
2016-04-18 10:58:59 +08:00
committed by Frederic Massart
parent 6f0c979f6e
commit 66df4d2fad
4 changed files with 8 additions and 0 deletions
@@ -104,6 +104,8 @@ class competency extends persistent {
$mform->setConstant('scaleid', $competency->get_scaleid());
}
// Disable short forms.
$mform->setDisableShortforms();
$this->add_action_buttons(true, get_string('savechanges', 'tool_lp'));
}
+2
View File
@@ -78,6 +78,8 @@ class plan extends persistent {
throw new required_capability_exception($context, 'tool/lp:planmanage', 'nopermissions', '');
}
// Disable short forms.
$mform->setDisableShortforms();
$this->add_action_buttons(true, get_string('savechanges', 'tool_lp'));
}
+2
View File
@@ -70,6 +70,8 @@ class template extends persistent {
$mform->addElement('static', 'context', get_string('context', 'core_role'));
$mform->setDefault('context', $context->get_context_name());
// Disable short forms.
$mform->setDisableShortforms();
$this->add_action_buttons(true, get_string('savechanges', 'tool_lp'));
@@ -60,6 +60,8 @@ class user_evidence extends persistent {
$mform->addElement('filemanager', 'files', get_string('userevidencefiles', 'tool_lp'), array(),
$this->_customdata['fileareaoptions']);
// Disable short forms.
$mform->setDisableShortforms();
$this->add_action_buttons();
}