Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
09dc3d7a
Commit
09dc3d7a
authored
4 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
openolat#196: move course type after title autocomplete, show for all authors now
parent
8f0da9a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/at/ac/uibk/course/CreateCourseRepositoryEntryController.java
+21
-24
21 additions, 24 deletions
...ac/uibk/course/CreateCourseRepositoryEntryController.java
with
21 additions
and
24 deletions
src/main/java/at/ac/uibk/course/CreateCourseRepositoryEntryController.java
+
21
−
24
View file @
09dc3d7a
...
@@ -314,6 +314,27 @@ public class CreateCourseRepositoryEntryController extends FormBasicController
...
@@ -314,6 +314,27 @@ public class CreateCourseRepositoryEntryController extends FormBasicController
item
.
setHelpTextKey
(
"form.course.title.descr"
,
null
);
item
.
setHelpTextKey
(
"form.course.title.descr"
,
null
);
item
.
setMandatory
(
true
);
item
.
setMandatory
(
true
);
formLayout
.
add
(
item
);
formLayout
.
add
(
item
);
/************************************************************************************************
* Add Node Access Type configuration form items see also:
* org.olat.repository.ui.author.CreateCourseRepositoryEntryController
************************************************************************************************/
KeyValues
nodeAccessKV
=
new
KeyValues
();
String
helpText
=
""
;
for
(
NodeAccessProviderIdentifier
identifier
:
nodeAccessService
.
getNodeAccessProviderIdentifer
())
{
String
title
=
identifier
.
getDisplayName
(
getLocale
());
nodeAccessKV
.
add
(
KeyValues
.
entry
(
identifier
.
getType
(),
title
));
helpText
+=
"<strong>"
+
title
+
"</strong><br />"
+
identifier
.
getToolTipHelpText
(
getLocale
())
+
"<br /><br />"
;
}
nodeAccessEl
=
uifactory
.
addRadiosVertical
(
"cif.node.access"
,
"cif.node.access"
,
formLayout
,
nodeAccessKV
.
keys
(),
nodeAccessKV
.
values
());
nodeAccessEl
.
select
(
ConditionNodeAccessProvider
.
TYPE
,
true
);
nodeAccessEl
.
addActionListener
(
FormEvent
.
ONCHANGE
);
nodeAccessEl
.
setHelpText
(
helpText
);
nodeAccessEl
.
setHelpUrlForManualPage
(
"Learning path course"
);
/************************************************************************************************
/************************************************************************************************
* Add list of owners with buttons to remove and add additional ones
* Add list of owners with buttons to remove and add additional ones
...
@@ -415,30 +436,6 @@ public class CreateCourseRepositoryEntryController extends FormBasicController
...
@@ -415,30 +436,6 @@ public class CreateCourseRepositoryEntryController extends FormBasicController
catalogDropdownElement
=
uifactory
catalogDropdownElement
=
uifactory
.
addDropdownSingleselect
(
"form.catalog.entry"
,
formLayout
,
catalogKeys
,
catalogValues
,
catalogStyles
);
.
addDropdownSingleselect
(
"form.catalog.entry"
,
formLayout
,
catalogKeys
,
catalogValues
,
catalogStyles
);
catalogDropdownElement
.
setVisible
(
false
);
catalogDropdownElement
.
setVisible
(
false
);
/************************************************************************************************
* Add Node Access Type configuration form items see also:
* org.olat.repository.ui.author.CreateCourseRepositoryEntryController
************************************************************************************************/
KeyValues
nodeAccessKV
=
new
KeyValues
();
String
helpText
=
""
;
for
(
NodeAccessProviderIdentifier
identifier
:
nodeAccessService
.
getNodeAccessProviderIdentifer
())
{
String
title
=
identifier
.
getDisplayName
(
getLocale
());
nodeAccessKV
.
add
(
KeyValues
.
entry
(
identifier
.
getType
(),
title
));
helpText
+=
"<strong>"
+
title
+
"</strong><br />"
+
identifier
.
getToolTipHelpText
(
getLocale
())
+
"<br /><br />"
;
}
nodeAccessEl
=
uifactory
.
addRadiosVertical
(
"cif.node.access"
,
"cif.node.access"
,
formLayout
,
nodeAccessKV
.
keys
(),
nodeAccessKV
.
values
());
nodeAccessEl
.
select
(
ConditionNodeAccessProvider
.
TYPE
,
true
);
nodeAccessEl
.
addActionListener
(
FormEvent
.
ONCHANGE
);
nodeAccessEl
.
setHelpText
(
helpText
);
nodeAccessEl
.
setHelpUrlForManualPage
(
"Learning path course"
);
// only administrative users are allowed to change this at the moment
nodeAccessEl
.
setVisible
(
isAdministrativeUser
);
/************************************************************************************************
/************************************************************************************************
* Add Create and Cancel Buttons
* Add Create and Cancel Buttons
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment