|
|
|
@ -1,4 +1,7 @@
|
|
|
|
|
<div class="table-page-wrapper">
|
|
|
|
|
<h1 class="headline">
|
|
|
|
|
{{ headline }}
|
|
|
|
|
</h1>
|
|
|
|
|
<div class="table-control">
|
|
|
|
|
<button
|
|
|
|
|
mat-raised-button
|
|
|
|
@ -121,11 +124,14 @@
|
|
|
|
|
></app-cell>
|
|
|
|
|
<ng-template #stringValue>
|
|
|
|
|
<span *ngIf="!column.link">{{ element[column.name] }}</span>
|
|
|
|
|
<a mat-button color="primary" *ngIf="column.link" [routerLink]="column.link(element)">{{
|
|
|
|
|
element[column.name]
|
|
|
|
|
}}</a>
|
|
|
|
|
<a
|
|
|
|
|
mat-button
|
|
|
|
|
color="primary"
|
|
|
|
|
*ngIf="column.link"
|
|
|
|
|
[routerLink]="column.link(element)"
|
|
|
|
|
>{{ element[column.name] }}</a
|
|
|
|
|
>
|
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
@ -198,7 +204,12 @@
|
|
|
|
|
<div
|
|
|
|
|
class="button-wrapper"
|
|
|
|
|
*ngIf="element.newObject"
|
|
|
|
|
[matTooltip]="(countUnvalidFields(element) > 0) ? ('Nicht ausgefüllte Pflichtfelder (rot): ' + countUnvalidFields(element)) : 'Erstellen'"
|
|
|
|
|
[matTooltip]="
|
|
|
|
|
countUnvalidFields(element) > 0
|
|
|
|
|
? 'Nicht ausgefüllte Pflichtfelder (rot): ' +
|
|
|
|
|
countUnvalidFields(element)
|
|
|
|
|
: 'Erstellen'
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
mat-icon-button
|
|
|
|
@ -230,5 +241,4 @@
|
|
|
|
|
<mat-spinner [diameter]="32"></mat-spinner>
|
|
|
|
|
</mat-card>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|