| Línea 44... |
Línea 44... |
| 44 |
|
44 |
|
| Línea 45... |
Línea 45... |
| 45 |
$value = $qa->get_last_qt_var($question->field($place));
|
45 |
$value = $qa->get_last_qt_var($question->field($place));
|
| 46 |
|
46 |
|
| 47 |
$attributes = [
|
47 |
$attributes = [
|
| 48 |
'id' => $this->box_id($qa, 'p' . $place),
|
48 |
'id' => $this->box_id($qa, 'p' . $place),
|
| 49 |
'class' => 'custom-select place' . $place,
|
49 |
'class' => 'form-select d-inline-block place' . $place,
|
| Línea 50... |
Línea 50... |
| 50 |
];
|
50 |
];
|
| 51 |
$groupclass = 'group' . $group;
|
51 |
$groupclass = 'group' . $group;
|
| Línea 71... |
Línea 71... |
| 71 |
}
|
71 |
}
|
| 72 |
}
|
72 |
}
|
| Línea 73... |
Línea 73... |
| 73 |
|
73 |
|
| 74 |
$label = $options->add_question_identifier_to_label(get_string('blanknumber', 'qtype_gapselect', $place));
|
74 |
$label = $options->add_question_identifier_to_label(get_string('blanknumber', 'qtype_gapselect', $place));
|
| 75 |
// Use non-breaking space instead of 'Choose...'.
|
75 |
// Use non-breaking space instead of 'Choose...'.
|
| 76 |
$selecthtml = html_writer::label($label, $attributes['id'], false, ['class' => 'sr-only']);
|
76 |
$selecthtml = html_writer::label($label, $attributes['id'], false, ['class' => 'visually-hidden']);
|
| 77 |
$selecthtml .= html_writer::select($selectoptions, $qa->get_qt_field_name($fieldname),
|
77 |
$selecthtml .= html_writer::select($selectoptions, $qa->get_qt_field_name($fieldname),
|
| 78 |
$value, ' ', $attributes) . ' ' . $feedbackimage;
|
78 |
$value, ' ', $attributes) . ' ' . $feedbackimage;
|
| 79 |
return html_writer::tag('span', $selecthtml, ['class' => 'control '.$groupclass]);
|
79 |
return html_writer::tag('span', $selecthtml, ['class' => 'control '.$groupclass]);
|