SEBSERV-284
This commit is contained in:
parent
3d089d9450
commit
e0057211a1
1 changed files with 13 additions and 12 deletions
|
@ -349,18 +349,19 @@ public class ExamForm implements TemplateComposer {
|
||||||
.withInputSpan(4)
|
.withInputSpan(4)
|
||||||
.withEmptyCellSeparation(false))
|
.withEmptyCellSeparation(false))
|
||||||
|
|
||||||
.addField(FormBuilder.singleSelection(
|
.addFieldIf(
|
||||||
Domain.EXAM.ATTR_EXAM_TEMPLATE_ID,
|
() -> importFromQuizData,
|
||||||
FORM_EXAM_TEMPLATE_TEXT_KEY,
|
() -> FormBuilder.singleSelection(
|
||||||
(exam.examTemplateId == null)
|
Domain.EXAM.ATTR_EXAM_TEMPLATE_ID,
|
||||||
? getDefaultExamTemplateId()
|
FORM_EXAM_TEMPLATE_TEXT_KEY,
|
||||||
: String.valueOf(exam.examTemplateId),
|
(exam.examTemplateId == null)
|
||||||
this.resourceService::examTemplateResources)
|
? getDefaultExamTemplateId()
|
||||||
.withSelectionListener(form -> this.processTemplateSelection(form, formContext))
|
: String.valueOf(exam.examTemplateId),
|
||||||
.withLabelSpan(2)
|
this.resourceService::examTemplateResources)
|
||||||
.withInputSpan(4)
|
.withSelectionListener(form -> this.processTemplateSelection(form, formContext))
|
||||||
.withEmptyCellSpan(2)
|
.withLabelSpan(2)
|
||||||
.readonly(!importFromQuizData))
|
.withInputSpan(4)
|
||||||
|
.withEmptyCellSpan(2))
|
||||||
|
|
||||||
.addField(FormBuilder.singleSelection(
|
.addField(FormBuilder.singleSelection(
|
||||||
Domain.EXAM.ATTR_TYPE,
|
Domain.EXAM.ATTR_TYPE,
|
||||||
|
|
Loading…
Reference in a new issue