Skip to content
Snippets Groups Projects
Commit 8335b8f9 authored by Oliver Schmidt's avatar Oliver Schmidt
Browse files

OZG-7473-7959 ui layout

parent 2791163f
No related branches found
No related tags found
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
<form [formGroup]="formService.form"> <form [formGroup]="formService.form">
<ng-container [formArrayName]="AggregationMappingFormService.FIELD_MAPPINGS"> <ng-container [formArrayName]="AggregationMappingFormService.FIELD_MAPPINGS">
<ng-container [formGroupName]="index"> <ng-container [formGroupName]="index">
<div class="flex w-full flex-col gap-2 mt-4 bg-background-100 p-4 rounded-md"> <div class="mt-4 flex w-full flex-col rounded-md bg-background-150 p-4">
<div class="flex flex-row items-center justify-between"> <div class="flex flex-row items-center justify-between">
<p class="text-md mb-2 block font-medium text-text">Datenfeld</p> <p class="mb-2 block text-lg font-medium text-text">Datenfeld</p>
<ods-button <ods-button
class="self-end" class="self-end"
variant="ghost" variant="ghost"
...@@ -16,24 +16,24 @@ ...@@ -16,24 +16,24 @@
<ods-delete-icon icon /> <ods-delete-icon icon />
</ods-button> </ods-button>
</div> </div>
<ods-text-editor <div class="flex flex-col gap-4">
class="flex-1" <ods-text-editor
formControlName="sourcePath" formControlName="sourcePath"
label="Pfad" label="Pfad"
placeholder="Tragen Sie hier den gesamten Pfad des Datenfeldes ein, das Sie auswerten möchten." placeholder="Tragen Sie hier den gesamten Pfad des Datenfeldes ein, das Sie auswerten möchten."
isRequired="true" isRequired="true"
[dataTestId]="'source-mapping-field-' + index" [dataTestId]="'source-mapping-field-' + index"
[attr.data-test-id]="'source-mapping-field-' + index" [attr.data-test-id]="'source-mapping-field-' + index"
></ods-text-editor> ></ods-text-editor>
<ods-text-editor <ods-text-editor
class="flex-1" formControlName="targetPath"
formControlName="targetPath" label="Zielfeld"
label="Zielfeld" isRequired="true"
isRequired="true" placeholder="Tragen Sie hier den gesamten Pfad des Datenfeldes ein, das Sie auswerten möchten."
placeholder="Tragen Sie hier den gesamten Pfad des Datenfeldes ein, das Sie auswerten möchten." [dataTestId]="'target-mapping-field-' + index"
[dataTestId]="'target-mapping-field-' + index" [attr.data-test-id]="'target-mapping-field-' + index"
[attr.data-test-id]="'target-mapping-field-' + index" ></ods-text-editor>
></ods-text-editor> </div>
</div> </div>
</ng-container> </ng-container>
</ng-container> </ng-container>
......
...@@ -2,17 +2,21 @@ ...@@ -2,17 +2,21 @@
<ods-spinner [stateResource]="aggregationMappingStateResource$ | async"> <ods-spinner [stateResource]="aggregationMappingStateResource$ | async">
<div class="flex max-w-4xl flex-col gap-4"> <div class="flex max-w-4xl flex-col gap-4">
<form class="form flex-col" [formGroup]="formService.form" class="flex flex-col gap-2"> <form class="form flex-col" [formGroup]="formService.form" class="flex flex-col gap-4">
<ods-text-editor <div class="flex flex-col gap-4 lg:flex-row">
[formControlName]="AggregationMappingFormService.FIELD_NAME"
label="Name"
placeholder=""
isRequired="true"
data-test-id="aggregation-mapping-name-text-editor"
dataTestId="aggregation-mapping-name"
></ods-text-editor>
<div [formGroupName]="AggregationMappingFormService.FIELD_FORM_IDENTIFIER" class="flex flex-col gap-4">
<ods-text-editor <ods-text-editor
class="basis-1/2 lg:pr-2"
[formControlName]="AggregationMappingFormService.FIELD_NAME"
label="Name"
placeholder=""
isRequired="true"
data-test-id="aggregation-mapping-name-text-editor"
dataTestId="aggregation-mapping-name"
></ods-text-editor>
</div>
<div [formGroupName]="AggregationMappingFormService.FIELD_FORM_IDENTIFIER" class="flex flex-col gap-4 lg:flex-row">
<ods-text-editor
class="flex-1"
[formControlName]="AggregationMappingFormService.FIELD_FORM_ENGINE_NAME" [formControlName]="AggregationMappingFormService.FIELD_FORM_ENGINE_NAME"
label="Formengine" label="Formengine"
placeholder="Tragen Sie hier die Formengine des Formulars ein." placeholder="Tragen Sie hier die Formengine des Formulars ein."
...@@ -21,6 +25,7 @@ ...@@ -21,6 +25,7 @@
dataTestId="form-engine-name" dataTestId="form-engine-name"
></ods-text-editor> ></ods-text-editor>
<ods-text-editor <ods-text-editor
class="flex-1"
[formControlName]="AggregationMappingFormService.FIELD_FORM_ID" [formControlName]="AggregationMappingFormService.FIELD_FORM_ID"
label="FormID" label="FormID"
placeholder="Tragen Sie hier die FormID des Formulars ein." placeholder="Tragen Sie hier die FormID des Formulars ein."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment