Warning, /pim/itinerary/src/app/HotelPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0002 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0003 // SPDX-License-Identifier: LGPL-2.0-or-later 0004 0005 import QtQuick 0006 import QtQuick.Layouts 0007 import QtQuick.Controls as QQC2 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.kirigamiaddons.formcard as FormCard 0010 import org.kde.kitinerary 0011 import org.kde.itinerary 0012 0013 DetailsPage { 0014 id: root 0015 0016 title: i18n("Hotel Reservation") 0017 0018 ColumnLayout { 0019 CardPageTitle { 0020 emojiIcon: "🏨" 0021 text: reservationFor.name 0022 } 0023 0024 FormCard.FormHeader { 0025 title: i18n("Location") 0026 } 0027 0028 FormCard.FormCard { 0029 FormPlaceDelegate { 0030 place: reservationFor 0031 controller: root.controller 0032 } 0033 } 0034 0035 ContactCard { 0036 contact: root.reservationFor 0037 } 0038 0039 FormCard.FormCard { 0040 visible: reservation.checkinTime > 0 || reservation.checkoutTime > 0 0041 FormCard.FormTextDelegate { 0042 text: i18n("Check-in time") 0043 description: Util.isStartOfDay(reservation, "checkinTime") ? Localizer.formatDate(reservation, "checkinTime") : Localizer.formatDateTime(reservation, "checkinTime") 0044 } 0045 0046 FormCard.FormDelegateSeparator { visible: reservation.checkinTime > 0 } 0047 0048 FormCard.FormTextDelegate { 0049 text: i18n("Check-out time") 0050 description: Util.isStartOfDay(reservation, "checkoutTime") ? Localizer.formatDate(reservation, "checkoutTime") : Localizer.formatDateTime(reservation, "checkoutTime") 0051 } 0052 } 0053 0054 ProgramMembershipCard { 0055 programMembership: root.reservation.programMembershipUsed 0056 } 0057 0058 BookingCard { 0059 reservation: root.reservation 0060 } 0061 0062 ReservationDocumentsCard { 0063 controller: root.controller 0064 } 0065 0066 ActionsCard { 0067 batchId: root.batchId 0068 editor: root.editor 0069 reservation: root.reservation 0070 } 0071 } 0072 }