feat: Grundlegendes Gruppentabellenschema erstellt und als Standard festgelegt
- Schema für die grundlegende Gruppentabelle erstellt und als Standard festgelegt. - Tabellenbreiten auf der Benutzerseite angepasst für ein verbessertes Layout.
This commit is contained in:
parent
08b9035083
commit
6299ac25e5
@ -18,7 +18,7 @@ import { GroupOfUserService } from '../../../services/api/group-of-user.service'
|
|||||||
})
|
})
|
||||||
export class GroupTableComponent extends BaseTableComponent<Group, GroupService> {
|
export class GroupTableComponent extends BaseTableComponent<Group, GroupService> {
|
||||||
constructor(service: GroupService, cModeService: ColorModeService, private gouService: GroupOfUserService) {
|
constructor(service: GroupService, cModeService: ColorModeService, private gouService: GroupOfUserService) {
|
||||||
super(service, env.columnNames.group.complete, cModeService)
|
super(service, env.columnNames.group.basic, cModeService)
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchDataByUsername(username: string) {
|
fetchDataByUsername(username: string) {
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div class="col-7">
|
<div class="col-7">
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab label="Gruppen">
|
<mat-tab label="Gruppen">
|
||||||
<app-group-table #groupTable [onSelectedRows]="groupsOnSelectedRows" [cellEditing]="cellEditing"></app-group-table>
|
<app-group-table #groupTable [onSelectedRows]="groupsOnSelectedRows" [cellEditing]="cellEditing" [columns]="complete_group_cols"></app-group-table>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import { BasePageComponent } from '../base-page/base-page.component';
|
|||||||
import { Group } from '../../models/user-management.api.models';
|
import { Group } from '../../models/user-management.api.models';
|
||||||
import { firstValueFrom, forkJoin } from 'rxjs';
|
import { firstValueFrom, forkJoin } from 'rxjs';
|
||||||
import Swal from 'sweetalert2';
|
import Swal from 'sweetalert2';
|
||||||
|
import { env } from '../../../environments/environment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
@ -90,4 +91,8 @@ export class GroupComponent extends BasePageComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get complete_group_cols() {
|
||||||
|
return env.columnNames.group.complete
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<div class="container-fluid text-center">
|
<div class="container-fluid text-center">
|
||||||
<div class="row m-0 p-0">
|
<div class="row m-0 p-0">
|
||||||
<div class="col-6">
|
<div class="col-8">
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab label="Benutzer">
|
<mat-tab label="Benutzer">
|
||||||
<app-user-table #userTable [onSelectedRows]="usersOnSelectedRows"
|
<app-user-table #userTable [onSelectedRows]="usersOnSelectedRows"
|
||||||
@ -8,14 +8,14 @@
|
|||||||
</mat-tab>
|
</mat-tab>
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-2">
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab label="Gruppen">
|
<mat-tab label="Gruppen">
|
||||||
<app-group-table #groupTable [initData]="initWithoutData"></app-group-table>
|
<app-group-table #groupTable [initData]="initWithoutData"></app-group-table>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-2">
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab label="Module">
|
<mat-tab label="Module">
|
||||||
<app-module-table #moduleTable [initData]="initWithoutData"></app-module-table>
|
<app-module-table #moduleTable [initData]="initWithoutData"></app-module-table>
|
||||||
|
|||||||
@ -83,6 +83,12 @@ export const env = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
group: {
|
group: {
|
||||||
|
basic: [
|
||||||
|
{
|
||||||
|
header: "Gruppe",
|
||||||
|
field: "name"
|
||||||
|
}
|
||||||
|
],
|
||||||
complete: [
|
complete: [
|
||||||
{
|
{
|
||||||
header: "Gruppe",
|
header: "Gruppe",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user