Skip to content

Commit

Permalink
MDL-53531 tool_lp: Forms section should not be collapsible at times
Browse files Browse the repository at this point in the history
  • Loading branch information
taboubi authored and Frederic Massart committed Apr 18, 2016
1 parent 6f0c979 commit 66df4d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/tool/lp/classes/form/competency.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public function definition() {
$mform->setConstant('scaleid', $competency->get_scaleid());
}

// Disable short forms.
$mform->setDisableShortforms();
$this->add_action_buttons(true, get_string('savechanges', 'tool_lp'));
}

Expand Down
2 changes: 2 additions & 0 deletions admin/tool/lp/classes/form/plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public function definition() {
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'));
}

Expand Down
2 changes: 2 additions & 0 deletions admin/tool/lp/classes/form/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function definition() {

$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'));

Expand Down
2 changes: 2 additions & 0 deletions admin/tool/lp/classes/form/user_evidence.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function definition() {

$mform->addElement('filemanager', 'files', get_string('userevidencefiles', 'tool_lp'), array(),
$this->_customdata['fileareaoptions']);
// Disable short forms.
$mform->setDisableShortforms();

$this->add_action_buttons();
}
Expand Down

0 comments on commit 66df4d2

Please sign in to comment.