Skip to content

Commit

Permalink
fix check in metric
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 4, 2024
1 parent c0499d3 commit 46c50d4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
<div class="okr-form-row okr-form-label-input-container">
<label class="okr-form-label okr-form-col" for="value">Neuer Wert</label>
<div class="okr-form-row row-cols-2">
<div class="col">
<form [formGroup]="dialogForm" class="okr-form-row align-items-center">
<div class="okr-form-row okr-form-label-input-container">
<label class="okr-form-label okr-form-col" for="value">Neuer Wert</label>
<div class="col">
<input
class="dialog-form-field"
[attr.data-testId]="'check-in-metric-value'"
[ngClass]="formInputCheck(dialogForm, 'value')"
formControlName="value"
id="value"
/>
</div>
<form [formGroup]="dialogForm" class="okr-form-row align-items-center">
<div class="col">
<input
class="dialog-form-field pe-0"
[attr.data-testId]="'check-in-metric-value'"
[ngClass]="formInputCheck(dialogForm, 'value')"
formControlName="value"
id="value"
/>
</div>

<span class="okr-form-label col-auto h-fit">{{ generateUnitLabel() }}</span>
</form>
<span class="okr-form-label col-auto h-fit ps-0">{{ generateUnitLabel() }}</span>
</form>
</div>
<mat-error *ngIf="hasFormFieldErrors(dialogForm, 'value')">
<span>{{ getErrorMessage("MUST_BE_NUMBER", "Neuer Wert") }}</span>
</mat-error>
</div>
</div>
<mat-error *ngIf="hasFormFieldErrors(dialogForm, 'value')">
<span>{{ getErrorMessage("MUST_BE_NUMBER", "Neuer Wert") }}</span>
</mat-error>
</div>

<div *ngIf="checkIn.value" class="okr-form-row okr-form-label-input-container">
<p class="okr-form-label okr-form-col">Letzter Wert</p>
<div class="okr-form-col text-black">
<div class="dialog-data-show w-100">{{ checkIn.value }} {{ generateUnitLabel() }}</div>
<div class="col">
<div *ngIf="checkIn.value" class="okr-form-row okr-form-label-input-container">
<p class="okr-form-label okr-form-col">Letzter Wert</p>
<div class="okr-form-col text-black">
<div class="dialog-data-show dialog-form-field py-2">{{ checkIn.value }} {{ generateUnitLabel() }}</div>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</div>
}
<div class="okr-form-row">
<button (click)="addUser()" class="px-0 mb-3 pe-2 align-new-icon col-auto" color="primary" mat-button>
<span class="d-flex align-items-center fw-bold add-text">
<button (click)="addUser()" class="col-auto" color="primary" mat-button>
<span class="d-flex align-items-center fw-bold">
<img alt="Add User button" class="add-cross-button" src="/assets/icons/new-icon.svg" />
Weiterer Member hinzufügen
</span>
Expand Down

0 comments on commit 46c50d4

Please sign in to comment.