Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 217... Línea 217...
217
 
217
 
218
        return html_writer::link('#', $icon, [
218
        return html_writer::link('#', $icon, [
219
            'role' => 'button',
219
            'role' => 'button',
220
            'tabindex' => 0,
220
            'tabindex' => 0,
221
            'class' => 'feedbacktrigger btn btn-link p-0',
221
            'class' => 'feedbacktrigger btn btn-link p-0',
222
            'data-toggle' => 'popover',
222
            'data-bs-toggle' => 'popover',
223
            'data-container' => 'body',
223
            'data-bs-container' => 'body',
224
            'data-content' => $feedbackcontents,
224
            'data-bs-content' => $feedbackcontents,
225
            'data-placement' => 'right',
225
            'data-bs-placement' => 'right',
226
            'data-trigger' => 'hover focus',
226
            'data-bs-trigger' => 'hover focus',
227
            'data-html' => 'true',
227
            'data-bs-html' => 'true',
228
        ]);
228
        ]);
Línea 229... Línea 229...
229
    }
229
    }
230
 
230
 
Línea 375... Línea 375...
375
            }
375
            }
376
        }
376
        }
Línea 377... Línea 377...
377
 
377
 
378
        $inputattributes = array(
378
        $inputattributes = array(
-
 
379
            'id' => $qa->get_qt_field_name($fieldname),
379
            'id' => $qa->get_qt_field_name($fieldname),
380
            'class' => 'form-select d-inline-block mb-1',
380
        );
381
        );
381
        if ($options->readonly) {
382
        if ($options->readonly) {
382
            $inputattributes['disabled'] = 'disabled';
383
            $inputattributes['disabled'] = 'disabled';
Línea 530... Línea 531...
530
     * @return string HTML to go before all the choices.
531
     * @return string HTML to go before all the choices.
531
     */
532
     */
532
    protected function all_choices_wrapper_start() {
533
    protected function all_choices_wrapper_start() {
533
        $wrapperstart = html_writer::start_tag('fieldset', array('class' => 'answer'));
534
        $wrapperstart = html_writer::start_tag('fieldset', array('class' => 'answer'));
534
        $legendtext = $this->get_answer_label('multichoicex', 'qtype_multianswer');
535
        $legendtext = $this->get_answer_label('multichoicex', 'qtype_multianswer');
535
        $wrapperstart .= html_writer::tag('legend', $legendtext, ['class' => 'sr-only']);
536
        $wrapperstart .= html_writer::tag('legend', $legendtext, ['class' => 'visually-hidden']);
536
        return $wrapperstart;
537
        return $wrapperstart;
537
    }
538
    }
Línea 538... Línea 539...
538
 
539
 
539
    /**
540
    /**
Línea 564... Línea 565...
564
    }
565
    }
Línea 565... Línea 566...
565
 
566
 
566
    protected function all_choices_wrapper_start() {
567
    protected function all_choices_wrapper_start() {
567
        $wrapperstart = html_writer::start_tag('fieldset', ['class' => 'answer']);
568
        $wrapperstart = html_writer::start_tag('fieldset', ['class' => 'answer']);
568
        $captiontext = $this->get_answer_label('multichoicex', 'qtype_multianswer');
569
        $captiontext = $this->get_answer_label('multichoicex', 'qtype_multianswer');
569
        $wrapperstart .= html_writer::tag('legend', $captiontext, ['class' => 'sr-only']);
570
        $wrapperstart .= html_writer::tag('legend', $captiontext, ['class' => 'visually-hidden']);
570
        return $wrapperstart;
571
        return $wrapperstart;
Línea 571... Línea 572...
571
    }
572
    }
572
 
573