mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
mod-feedback MDL-20254 Upgrade feedback module to make use of new navigation blocks
At the same time I also took the oppertunity to fix up the bugs within the feedback module that were making it un-usable
This commit is contained in:
parent
5f4d4d801c
commit
ab5bd34d18
12 changed files with 88 additions and 33 deletions
|
@ -30,7 +30,7 @@ class feedback_item_textarea extends feedback_item_base {
|
|||
$widthAndHeight = explode('|',$item->presentation);
|
||||
$itemwidth = isset($widthAndHeight[0]) ? $widthAndHeight[0] : 30;
|
||||
$itemheight = isset($widthAndHeight[1]) ? $widthAndHeight[1] : 5;
|
||||
$item_form->selectwith->setValue($itemwidth);
|
||||
$item_form->selectwidth->setValue($itemwidth);
|
||||
$item_form->selectheight->setValue($itemheight);
|
||||
|
||||
return $item_form;
|
||||
|
|
|
@ -7,7 +7,7 @@ class feedback_textarea_form extends feedback_item_form {
|
|||
var $requiredcheck;
|
||||
var $itemname;
|
||||
var $itemlabel;
|
||||
var $selectwith;
|
||||
var $selectwidth;
|
||||
var $selectheight;
|
||||
|
||||
function definition() {
|
||||
|
@ -19,7 +19,7 @@ class feedback_textarea_form extends feedback_item_form {
|
|||
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
|
||||
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
|
||||
|
||||
$this->selectwith = $mform->addElement('select',
|
||||
$this->selectwidth = $mform->addElement('select',
|
||||
'itemwidth',
|
||||
get_string('textarea_width', 'feedback').' ',
|
||||
array_slice(range(0,80),5,80,true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue