-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0499d3
commit 46c50d4
Showing
2 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
48 changes: 27 additions & 21 deletions
48
frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.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,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> |
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