{{ assessmentForm.get('AssessmentTitle')?.value || 'Untitled Assessment' }}
Total Marks: {{ assessmentForm.get('TotalMarks')?.value || 0 }}
Duration: {{ assessmentForm.get('DurationMins')?.value || 0 }} mins
Pass %: {{ assessmentForm.get('PassMarkPct')?.value || 0 }}
@if (mode() === 0) {
@if (questions().length === 0) {
No questions added yet.
}
@for (q of questions(); track q.SlNo) {
{{ q.SlNo }}.
{{ q.QuestionText }}
[{{ q.Marks }} marks]
@if (hasOptions(q.QuestionType)) {
@for (opt of q.DisplayOptions; track opt.id; let oi = $index) {
{{ getOptionLetter(oi) }}. {{ opt.text }}
}
} @else if (q.QuestionType === 4) {
@for (pair of q.DisplayPairs; track $index) {
{{ pair.left }} → {{ pair.right }}
}
} @else if (q.QuestionType === 5) {
@for (item of q.DisplayOrderItems; track item.id; let oi = $index) {
{{ oi + 1 }}. {{ item.text }}
}
} @else {
}
}
}
@if (mode() === 1) {
@if (sections().length === 0) {
No sections added yet.
}
@for (sec of sections(); track sec.SlNo) {
Section {{ sec.SlNo }}: {{ sec.SectionTitle }}
({{ sec.PoolQuestions.length }} × {{ sec.MarksPerQuestion }}
marks)
@if (sec.PoolQuestions.length === 0) {
No questions added to this section yet.
}
@for (pq of sec.PoolQuestions; track pq.SlNo) {
{{ pq.SlNo }}.
{{ pq.QuestionText }}
[{{ pq.Marks }} marks]
@if (hasOptions(pq.QuestionType)) {
@for (opt of pq.DisplayOptions; track opt.id; let oi = $index) {
{{ getOptionLetter(oi) }}. {{ opt.text }}
}
} @else if (pq.QuestionType === 4) {
@for (pair of pq.DisplayPairs; track $index) {
{{ pair.left }} → {{ pair.right }}
}
} @else if (pq.QuestionType === 5) {
@for (item of pq.DisplayOrderItems; track item.id; let oi = $index) {
{{ oi + 1 }}. {{ item.text }}
}
} @else {
}
}
}
}