Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle

This commit is contained in:
Sam Hemelryk 2012-04-10 12:34:37 +12:00
commit 5bfeb5ffd3
108 changed files with 390 additions and 216 deletions

View file

@ -343,7 +343,16 @@ class core_backup_renderer extends plugin_renderer_base {
} else {
$description = '';
}
return $this->backup_detail_pair($label, html_writer::empty_tag('input', $attributes+array('name'=>$name, 'type'=>$type, 'value'=>$value)).$description);
if ($type == 'text') {
if (empty($attributes['id'])) {
$attributes['id'] = $name;
}
$label = html_writer::label($name, $attibutes['id'], false, array('class' => 'accesshide'));
} else {
$label = '';
}
return $this->backup_detail_pair($label, $label . html_writer::empty_tag('input', $attributes+array('name'=>$name, 'type'=>$type, 'value'=>$value)).$description);
}
/**