MDL-53531 tool_lp: Forms section should not be collapsible at times
This commit is contained in:
committed by
Frederic Massart
parent
6f0c979f6e
commit
66df4d2fad
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user