Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c35064
)
MDL-70373 qtype_essay: missing border on atto input
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 2 Dec 2020 20:08:53 +0000
(20:08 +0000)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 2 Dec 2020 20:09:57 +0000
(20:09 +0000)
question/type/essay/renderer.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/essay/renderer.php
b/question/type/essay/renderer.php
index
2587049
..
9aa0099
100644
(file)
--- a/
question/type/essay/renderer.php
+++ b/
question/type/essay/renderer.php
@@
-264,7
+264,7
@@
class qtype_essay_format_editor_renderer extends plugin_renderer_base {
$this->class_name() . ' qtype_essay_response'));
$output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
$this->class_name() . ' qtype_essay_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');
if (count($formats) == 1) {
$output .= html_writer::start_tag('div');
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.
*/
protected function textarea($response, $lines, $attributes) {
* @return string the HTML for the textarea.
*/
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['cols'] = 60;
return html_writer::tag('textarea', s($response), $attributes);
$attributes['rows'] = $lines;
$attributes['cols'] = 60;
return html_writer::tag('textarea', s($response), $attributes);