Skip to content

Commit

Permalink
MDL-70114 mod_data: add border for to textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Brands committed Nov 4, 2020
1 parent 58ba94a commit 4f9f4b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/data/field/textarea/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function display_add_field($recordid = 0, $formdata = null) {
$editor->use_editor($field, $options, $fpoptions);
$str .= '<input type="hidden" name="'.$field.'_itemid" value="'.s($draftitemid).'" />';
$str .= '<div class="mod-data-input">';
$str .= '<div><textarea id="'.$field.'" name="'.$field.'" rows="'.$this->field->param3.'" cols="'.$this->field->param2.'" spellcheck="true">'.s($text).'</textarea></div>';
$str .= '<div><textarea id="'.$field.'" name="'.$field.'" rows="'.$this->field->param3.'" class="form-control" ' .
'cols="'.$this->field->param2.'" spellcheck="true">'.s($text).'</textarea></div>';
$str .= '<div><label class="accesshide" for="' . $field . '_content1">' . get_string('format') . '</label>';
$str .= '<select id="' . $field . '_content1" name="'.$field.'_content1">';
foreach ($formats as $key=>$desc) {
Expand Down

0 comments on commit 4f9f4b2

Please sign in to comment.