mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-70373' of https://github.com/timhunt/moodle
This commit is contained in:
commit
45bbc5a4cf
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ class qtype_essay_format_editor_renderer extends plugin_renderer_base {
|
||||||
$this->class_name() . ' qtype_essay_response'));
|
$this->class_name() . ' qtype_essay_response'));
|
||||||
|
|
||||||
$output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
|
$output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
|
||||||
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60)));
|
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60, 'class' => 'form-control')));
|
||||||
|
|
||||||
$output .= html_writer::start_tag('div');
|
$output .= html_writer::start_tag('div');
|
||||||
if (count($formats) == 1) {
|
if (count($formats) == 1) {
|
||||||
|
@ -455,7 +455,7 @@ class qtype_essay_format_plain_renderer extends plugin_renderer_base {
|
||||||
* @return string the HTML for the textarea.
|
* @return string the HTML for the textarea.
|
||||||
*/
|
*/
|
||||||
protected function textarea($response, $lines, $attributes) {
|
protected function textarea($response, $lines, $attributes) {
|
||||||
$attributes['class'] = $this->class_name() . ' qtype_essay_response';
|
$attributes['class'] = $this->class_name() . ' qtype_essay_response form-control';
|
||||||
$attributes['rows'] = $lines;
|
$attributes['rows'] = $lines;
|
||||||
$attributes['cols'] = 60;
|
$attributes['cols'] = 60;
|
||||||
return html_writer::tag('textarea', s($response), $attributes);
|
return html_writer::tag('textarea', s($response), $attributes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue