Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 57... Línea 57...
57
    }
57
    }
Línea 58... Línea 58...
58
 
58
 
59
    /**
59
    /**
60
     * Ensure current user is able to use this form
60
     * Ensure current user is able to use this form
61
     *
61
     *
62
     * A {@see \core_reportbuilder\report_access_exception} will be thrown if they can't
62
     * A {@see \core_reportbuilder\exception\report_access_exception} will be thrown if they can't
63
     */
63
     */
64
    protected function check_access_for_dynamic_submission(): void {
64
    protected function check_access_for_dynamic_submission(): void {
65
        permission::require_can_edit_report($this->get_report()->get_report_persistent());
65
        permission::require_can_edit_report($this->get_report()->get_report_persistent());
Línea 144... Línea 144...
144
        $mform->registerNoSubmitButton('resetconditions');
144
        $mform->registerNoSubmitButton('resetconditions');
Línea 145... Línea 145...
145
 
145
 
146
        $buttons = [];
146
        $buttons = [];
147
        $buttons[] = $mform->createElement('submit', 'submitbutton', get_string('apply', 'core_reportbuilder'));
147
        $buttons[] = $mform->createElement('submit', 'submitbutton', get_string('apply', 'core_reportbuilder'));
148
        $buttons[] = $mform->createElement('submit', 'resetconditions',  get_string('resetall', 'core_reportbuilder'),
148
        $buttons[] = $mform->createElement('submit', 'resetconditions',  get_string('resetall', 'core_reportbuilder'),
Línea 149... Línea 149...
149
            null, null, ['customclassoverride' => 'btn-link ml-1']);
149
            null, null, ['customclassoverride' => 'btn-link ms-1']);
150
 
150
 
151
        $mform->addGroup($buttons, 'buttonar', get_string('formactions', 'core_form'), '', false)
151
        $mform->addGroup($buttons, 'buttonar', get_string('formactions', 'core_form'), '', false)