This commit is contained in:
Lurkars 2021-03-12 09:19:02 +01:00
parent 50b412d21c
commit 5f4a789d01
3 changed files with 22 additions and 9 deletions

View File

@ -1,8 +1,12 @@
<table mat-table matSort [dataSource]="permissions" (matSortChange)="sortData($event)"> <table mat-table matSort [dataSource]="permissions" (matSortChange)="sortData($event)">
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'permissions.name' | i18n}} </th> <th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'permissions.name' | i18n}} </th>
<td mat-cell *matCellDef="let permission"> {{'permissions.' + permission.name | i18n}} <td mat-cell *matCellDef="let permission">
<mat-icon inline=true>{{'apps.' + permission.name + '.icon' | i18n}}</mat-icon>
{{'apps.' + permission.name + '.title' | i18n}}
<mat-icon *ngIf="permission.addon">add_circle</mat-icon> <mat-icon *ngIf="permission.addon">add_circle</mat-icon>
<br>
<small>{{'apps.' + permission.name + '.subtitle' | i18n}}</small>
</td> </td>
</ng-container> </ng-container>

View File

@ -2,7 +2,10 @@
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'quotas.name' | i18n}} </th> <th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'quotas.name' | i18n}} </th>
<td mat-cell *matCellDef="let quota"> {{'quotas.' + quota.name | i18n}} </td> <td mat-cell *matCellDef="let quota">
<mat-icon inline=true>{{'apps.' + quota.name + '.icon' | i18n}}</mat-icon>
{{'apps.' + quota.name + '.title' | i18n}}
</td>
</ng-container> </ng-container>
<ng-container matColumnDef="quota"> <ng-container matColumnDef="quota">
@ -12,7 +15,7 @@
<ng-container matColumnDef="quotaUnit"> <ng-container matColumnDef="quotaUnit">
<th mat-header-cell *matHeaderCellDef> {{'quotas.unit' | i18n}} </th> <th mat-header-cell *matHeaderCellDef> {{'quotas.unit' | i18n}} </th>
<td mat-cell *matCellDef="let quota"> <td mat-cell *matCellDef="let quota">
<span *ngIf="quota.unit">{{'quotas.unit.' + quota.unit | i18n}}</span> <span *ngIf="quota.unit">{{'quotas.unit.' + quota.unit | i18n}}</span>
<span *ngIf="!quota.unit">#</span> <span *ngIf="!quota.unit">#</span>
</td> </td>

View File

@ -32,6 +32,18 @@
"subtitle": "Virtuelles Vereinsheim", "subtitle": "Virtuelles Vereinsheim",
"text": "Digitaler Treffpunkt für Veranstaltungen oder einfach zum Abhängen.", "text": "Digitaler Treffpunkt für Veranstaltungen oder einfach zum Abhängen.",
"title": "Partey" "title": "Partey"
},
"registration_vouchers": {
"icon": "card_giftcard",
"subtitle": "Gutschein Code für Registrierungs-Token",
"text": "Einladung um die Services des Bastelei e. V. zu nutzen",
"title": "Registrierungs-Gutscheincodes"
},
"ROLE_MEMBER": {
"icon": "loyalty",
"subtitle": "Mitgliedschaft im Bastelei e. V.",
"text": "Reguläres Mitglied im Bastelei e. V.",
"title": "Vereinsmitgliedschaft"
} }
}, },
"cancel": "Abbrechen", "cancel": "Abbrechen",
@ -136,11 +148,8 @@
}, },
"permissions": { "permissions": {
".": "Berechtigungen", ".": "Berechtigungen",
"ROLE_MEMBER": "Vereinsmitgliedschaft",
"expires": "Gültig bis", "expires": "Gültig bis",
"mail": "E-Mail Postfach",
"name": "Name", "name": "Name",
"nextcloud": "Nextcloud",
"starts": "Gültig ab" "starts": "Gültig ab"
}, },
"pgp": { "pgp": {
@ -200,10 +209,7 @@
}, },
"quotas": { "quotas": {
".": "Quotas", ".": "Quotas",
"mail": "E-Mail Postfach",
"name": "Name", "name": "Name",
"nextcloud": "Nextcloud",
"registration_vouchers": "Registrierungs-Gutscheincodes",
"unit": { "unit": {
"#": "# (Anzahl)", "#": "# (Anzahl)",
".": "Einheit", ".": "Einheit",