Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 89... Línea 89...
89
            }
89
            }
90
        }
90
        }
Línea 91... Línea 91...
91
 
91
 
92
        $radiotrue = html_writer::empty_tag('input', $trueattributes) .
92
        $radiotrue = html_writer::empty_tag('input', $trueattributes) .
93
                html_writer::tag('label', get_string('true', 'qtype_truefalse'),
93
                html_writer::tag('label', get_string('true', 'qtype_truefalse'),
94
                array('for' => $trueattributes['id'], 'class' => 'ml-1'));
94
                array('for' => $trueattributes['id'], 'class' => 'ms-1'));
95
        $radiofalse = html_writer::empty_tag('input', $falseattributes) .
95
        $radiofalse = html_writer::empty_tag('input', $falseattributes) .
96
                html_writer::tag('label', get_string('false', 'qtype_truefalse'),
96
                html_writer::tag('label', get_string('false', 'qtype_truefalse'),
Línea 97... Línea 97...
97
                array('for' => $falseattributes['id'], 'class' => 'ml-1'));
97
                array('for' => $falseattributes['id'], 'class' => 'ms-1'));
98
 
98
 
99
        $result = '';
99
        $result = '';
Línea 100... Línea 100...
100
        $result .= html_writer::tag('div', $question->format_questiontext($qa),
100
        $result .= html_writer::tag('div', $question->format_questiontext($qa),
101
                array('class' => 'qtext'));
101
                array('class' => 'qtext'));
102
 
102
 
103
        $result .= html_writer::start_tag('fieldset', array('class' => 'ablock'));
103
        $result .= html_writer::start_tag('fieldset', array('class' => 'ablock'));
104
        if (!empty($question->showstandardinstruction)) {
104
        if (!empty($question->showstandardinstruction)) {
105
            $legendclass = '';
105
            $legendclass = '';
106
            $questionnumber = $options->add_question_identifier_to_label(get_string('selectone', 'qtype_truefalse'), true, true);
106
            $questionnumber = $options->add_question_identifier_to_label(get_string('selectone', 'qtype_truefalse'), true, true);
107
        } else {
107
        } else {
108
            $legendclass = 'sr-only';
108
            $legendclass = 'visually-hidden';
109
            $questionnumber = $options->add_question_identifier_to_label(get_string('answer'), true, true);
109
            $questionnumber = $options->add_question_identifier_to_label(get_string('answer'), true, true);
Línea 110... Línea 110...
110
        }
110
        }
111
        $result .= html_writer::tag('legend', $questionnumber,
111
        $result .= html_writer::tag('legend', $questionnumber,
112
            array('class' => 'prompt h6 font-weight-normal ' . $legendclass));
112
            array('class' => 'prompt h6 fw-normal ' . $legendclass));
113
 
113