Commit 2912ab27 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add accordion to warnings

parent 95f9b8a9
Pipeline #133607 failed with stages
in 8 seconds
......@@ -170,29 +170,38 @@
<div class="my-3 p-3 bg-white rounded shadow-sm">
<h6 class="border-bottom border-gray pb-2">Warnings</h6>
<div *ngIf="isGeneratingWarnings" class="alert alert-info mb-0">Loading warnings</div>
<ng-container *ngIf="!isGeneratingWarnings">
<h6>Missing Warnings</h6>
<div *ngIf="missingWarnings.length === 0" class="alert alert-success">
There are no warnings about missing situational factors
</div>
<ul *ngIf="missingWarnings.length > 0">
<li *ngFor="let warning of missingWarnings">{{warning}}</li>
</ul>
<h6>Low value Warnings</h6>
<div *ngIf="lowWarnings.length === 0" class="alert alert-success">
There are no warnings about situational factors with a too low value
</div>
<ul *ngIf="lowWarnings.length > 0">
<li *ngFor="let warning of lowWarnings">{{warning}}</li>
</ul>
<h6>Incorrect value Warnings</h6>
<div *ngIf="incorrectWarnings.length === 0" class="alert alert-success mb-0">
There are no warnings about situational factors with an incorrect value
</div>
<ul *ngIf="incorrectWarnings.length > 0">
<li *ngFor="let warning of incorrectWarnings">{{warning}}</li>
</ul>
</ng-container>
<ngb-accordion *ngIf="!isGeneratingWarnings">
<ngb-panel title="Missing Warnings">
<ng-template ngbPanelContent>
<div *ngIf="missingWarnings.length === 0" class="alert alert-success">
There are no warnings about missing situational factors
</div>
<ul *ngIf="missingWarnings.length > 0">
<li *ngFor="let warning of missingWarnings">{{warning}}</li>
</ul>
</ng-template>
</ngb-panel>
<ngb-panel title="Low value Warnings">
<ng-template ngbPanelContent>
<div *ngIf="lowWarnings.length === 0" class="alert alert-success">
There are no warnings about situational factors with a too low value
</div>
<ul *ngIf="lowWarnings.length > 0">
<li *ngFor="let warning of lowWarnings">{{warning}}</li>
</ul>
</ng-template>
</ngb-panel>
<ngb-panel title="Incorrect value Warnings">
<ng-template ngbPanelContent>
<div *ngIf="incorrectWarnings.length === 0" class="alert alert-success mb-0">
There are no warnings about situational factors with an incorrect value
</div>
<ul *ngIf="incorrectWarnings.length > 0">
<li *ngFor="let warning of incorrectWarnings">{{warning}}</li>
</ul>
</ng-template>
</ngb-panel>
</ngb-accordion>
</div>
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment