-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
27 changed files
with
384 additions
and
274 deletions.
There are no files selected for viewing
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
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
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,8 +1,6 @@ | ||
import { Component } from "@angular/core"; | ||
import { InstrumenteUiService } from "./instrumente/instrumente-ui.service"; | ||
|
||
@Component({ | ||
template: `<router-outlet></router-outlet>`, | ||
providers: [InstrumenteUiService], | ||
}) | ||
export class ArchivWrapperComponent {} |
6 changes: 1 addition & 5 deletions
6
...pp/components/archiv/instrumente/instrumente-overview/instrumente-overview.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
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
32 changes: 0 additions & 32 deletions
32
src/app/components/archiv/instrumente/instrumente-ui.service.ts
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
src/app/components/archiv/noten/noten-overview/noten-overview.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<mkj-list | ||
[datasource]="datasource" | ||
[configuration]="listConfig" | ||
[templateMap]="{ | ||
rowexpansion: rowexpansion, | ||
}" | ||
> | ||
</mkj-list> | ||
|
||
<ng-template #rowexpansion let-noten> | ||
<noten-card [noten]="noten"></noten-card> | ||
<div class="col-12 flex justify-content-center"> | ||
<button | ||
*visibleFor="[PermissionMap.NOTEN_SAVE]" | ||
pButton | ||
pRipple | ||
label="Bearbeiten" | ||
icon="pi pi-pencil" | ||
class="p-button-outlined p-button-sm p-button-info mr-1" | ||
(click)="navigateToEditView(noten)" | ||
></button> | ||
</div> | ||
</ng-template> |
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
src/app/components/archiv/noten/noten-overview/noten-overview.component.ts
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Component } from "@angular/core"; | ||
import { ActivatedRoute, Router } from "@angular/router"; | ||
import { Noten } from "src/app/models/Noten"; | ||
import { PermissionMap } from "src/app/models/User"; | ||
import { AppConfigService } from "src/app/services/app-config.service"; | ||
import { NotenListConfig } from "src/app/utilities/_list-configurations/noten-list-config.class"; | ||
import { NotenListDatasource } from "src/app/utilities/_list-datasources/noten-list-datasource.class"; | ||
import { MkjToolbarService } from "src/app/utilities/mkj-toolbar/mkj-toolbar.service"; | ||
|
||
@Component({ | ||
selector: "app-noten-overview", | ||
templateUrl: "./noten-overview.component.html", | ||
styleUrls: ["./noten-overview.component.scss"], | ||
providers: [NotenListDatasource, NotenListConfig], | ||
}) | ||
export class NotenOverviewComponent { | ||
public readonly PermissionMap = PermissionMap; | ||
|
||
constructor( | ||
public datasource: NotenListDatasource, | ||
public listConfig: NotenListConfig, | ||
private toolbarService: MkjToolbarService, | ||
private router: Router, | ||
private route: ActivatedRoute, | ||
private namingService: AppConfigService | ||
) { | ||
this.toolbarService.header = this.namingService.appNaming.Noten; | ||
this.toolbarService.buttons = [ | ||
{ | ||
icon: "pi pi-plus", | ||
label: "Neu", | ||
permissions: [PermissionMap.NOTEN_SAVE], | ||
click: () => this.navigateToEditView(), | ||
}, | ||
]; | ||
} | ||
|
||
public navigateToEditView(noten?: Noten) { | ||
this.router.navigate([noten?.id ?? "new"], { relativeTo: this.route }); | ||
} | ||
} |
129 changes: 0 additions & 129 deletions
129
src/app/components/archiv/noten/notenarchiv/notenarchiv.component.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.