-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix visualization of steps with no questions
- Loading branch information
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
22 changes: 12 additions & 10 deletions
22
client/app/src/pages/whistleblower/form/form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
} | ||
} |