Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 668... Línea 668...
668
            $checked = '';
668
            $checked = '';
669
        }
669
        }
670
        $name = 'userselector_' . $name;
670
        $name = 'userselector_' . $name;
671
        // For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
671
        // For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
672
        // It seems that document.getElementById('frog') in IE will return and element with name="frog".
672
        // It seems that document.getElementById('frog') in IE will return and element with name="frog".
673
        $output = '<div class="form-check justify-content-start ml-1"><input type="hidden" name="' . $name . '" value="0" />' .
673
        $output = '<div class="form-check justify-content-start ms-1"><input type="hidden" name="' . $name . '" value="0" />' .
674
                    '<label class="form-check-label" for="' . $name . 'id">' .
674
                    '<label class="form-check-label" for="' . $name . 'id">' .
675
                        '<input class="form-check-input" type="checkbox" id="' . $name . 'id" name="' . $name .
675
                        '<input class="form-check-input" type="checkbox" id="' . $name . 'id" name="' . $name .
676
                            '" value="1"' . $checked . ' /> ' . $label .
676
                            '" value="1"' . $checked . ' /> ' . $label .
677
                    "</label>
677
                    "</label>
678
                   </div>\n";
678
                   </div>\n";
Línea 711... Línea 711...
711
     * @return string
711
     * @return string
712
     */
712
     */
713
    private function output_searchtype_radios(): string {
713
    private function output_searchtype_radios(): string {
714
        global $OUTPUT;
714
        global $OUTPUT;
715
        $fields[] = $this->get_radio_searchtype_data('searchexactmatchesonly', $this->searchtype === USER_SEARCH_EXACT_MATCH,
715
        $fields[] = $this->get_radio_searchtype_data('searchexactmatchesonly', $this->searchtype === USER_SEARCH_EXACT_MATCH,
716
            get_string('userselectorsearchexactmatchonly'), USER_SEARCH_EXACT_MATCH, 'mr-1');
716
            get_string('userselectorsearchexactmatchonly'), USER_SEARCH_EXACT_MATCH, 'me-1');
717
        $fields[] = $this->get_radio_searchtype_data('searchfromstart', $this->searchtype === USER_SEARCH_STARTS_WITH,
717
        $fields[] = $this->get_radio_searchtype_data('searchfromstart', $this->searchtype === USER_SEARCH_STARTS_WITH,
718
            get_string('userselectorsearchfromstart'), USER_SEARCH_STARTS_WITH, 'mr-1');
718
            get_string('userselectorsearchfromstart'), USER_SEARCH_STARTS_WITH, 'me-1');
719
        $fields[] = $this->get_radio_searchtype_data('searchanywhere', $this->searchtype === USER_SEARCH_CONTAINS,
719
        $fields[] = $this->get_radio_searchtype_data('searchanywhere', $this->searchtype === USER_SEARCH_CONTAINS,
720
            get_string('userselectorsearchanywhere'), USER_SEARCH_CONTAINS, 'mr-1');
720
            get_string('userselectorsearchanywhere'), USER_SEARCH_CONTAINS, 'me-1');
721
        return $OUTPUT->render_from_template('core_user/form_user_selector_searchtype', (object) ['fields' => $fields]);
721
        return $OUTPUT->render_from_template('core_user/form_user_selector_searchtype', (object) ['fields' => $fields]);
722
    }
722
    }
Línea 723... Línea 723...
723
 
723
 
724
    /**
724
    /**