From f18da19bcc0cb2b4e35b720ce2288bccb7bbf087 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Mon, 23 Nov 2020 23:57:34 +0100 Subject: [PATCH] Add headline to tables --- src/app/components/table/table.component.html | 454 +++++++++--------- src/app/components/table/table.component.scss | 3 + src/app/components/table/table.component.ts | 2 + .../pages/tables/bikes/bikes.component.html | 1 + src/app/pages/tables/bikes/bikes.component.ts | 8 +- .../equipment-types.component.html | 1 + .../equipment-types.component.ts | 2 + 7 files changed, 245 insertions(+), 226 deletions(-) diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index 955a759..e2a2486 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -1,234 +1,244 @@
-
- - - - - Filter - - - - - nur ungespeicherte Elemente anzeigen - - -
-
- - - - - - - + + + + + + + + - - - - - - - + + + + + + - - - - - - - - - - - -
- - - - + + + + + + + + + {{ getTranslation(column.name) }} + + + + {{ element[column.name] }} + {{ element[column.name] }} - - - {{ getTranslation(column.name) }} - - + +
+
-
- - - - - - - - - - - - - locked -
-
+ more_vert + + - -
-
- - - - -
+ + + + + + + + locked +
+
+ + +
+ + + + + + + + + + + - + diff --git a/src/app/components/table/table.component.scss b/src/app/components/table/table.component.scss index 78604c2..6af3060 100644 --- a/src/app/components/table/table.component.scss +++ b/src/app/components/table/table.component.scss @@ -2,6 +2,9 @@ display: flex; flex-direction: column; height: 100%; + .headline { + margin: 0 0.5em; + } .table-control { margin: 0.5em; flex: none; diff --git a/src/app/components/table/table.component.ts b/src/app/components/table/table.component.ts index 42d40f7..8024f8d 100644 --- a/src/app/components/table/table.component.ts +++ b/src/app/components/table/table.component.ts @@ -23,6 +23,8 @@ import { MatDialog, MatDialogRef } from '@angular/material/dialog'; styleUrls: ['./table.component.scss'], }) export class TableComponent { + @Input() + headline: string = "Keine Überschrift"; /** this array defines the columns and translations of the table and the order they are displayed */ @Input() columnInfo: { diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index ba243e4..ecca39d 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -1,4 +1,5 @@