Skip to content

Commit

Permalink
Fix visualization of steps with no questions
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Nov 7, 2024
1 parent ea2a9a4 commit 91f3b38
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions client/app/src/pages/whistleblower/form/form.component.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@for (row of rows; track row; let fieldRow = $index) {
<div class="row">
@for (field of row | orderBy:'x' ;let fieldCol = $index; track field) {
@if (field.enabled) {
<div [ngClass]="fieldUtilitiesService.getClass(field, row.length)">
<src-form-field-inputs [fileUploadUrl]="fileUploadUrl" (notifyFileUpload)="notifyFileUpload.emit()" [fieldEntry] = fieldEntry [identity_provided]=identity_provided [uploads]="uploads" [entry]="entry" [fields]="fields" [step]="step" [displayErrors]="displayErrors" [index]="index" [submission]="submission" [answers]="answers" [stepId]="stepId" [fieldCol]="fieldCol" [fieldRow]="fieldRow" [field]="field"></src-form-field-inputs>
</div>
@if (rows.length) {
@for (row of rows; track row; let fieldRow = $index) {
<div class="row">
@for (field of row | orderBy:'x' ;let fieldCol = $index; track field) {
@if (field.enabled) {
<div [ngClass]="fieldUtilitiesService.getClass(field, row.length)">
<src-form-field-inputs [fileUploadUrl]="fileUploadUrl" (notifyFileUpload)="notifyFileUpload.emit()" [fieldEntry] = fieldEntry [identity_provided]=identity_provided [uploads]="uploads" [entry]="entry" [fields]="fields" [step]="step" [displayErrors]="displayErrors" [index]="index" [submission]="submission" [answers]="answers" [stepId]="stepId" [fieldCol]="fieldCol" [fieldRow]="fieldRow" [field]="field"></src-form-field-inputs>
</div>
}
}
}
</div>
}
</div>
}
}

0 comments on commit 91f3b38

Please sign in to comment.