Skip to content

Commit

Permalink
fix: tuning roles and slots
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Oct 13, 2024
1 parent 0e7f068 commit da6ca88
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
currentPageReportTemplate="{first} - {last} {{ 'ACTIONS.SEARCH.OF' | translate }} {totalRecords}"
>
<ng-template pTemplate="header">
<div class="ml-1 flex flex-wrap align-items-center column-gap-4 row-gap-1">
<div class="sm:ml-1 flex flex-wrap align-items-center column-gap-4 row-gap-1">
<!-- Quick Filter -->
<div
class="slim-selectbutton filter-selectbutton"
Expand Down Expand Up @@ -103,7 +103,7 @@
<!-- GRID -->
<ng-template let-roles pTemplate="gridItem">
<div class="grid grid-nogutter">
<div *ngFor="let role of roles; index as i" class="col-12 sm:col-6 md:col-4 lg:col-4 xl:col-3 p-2 sm:px-3">
<div *ngFor="let role of roles; index as i" class="col-6 md:col-4 lg:col-4 xl:col-3 p-2 sm:px-3">
<a
[id]="'ws_roles_grid_data_row_' + i"
class="block card relative py-2 px-4 hover:bg-gray-200 cursor-pointer"
Expand Down Expand Up @@ -159,15 +159,17 @@
tooltipPosition="top"
tooltipEvent="hover"
></a>

<!-- CONTENT -->
<div
[id]="'ws_roles_grid_data_row_' + i + '_role_name'"
class="h-2-5rem flex flex-column justify-content-center text-center word-wrap-break"
class="h-2-5rem flex flex-column justify-content-center text-sm sm:text-base text-center word-wrap-break"
[attr.aria-label]="role.name"
[pTooltip]="role.name?.length > 50 ? role.name : ''"
[pTooltip]="role.name?.length > 40 ? role.name : ''"
tooltipPosition="top"
tooltipEvent="hover"
>
{{ limitText(role.name, 50) }}
{{ limitText(role.name, 40) }}
</div>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
tooltipPosition="top"
tooltipEvent="hover"
>
<div class="mt-3 flex flex-column justify-content-between gap-3">
<div class="flex flex-row flex-wrap justify-content-between gap-3">
<div class="mt-3 flex flex-column justify-content-between gap-4">
<div class="flex flex-row flex-wrap justify-content-start gap-3">
<span *ngIf="slot?.creationDate" class="p-float-label">
<div
id="ws_slot_detail_item_creation_date"
Expand All @@ -182,7 +182,7 @@
<span class="ocx-float-label">{{ 'INTERNAL.CREATION_DATE' | translate }}</span>
</span>
<div class="w-12 sm:w-7 sm:pl-3">
<span class="p-float-label mb-1">
<span class="p-float-label">
<input
pInputText
type="text"
Expand All @@ -199,39 +199,37 @@
</div>
</div>

<div class="flex flex-row flex-wrap justify-content-between gap-3">
<div class="flex flex-row flex-wrap justify-content-between gap-3">
<span *ngIf="slot?.modificationDate" class="p-float-label">
<div
id="ws_slot_detail_item_modification_date"
class="ocx-float-label-textbox pt-3 pb-2"
[attr.aria-label]="'INTERNAL.MODIFICATION_DATE' | translate"
[pTooltip]="'INTERNAL.TOOLTIPS.MODIFICATION_DATE' | translate"
<div class="flex flex-row flex-wrap justify-content-start gap-3">
<span *ngIf="slot?.modificationDate" class="p-float-label">
<div
id="ws_slot_detail_item_modification_date"
class="ocx-float-label-textbox pt-3 pb-2"
[attr.aria-label]="'INTERNAL.MODIFICATION_DATE' | translate"
[pTooltip]="'INTERNAL.TOOLTIPS.MODIFICATION_DATE' | translate"
tooltipPosition="top"
tooltipEvent="hover"
>
{{ slot ? (slot.modificationDate | date: dateFormat) : '' }}
</div>
<span class="ocx-float-label">{{ 'INTERNAL.MODIFICATION_DATE' | translate }}</span>
</span>
<div class="w-12 sm:w-7 sm:pl-3">
<span class="p-float-label">
<input
pInputText
type="text"
readonly
id="ws_slot_detail_intern_item_modification-user"
class="w-full pt-3 pb-2 text-responsive"
[value]="slot?.modificationUser"
[pTooltip]="'INTERNAL.TOOLTIPS.MODIFICATION_USER' | translate"
tooltipPosition="top"
tooltipEvent="hover"
/>
<label for="ws_slot_detail_intern_item_modification-user">
{{ 'INTERNAL.MODIFICATION_USER' | translate }}</label
>
{{ slot ? (slot.modificationDate | date: dateFormat) : '' }}
</div>
<span class="ocx-float-label">{{ 'INTERNAL.MODIFICATION_DATE' | translate }}</span>
</span>
<div class="w-12 sm:w-7 sm:pl-3">
<span class="p-float-label mb-1">
<input
pInputText
type="text"
readonly
id="ws_slot_detail_intern_item_modification-user"
class="w-full pt-3 pb-2 text-responsive"
[value]="slot?.modificationUser"
[pTooltip]="'INTERNAL.TOOLTIPS.MODIFICATION_USER' | translate"
tooltipPosition="top"
tooltipEvent="hover"
/>
<label for="ws_slot_detail_intern_item_modification-user">
{{ 'INTERNAL.MODIFICATION_USER' | translate }}</label
>
</span>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<!-- GRID -->
<ng-template let-slots pTemplate="gridItem">
<div class="grid grid-nogutter">
<div *ngFor="let slot of slots; index as i" class="col-12 sm:col-6 md:col-4 lg:col-4 xl:col-3 p-2 sm:px-3">
<div *ngFor="let slot of slots; index as i" class="col-6 md:col-4 lg:col-4 xl:col-3 p-2 sm:px-3">
<a
[id]="'ws_slots_grid_data_row_' + i + '_action_detail'"
class="block card relative py-2 px-4"
Expand Down Expand Up @@ -126,7 +126,9 @@
tooltipPosition="top"
tooltipEvent="hover"
></span>
<div class="h-2-5rem flex flex-column justify-content-center text-center">

<!-- CONTENT -->
<div class="h-2-5rem flex flex-column justify-content-center text-center text-sm sm:text-base">
<div
[id]="'ws_slots_grid_data_row_' + i + '_slot_name'"
[attr.aria-label]="slot.name"
Expand Down
4 changes: 2 additions & 2 deletions src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@
"UNDEPLOYED.TOOLTIP": "Dieser Slot ist nicht länger nutzbar.",
"PRODUCTS": "Registrierende Applikationen",
"PRODUCTS.NOT_EXIST": "Keine",
"PRODUCTS.TOOLTIP": "Applikationen, die diesen Slot registriert haben:",
"NO_PRODUCTS": "Keine Applikation gefunden, die diesen Slot registriert hat",
"PRODUCTS.TOOLTIP": "Applikationen die den Slot registriert haben:",
"NO_PRODUCTS": "Keine Applikation gefunden, die den Slot registriert hat",
"COMPONENTS": "Inhaltsbildende Komponenten",
"COMPONENTS.USED": "Verwendete Komponenten",
"COMPONENTS.USED.TOOLTIP": "Im Slot verwendeten Komponenten, in der Reihenfolge von oben nach unten.",
Expand Down

0 comments on commit da6ca88

Please sign in to comment.