diff --git a/Layout/default/TimerecordingCar/Detail.php b/Layout/default/TimerecordingCar/Detail.php index 411966afc..85f6974e4 100644 --- a/Layout/default/TimerecordingCar/Detail.php +++ b/Layout/default/TimerecordingCar/Detail.php @@ -14,7 +14,13 @@ if ($firstApproval < time()) { } $approval = date("m/Y", $firstApproval); $cartypes = TimerecordingCarModel::$carTypes; - +if ($timerecordingcar->mileage_now && $timerecordingcar->mileage_timestamp) { + $mileagetimestamp = "(" . date("d.m.Y", $timerecordingcar->mileage_timestamp) . ")"; +} elseif ($timerecordingcar->mileage_now) { + $mileagetimestamp = "(" . date("d.m.Y", $timerecordingcar->edit) . ")"; +} else { + $mileagetimestamp = ""; +} ?> @@ -24,6 +30,15 @@ $cartypes = TimerecordingCarModel::$carTypes; table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) { padding-right: 10px; } + + .show-milage-history { + cursor: pointer; + } + .fa-duotone.fa-clock-rotate-left:after, .fa-duotone.fa-history:after, .fad.fa-clock-rotate-left:after, .fad.fa-history:after { + content: "\f1da\f1da"; + color: #218200; + opacity: 0.7; + }
@@ -92,13 +107,32 @@ $cartypes = TimerecordingCarModel::$carTypes; Model/Typ model ?> + + Fahrzeugverwalter + user_id) ? $timerecordingcar->user->name : "-" ?> + + + Fahrtenbuch + timerecording) ? "Ja" : "Nein" ?> + Erste §57a nach first_approval) ? $timerecordingcar->first_approval . " Jahr(en)" : "-" ?> + - Fahrzeugverwalter - user_id) ? $timerecordingcar->user->name : "-" ?> + Erstzulassung + initial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?> + + override_approval) : ?> + + §57a Korrektur + initial_approval) ? date("m/Y", $timerecordingcar->override_approval) : "-" ?> + + + + Nächste $57a + initial_approval) ? $approval : "-" ?> @@ -109,30 +143,49 @@ $cartypes = TimerecordingCarModel::$carTypes; - - + + - - + + - override_approval) : ?> - - - - - - - + + + + + + + + + + + + + + + - + - - + + + + + + + + +
Fahrtenbuchtimerecording) ? "Ja" : "Nein" ?>Serviceintervallservice_interval) ?: "-" ?>
Erstzulassunginitial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?>Sommerreifensummer_tires) ?: "-" ?>
§57a Korrekturinitial_approval) ? date("m/Y", $timerecordingcar->override_approval) : "-" ?>
Nächste $57ainitial_approval) ? $approval : "-" ?>Winterreifenwinter_tires) ?: "-" ?>
Reifen engelagerttires_at) ?: "-" ?>
Motoröloil_type) ?: "-" ?>
Werkstätteservice_station) ?: "-" ?>
Kilometerstandmileage_now) ? $timerecordingcar->mileage_now . " KM" : "-" ?>mileage_now) ? $timerecordingcar->mileage_now . " KM" : "-" ?> ' : '' ?>
@@ -141,9 +194,10 @@ $cartypes = TimerecordingCarModel::$carTypes; - -
-
+ +
+ +
@@ -182,8 +236,30 @@ $cartypes = TimerecordingCarModel::$carTypes;
-
- + +
+
+
+
+

Journaleintrag +
+
+

+ timestamp) ?> (creator->name ?>) +
+
+
journal) ?>
+
+
+
+
+ +
+
@@ -261,14 +337,61 @@ $cartypes = TimerecordingCarModel::$carTypes; +