funky-framadate-front/src/app/features/shared/components/ui/form/errors-list/errors-list.component.html

19 lines
474 B
HTML

<div
class="validation-error-list padded"
[ngClass]="{ 'has-background-warning': totalErrors > 0, 'has-background-success': totalErrors === 0 }"
>
<h1 class="title is-1">
Validation
</h1>
<span class="status marged"> statut: {{ form.status }} </span>
<strong class="marged has-background-warning total-errors" *ngIf="form && totalErrors">
{{ totalErrors }} erreurs de validation
</strong>
<ul>
<li *ngFor="let m of messages">
{{ m }}
</li>
</ul>
</div>