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
3da58289
Commit
3da58289
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 11.4 to OpenOLAT default branch with f1413e9463d2e7ce496b25090e23f3620bd4db6b
parents
a4dd6884
55fd74eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/nodes/iq/IQ12EditForm.java
+13
-3
13 additions, 3 deletions
src/main/java/org/olat/course/nodes/iq/IQ12EditForm.java
with
13 additions
and
3 deletions
src/main/java/org/olat/course/nodes/iq/IQ12EditForm.java
+
13
−
3
View file @
3da58289
...
@@ -228,13 +228,19 @@ public class IQ12EditForm extends FormBasicController {
...
@@ -228,13 +228,19 @@ public class IQ12EditForm extends FormBasicController {
showResultsDateDependentButton
.
setEnabled
(
false
);
showResultsDateDependentButton
.
setEnabled
(
false
);
}
}
Date
startDate
=
(
Date
)
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_START_DATE
);
Date
startDate
=
null
;
if
(
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_START_DATE
)
instanceof
Date
)
{
startDate
=
(
Date
)
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_START_DATE
);
}
startDateElement
=
uifactory
.
addDateChooser
(
"qti_form_start_date"
,
"qti.form.date.start"
,
null
,
formLayout
);
startDateElement
=
uifactory
.
addDateChooser
(
"qti_form_start_date"
,
"qti.form.date.start"
,
null
,
formLayout
);
startDateElement
.
setDateChooserTimeEnabled
(
true
);
startDateElement
.
setDateChooserTimeEnabled
(
true
);
startDateElement
.
setDate
(
startDate
);
startDateElement
.
setDate
(
startDate
);
startDateElement
.
setMandatory
(
true
);
startDateElement
.
setMandatory
(
true
);
Date
endDate
=
(
Date
)
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_END_DATE
);
Date
endDate
=
null
;
if
(
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_END_DATE
)
instanceof
Date
)
{
endDate
=
(
Date
)
modConfig
.
get
(
IQEditController
.
CONFIG_KEY_RESULTS_END_DATE
);
}
endDateElement
=
uifactory
.
addDateChooser
(
"qti_form_end_date"
,
"qti.form.date.end"
,
null
,
formLayout
);
endDateElement
=
uifactory
.
addDateChooser
(
"qti_form_end_date"
,
"qti.form.date.end"
,
null
,
formLayout
);
endDateElement
.
setDateChooserTimeEnabled
(
true
);
endDateElement
.
setDateChooserTimeEnabled
(
true
);
endDateElement
.
setDate
(
endDate
);
endDateElement
.
setDate
(
endDate
);
...
@@ -265,7 +271,11 @@ public class IQ12EditForm extends FormBasicController {
...
@@ -265,7 +271,11 @@ public class IQ12EditForm extends FormBasicController {
confSummary
=
AssessmentInstance
.
QMD_ENTRY_SUMMARY_COMPACT
;
confSummary
=
AssessmentInstance
.
QMD_ENTRY_SUMMARY_COMPACT
;
}
}
if
(
isAssessment
||
isSelfTest
)
{
if
(
isAssessment
||
isSelfTest
)
{
summary
.
select
(
confSummary
,
true
);
for
(
String
summaryKey:
summaryKeys
)
{
if
(
summaryKey
.
equals
(
confSummary
))
{
summary
.
select
(
summaryKey
,
true
);
}
}
}
else
{
}
else
{
summary
.
setEnabled
(
false
);
summary
.
setEnabled
(
false
);
}
}
...
...
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