diff --git a/src/main/java/org/olat/course/editor/_i18n/LocalStrings_de.properties b/src/main/java/org/olat/course/editor/_i18n/LocalStrings_de.properties index cb0f28f0665394ffafff97cb54ad908f54d006eb..479d76af545c399f05b328285d7353898a295867 100644 --- a/src/main/java/org/olat/course/editor/_i18n/LocalStrings_de.properties +++ b/src/main/java/org/olat/course/editor/_i18n/LocalStrings_de.properties @@ -8,6 +8,7 @@ alternative.choose.description=W\u00E4hlen Sie aus der Liste der m\u00F6glichen apply=OK assessment=Wissens\u00FCberpr\u00FCfung bulk.general=$\:pane.tab.general +bulk.learning.path=$org.olat.course.learningpath.ui\:pane.tab.learning.path checkall=Alle ausw\u00E4hlen checklist.wizard=Checklisten @@ -431,6 +432,7 @@ nodeEdit.links=Link auf diesen Kursbaustein setzen nodeEdit.linksIntro=Um von ausserhalb des Kurses auf diesen Kursbaustein zu verweisen, verwenden Sie den externen Link. Um innerhalb des Kurses Links zu setzen, verwenden Sie den internen Link. other=Andere condition.accessibility.title=Zugang +overview.title=Kurskonfiguration pane.tab.accessibility=Zugang pane.tab.general=Titel und Beschreibung pane.tab.visibility=Sichtbarkeit diff --git a/src/main/java/org/olat/course/editor/_i18n/LocalStrings_en.properties b/src/main/java/org/olat/course/editor/_i18n/LocalStrings_en.properties index 9dff03a6f7b8fef9f09ff0ccb536243c61f360aa..b620caefb6def49cdca9fc282faa033fe40effa3 100644 --- a/src/main/java/org/olat/course/editor/_i18n/LocalStrings_en.properties +++ b/src/main/java/org/olat/course/editor/_i18n/LocalStrings_en.properties @@ -8,6 +8,7 @@ alternative.choose.description=Select from the list of alternative course elemen apply=OK assessment=Assessment bulk.general=$\:pane.tab.general +bulk.learning.path=$org.olat.course.learningpath.ui\:pane.tab.learning.path checkall=Select all checklist.wizard=Checklist set @@ -430,6 +431,7 @@ nodeEdit.intLink=Course-internal link (do not open in new window) nodeEdit.links=Set link for this course element nodeEdit.linksIntro=To refer to this course element from outside the course use an external link. To set links within the course use an internal link. other=Other +overview.title=Course configuration pane.tab.accessibility=Access pane.tab.general=Title and description pane.tab.visibility=Visibility diff --git a/src/main/java/org/olat/course/editor/overview/BulkChangeController.java b/src/main/java/org/olat/course/editor/overview/BulkChangeController.java index 2cd1a7a1bb9c6c9b860c674f15d7bced41718521..1f404b371f5fd91565b2e99286ba957dfa468ec3 100644 --- a/src/main/java/org/olat/course/editor/overview/BulkChangeController.java +++ b/src/main/java/org/olat/course/editor/overview/BulkChangeController.java @@ -111,6 +111,7 @@ public class BulkChangeController extends FormBasicController { private void initGeneralForm(FormItemContainer formLayout) { FormLayoutContainer generalCont = FormLayoutContainer.createDefaultFormLayout("general", getTranslator()); + generalCont.setFormTitle(translate("bulk.general")); generalCont.setRootForm(mainForm); formLayout.add(generalCont); @@ -128,6 +129,7 @@ public class BulkChangeController extends FormBasicController { private void initLearningPathForm(FormItemContainer formLayout) { FormLayoutContainer lpCont = FormLayoutContainer.createDefaultFormLayout("learningPath", getTranslator()); + lpCont.setFormTitle(translate("bulk.learning.path")); lpCont.setRootForm(mainForm); formLayout.add(lpCont); diff --git a/src/main/java/org/olat/course/editor/overview/OverviewController.java b/src/main/java/org/olat/course/editor/overview/OverviewController.java index 73c5a4d9e492d813f78225b61d084a67f07fa14e..9b5e051b94d5c748ba18bb76b7cb20818defafbd 100644 --- a/src/main/java/org/olat/course/editor/overview/OverviewController.java +++ b/src/main/java/org/olat/course/editor/overview/OverviewController.java @@ -23,11 +23,14 @@ import org.olat.core.gui.UserRequest; import org.olat.core.gui.components.Component; import org.olat.core.gui.components.panel.SimpleStackedPanel; import org.olat.core.gui.components.panel.StackedPanel; +import org.olat.core.gui.components.velocity.VelocityContainer; import org.olat.core.gui.control.Controller; import org.olat.core.gui.control.Event; import org.olat.core.gui.control.WindowControl; import org.olat.core.gui.control.controller.BasicController; +import org.olat.core.util.Util; import org.olat.course.ICourse; +import org.olat.course.editor.EditorMainController; /** * @@ -41,11 +44,16 @@ public class OverviewController extends BasicController { public OverviewController(UserRequest ureq, WindowControl wControl, ICourse course) { super(ureq, wControl); + setTranslator(Util.createPackageTranslator(EditorMainController.class, getLocale(), getTranslator())); + + VelocityContainer mainVC = createVelocityContainer("overview"); + overviewListCtrl = new OverviewListController(ureq, getWindowControl(), course); listenTo(overviewListCtrl); + mainVC.put("list", overviewListCtrl.getInitialComponent()); StackedPanel initialPanel = putInitialPanel(new SimpleStackedPanel("overviewPanel", "o_edit_mode")); - initialPanel.setContent(overviewListCtrl.getInitialComponent()); + initialPanel.setContent(mainVC); } @Override diff --git a/src/main/java/org/olat/course/editor/overview/_content/overview.html b/src/main/java/org/olat/course/editor/overview/_content/overview.html new file mode 100644 index 0000000000000000000000000000000000000000..982a035ea207710d71f3efc9c1480c1795b5f8e4 --- /dev/null +++ b/src/main/java/org/olat/course/editor/overview/_content/overview.html @@ -0,0 +1,6 @@ +<div> + <h2> + $r.translate("overview.title") + </h2> + $r.render("list") +</div> \ No newline at end of file