Skip to content
Snippets Groups Projects
Commit 3aafb539 authored by srosse's avatar srosse
Browse files

OO-302: implement CSS class to select more resources in course editor

parent 4f4cb3fb
No related branches found
No related tags found
No related merge requests found
......@@ -129,9 +129,11 @@ public class CPEditController extends ActivateableTabbableDefaultController impl
main = new Panel("cpmain");
cpConfigurationVc = this.createVelocityContainer("edit");
cpConfigurationVc = createVelocityContainer("edit");
chooseCPButton = LinkFactory.createButtonSmall(NLS_COMMAND_CREATECP, cpConfigurationVc, this);
chooseCPButton.setElementCssClass("o_sel_cp_choose_repofile");
changeCPButton = LinkFactory.createButtonSmall(NLS_COMMAND_CHANGECP, cpConfigurationVc, this);
changeCPButton.setElementCssClass("o_sel_cp_change_repofile");
if (config.get(CONFIG_KEY_REPOSITORY_SOFTKEY) != null) {
// fetch repository entry to display the repository entry title of the chosen cp
......
......@@ -148,7 +148,9 @@ public abstract class FeedNodeEditController extends ActivateableTabbableDefault
learningResource = new Panel("learning_resource_panel");
contentVC = new VelocityContainer("accessVC", FeedNodeEditController.class, "edit", getTranslator(), this);
changeButton = LinkFactory.createButtonSmall(BUTTON_CHANGE_FEED, contentVC, this);
changeButton.setElementCssClass("o_sel_feed_change_repofile");
chooseButton = LinkFactory.createButtonSmall(BUTTON_CREATE_FEED, contentVC, this);
chooseButton.setElementCssClass("o_sel_feed_choose_repofile");
if (config.get(AbstractFeedCourseNode.CONFIG_KEY_REPOSITORY_SOFTKEY) != null) {
// fetch repository entry to display the repository entry title of the
......
......@@ -120,10 +120,11 @@ public class WikiEditController extends ActivateableTabbableDefaultController im
main = new Panel("wikimain");
content = this.createVelocityContainer("edit");
/*previewButton = LinkFactory.createButtonSmall("command.preview", content, this);*/
content = createVelocityContainer("edit");
chooseButton = LinkFactory.createButtonSmall("command.create", content, this);
chooseButton.setElementCssClass("o_sel_wiki_choose_repofile");
changeButton = LinkFactory.createButtonSmall("command.change", content, this);
changeButton.setElementCssClass("o_sel_wiki_choose_repofile");
editAccessVc = this.createVelocityContainer("edit_access");
CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment