Search in sources :

Example 1 with CourseOptionsController

use of org.olat.course.config.ui.CourseOptionsController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doOptions.

private void doOptions(UserRequest ureq) {
    if (delayedClose == Delayed.options || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig().clone();
            CourseOptionsController ctrl = new CourseOptionsController(ureq, getWindowControl(), getRepositoryEntry(), courseConfig, true);
            optionsToolCtr = pushController(ureq, translate("command.options"), ctrl);
            setActiveTool(optionsLink);
            currentToolCtr = optionsToolCtr;
        }
    } else {
        delayedClose = Delayed.options;
    }
}
Also used : CourseOptionsController(org.olat.course.config.ui.CourseOptionsController) ICourse(org.olat.course.ICourse) CourseConfig(org.olat.course.config.CourseConfig)

Example 2 with CourseOptionsController

use of org.olat.course.config.ui.CourseOptionsController in project openolat by klemens.

the class CourseRuntimeController method doOptions.

private void doOptions(UserRequest ureq) {
    if (delayedClose == Delayed.options || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig().clone();
            CourseOptionsController ctrl = new CourseOptionsController(ureq, getWindowControl(), getRepositoryEntry(), courseConfig, true);
            optionsToolCtr = pushController(ureq, translate("command.options"), ctrl);
            setActiveTool(optionsLink);
            currentToolCtr = optionsToolCtr;
        }
    } else {
        delayedClose = Delayed.options;
    }
}
Also used : CourseOptionsController(org.olat.course.config.ui.CourseOptionsController) ICourse(org.olat.course.ICourse) CourseConfig(org.olat.course.config.CourseConfig)

Aggregations

ICourse (org.olat.course.ICourse)2 CourseConfig (org.olat.course.config.CourseConfig)2 CourseOptionsController (org.olat.course.config.ui.CourseOptionsController)2