SEBSERV-284

This commit is contained in:
anhefti 2022-03-08 08:58:11 +01:00
parent 3d089d9450
commit e0057211a1

View file

@ -349,7 +349,9 @@ public class ExamForm implements TemplateComposer {
.withInputSpan(4)
.withEmptyCellSeparation(false))
.addField(FormBuilder.singleSelection(
.addFieldIf(
() -> importFromQuizData,
() -> FormBuilder.singleSelection(
Domain.EXAM.ATTR_EXAM_TEMPLATE_ID,
FORM_EXAM_TEMPLATE_TEXT_KEY,
(exam.examTemplateId == null)
@ -359,8 +361,7 @@ public class ExamForm implements TemplateComposer {
.withSelectionListener(form -> this.processTemplateSelection(form, formContext))
.withLabelSpan(2)
.withInputSpan(4)
.withEmptyCellSpan(2)
.readonly(!importFromQuizData))
.withEmptyCellSpan(2))
.addField(FormBuilder.singleSelection(
Domain.EXAM.ATTR_TYPE,