From 1413cd0d07990ae3cfb976979bbc39551dbb903a Mon Sep 17 00:00:00 2001 From: itskovacs Date: Thu, 7 Aug 2025 18:47:32 +0200 Subject: [PATCH] :lipstick: trip: grouped table mode --- .../app/components/trip/trip.component.html | 63 ++++++++++++++++++- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git a/src/src/app/components/trip/trip.component.html b/src/src/app/components/trip/trip.component.html index c33f30f..54ddd23 100644 --- a/src/src/app/components/trip/trip.component.html +++ b/src/src/app/components/trip/trip.component.html @@ -29,8 +29,7 @@ {{ - totalPrice - || '-' }} {{ currency$ | async }} + (totalPrice | number:'1.0-2') || '-' }} {{ currency$ | async }} @@ -55,6 +54,10 @@
+ +
@@ -67,7 +70,7 @@ @defer { @if (flattenedTripItems.length) { + [rowGroupMode]="tableExpandableMode ? 'subheader': 'rowspan'" groupRowsBy="td_label"> Day @@ -80,6 +83,59 @@ Status + @if (tableExpandableMode) { + + + + + {{ tripitem.td_label }} + + + + + + + + {{ tripitem.td_label }} + {{ tripitem.time }} + +
+ {{ tripitem.text }} + @if (tripitem.status) {
} +
+ + + @if (tripitem.place) { +
+ {{ + tripitem.place.name }} +
+ } @else {-} + + {{ tripitem.comment || '-' }} + +
+ @if (tripitem.lat) { {{ tripitem.lat }}, {{ tripitem.lng }} } + @else {-} +
+ + @if (tripitem.price) {{{ + tripitem.price }} {{ currency$ | async }}} + @if (tripitem.status) {{{ + tripitem.status.label }}} + +
+ } + @else { @@ -122,6 +178,7 @@ tripitem.status.label }}} + }
} @else {