diff --git a/web/src/app/administration/components/type-icon/icon-type.component.html b/web/src/app/administration/components/type-icon/icon-type.component.html index 7f16cb0e1..839ea4700 100644 --- a/web/src/app/administration/components/type-icon/icon-type.component.html +++ b/web/src/app/administration/components/type-icon/icon-type.component.html @@ -1,3 +1,3 @@ - {{text}} diff --git a/web/src/app/administration/components/type-icon/icon-type.component.scss b/web/src/app/administration/components/type-icon/icon-type.component.scss index cd8504136..a52e0a389 100644 --- a/web/src/app/administration/components/type-icon/icon-type.component.scss +++ b/web/src/app/administration/components/type-icon/icon-type.component.scss @@ -3,6 +3,8 @@ width: 24px; } -.grayIcon { - fill: #555; +.gray { + fill: #555; + top: -3px; } + diff --git a/web/src/app/administration/components/workbasket-details/workbasket-details.component.ts b/web/src/app/administration/components/workbasket-details/workbasket-details.component.ts index b3a2b1b6e..5015ac257 100644 --- a/web/src/app/administration/components/workbasket-details/workbasket-details.component.ts +++ b/web/src/app/administration/components/workbasket-details/workbasket-details.component.ts @@ -18,7 +18,6 @@ import { } from '../../../shared/store/workbasket-store/workbasket.actions'; import { ButtonAction } from '../../models/button-action'; import { RequestInProgressService } from '../../../shared/services/request-in-progress/request-in-progress.service'; -import { WorkbasketComponent } from '../../models/workbasket-component'; @Component({ selector: 'taskana-administration-workbasket-details', diff --git a/web/src/app/administration/components/workbasket-information/workbasket-information.component.html b/web/src/app/administration/components/workbasket-information/workbasket-information.component.html index 4cd1eca87..88f4c10ad 100644 --- a/web/src/app/administration/components/workbasket-information/workbasket-information.component.html +++ b/web/src/app/administration/components/workbasket-information/workbasket-information.component.html @@ -33,156 +33,167 @@
+
- -
+ +
General
+ -
General
- + +
- - - Key - - - -
{{lengthError}}
- - + +
- - - Name - - - -
{{lengthError}}
- - + + + Key + + + +
{{lengthError}}
+ + + + + Name + + + +
{{lengthError}}
+ + + + +
{{lengthError}}
+
-
+ + +
{{lengthError}}
+ + +
- - - Domain - - - + +
- - - Type - - - - {{allTypes.get(workbasket.type)}} - - - - - - - + + + Type + + + + {{allTypes.get(workbasket.type)}} + + + + + + + + +
+ + Description + + + + {{lengthError}} +
+
+
+ + +
+ + +
+ + + + Domain + + + + + + + OrgLevel 1 + + +
{{lengthError}}
+ + + + OrgLevel 2 + + +
{{lengthError}}
+ + + + OrgLevel 3 + + +
{{lengthError}}
+ + + + OrgLevel 4 + + +
{{lengthError}}
+ +
- - - Description - - - -
{{lengthError}}
- - - - - -
{{lengthError}}
-
- - - -
{{lengthError}}
- - -
- - - - -
Organisational Levels
- - - - OrgLevel 1 - - -
{{lengthError}}
- - - OrgLevel 2 - - -
{{lengthError}}
- - - OrgLevel 3 - - -
{{lengthError}}
- - - OrgLevel 4 - - -
{{lengthError}}
- -
Custom Fields
- +
Custom Fields
+ -
-
- - - {{customField.field}} - - - -
{{lengthError}}
+
+
+ + {{customField.field}} + + + +
{{lengthError}}
+
diff --git a/web/src/app/administration/components/workbasket-information/workbasket-information.component.scss b/web/src/app/administration/components/workbasket-information/workbasket-information.component.scss index 22847f4e1..593bbb4c2 100644 --- a/web/src/app/administration/components/workbasket-information/workbasket-information.component.scss +++ b/web/src/app/administration/components/workbasket-information/workbasket-information.component.scss @@ -2,37 +2,71 @@ height: calc(100vh - 213px); overflow-y: auto; } -.workbasket-information { + +.form { padding: 15px; display: flex; flex-direction: column; } -.workbasket-information__subheading { +.subheading { font-weight: bold; padding-left: 15px; margin-bottom: 0; } -.workbasket-information__horizontal-line { +.horizontal-line { margin: 5px 5px 25px 5px; border-top-color: #555; border-top-width: 1.35px; } -.workbasket-information__domain-and-type { +.general { display: flex; + flex-direction: row; + flex-wrap: nowrap; justify-content: space-between; + margin-bottom: 15px; + + &__left-column { + display: flex; + flex-direction: column; + flex-wrap: nowrap; + width: 50%; + } + + &__right-column { + display: flex; + flex-direction: column; + width: 50%; + } + + &__spacer { + display: block; + width: 20px; + } + + &__description-and-type { + display: flex; + justify-content: space-between; + } + + &__description { + width: 100%; + } } -.workbasket-information__mat-form-field { - width: 100%; - margin-right: 10px; -} +.custom-fields { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; -.dropdown-menu { - min-width: auto; -} -.workbasket-information__custom-fields { - width: 100%; + &__input { + flex: 0 49%; + } + + &__form-field { + width: 100%; + } } diff --git a/web/src/app/administration/components/workbasket-information/workbasket-information.component.spec.ts b/web/src/app/administration/components/workbasket-information/workbasket-information.component.spec.ts index 8e73f294c..9c542af2c 100644 --- a/web/src/app/administration/components/workbasket-information/workbasket-information.component.spec.ts +++ b/web/src/app/administration/components/workbasket-information/workbasket-information.component.spec.ts @@ -158,7 +158,7 @@ describe('WorkbasketInformationComponent', () => { }); it('should display custom fields correctly', () => { - const customFields = debugElement.nativeElement.getElementsByClassName('workbasket-information__custom-fields'); + const customFields = debugElement.nativeElement.getElementsByClassName('custom-fields__form-field'); expect(customFields.length).toBe(3); //mock data has custom1->4 but engineConfig disables custom3 -> [1,2,4] }); diff --git a/web/src/app/administration/components/workbasket-information/workbasket-information.component.ts b/web/src/app/administration/components/workbasket-information/workbasket-information.component.ts index 8a629d98d..d8fa50aa7 100644 --- a/web/src/app/administration/components/workbasket-information/workbasket-information.component.ts +++ b/web/src/app/administration/components/workbasket-information/workbasket-information.component.ts @@ -82,7 +82,8 @@ export class WorkbasketInformationComponent implements OnInit, OnChanges, OnDest this.customFields$ = this.workbasketsCustomisation$.pipe( map((customisation) => customisation.information), - getCustomFields(customFieldCount) + getCustomFields(customFieldCount), + map((customFields) => customFields.filter((customisation) => customisation.visible)) ); this.workbasketsCustomisation$.pipe(takeUntil(this.destroy$)).subscribe((workbasketsCustomization) => { if (workbasketsCustomization.information.owner) {