Commit bdc512a8 authored by Volker Krause's avatar Volker Krause
Browse files

Hide fields if they have no content

parent 7ba7cf9a
......@@ -33,6 +33,7 @@ App.DetailsPage {
App.PlaceDelegate {
Kirigami.FormData.label: i18n("Location:")
Kirigami.FormData.labelAlignment: Qt.AlignTop
place: reservationFor
controller: root.controller
}
......@@ -62,10 +63,12 @@ App.DetailsPage {
QQC2.Label {
Kirigami.FormData.label: i18n("Booking reference:")
text: reservation.reservationNumber
visible: reservation.reservationNumber != ""
}
QQC2.Label {
Kirigami.FormData.label: i18n("Under name:")
text: reservation.underName.name
visible: reservation.underName.name != ""
}
}
}
......@@ -33,6 +33,7 @@ App.DetailsPage {
App.PlaceDelegate {
Kirigami.FormData.label: i18n("Location:")
Kirigami.FormData.labelAlignment: Qt.AlignTop
place: reservationFor
controller: root.controller
}
......@@ -40,11 +41,13 @@ App.DetailsPage {
QQC2.Label {
Kirigami.FormData.label: i18n("Telephone:")
text: Util.textToHtml(reservationFor.telephone)
visible: reservationFor.telephone != ""
onLinkActivated: Qt.openUrlExternally(link)
}
QQC2.Label {
Kirigami.FormData.label: i18n("Email:")
text: Util.textToHtml(reservationFor.email)
visible: reservationFor.email != ""
onLinkActivated: Qt.openUrlExternally(link)
}
......@@ -64,10 +67,12 @@ App.DetailsPage {
QQC2.Label {
Kirigami.FormData.label: i18n("Booking reference:")
text: reservation.reservationNumber
visible: reservation.reservationNumber != ""
}
QQC2.Label {
Kirigami.FormData.label: i18n("Under name:")
text: reservation.underName.name
visible: reservation.underName.name != ""
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment