AusweisApp2/resources/qml/Governikus/Provider/ProviderDetailHistoryInfo_t...

146 lines
3.1 KiB
QML
Raw Normal View History

2017-07-03 09:30:10 +02:00
import QtQuick 2.6
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
import Governikus.Provider 1.0
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
Item {
2017-07-03 09:30:10 +02:00
id: baseItem
property string providerName: ""
property string providerPostalAddress: ""
property string purposeText: ""
property string requestedDataText: ""
property string termsOfUsageText: ""
property string internalState: "off"
Rectangle {
anchors.fill: baseItem
color: "black"
opacity: 0.4
}
2017-07-03 09:33:28 +02:00
Flickable {
anchors.fill: baseItem
anchors.margins: Constants.component_spacing
contentHeight: infoRow.height
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
onContentYChanged: {
if (contentY < 0) { contentY = 0 /* prevent flicking over the top */}
}
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Row {
id: infoRow
2017-12-20 14:54:05 +01:00
height: Math.max(leftColumn.height, rightColumn.height) + 2 * Constants.pane_padding
2017-07-03 09:33:28 +02:00
spacing: Constants.component_spacing
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
Item {
height: 1
2017-07-03 09:33:28 +02:00
width: baseItem.width / 3
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Pane {
id: leftPane
2017-12-20 14:54:05 +01:00
height: infoRow.height
}
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
Column {
id: leftColumn
anchors.margins: Constants.pane_padding
anchors.left: parent.left
anchors.top: parent.top
anchors.right: parent.right
spacing: Constants.pane_spacing
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
ProviderInfoSection {
imageSource: "qrc:///images/provider/information.svg"
2017-12-20 14:54:05 +01:00
title: qsTr("Service provider") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
name: baseItem.providerName
2017-07-03 09:30:10 +02:00
}
2017-07-03 09:33:28 +02:00
ProviderInfoSection {
imageSource: "qrc:///images/provider/purpose.svg"
2017-12-20 14:54:05 +01:00
title: qsTr("Purpose for reading out requested data") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
name: baseItem.purposeText
2017-07-03 09:30:10 +02:00
}
2017-07-03 09:33:28 +02:00
Text {
id: readDataTitle
width: parent.width
font.pixelSize: Constants.header_font_size
2017-12-20 14:54:05 +01:00
color: Constants.blue
text: qsTr("Read data") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
}
2017-07-03 09:33:28 +02:00
Column {
id: infoTable
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
width: parent.width
spacing: 1
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Repeater {
model: baseItem.requestedDataText.split(",")
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Item {
id: textItem
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
height: Utils.dp(32)
width: infoTable.width
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Rectangle {
anchors.fill: textItem
color: "white"
}
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Text {
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:33:28 +02:00
text: modelData.trim()
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Constants.normal_font_size
2017-07-03 09:30:10 +02:00
}
}
}
}
}
}
2017-12-20 14:54:05 +01:00
Item {
height: 1
2017-07-03 09:33:28 +02:00
width: baseItem.width / 3 * 2 - 3 * Constants.component_spacing
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Pane {
id: rightPane
2017-12-20 14:54:05 +01:00
height: infoRow.height
}
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
Column {
id: rightColumn
anchors.margins: Constants.pane_padding
anchors.left: parent.left
anchors.top: parent.top
anchors.right: parent.right
spacing: Constants.pane_spacing
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Text {
id: termsOfUsageTitle
2017-12-20 14:54:05 +01:00
text: qsTr("Terms of usage") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
font.pixelSize: Constants.header_font_size
2017-12-20 14:54:05 +01:00
color: Constants.blue
2017-07-03 09:33:28 +02:00
}
2017-07-03 09:30:10 +02:00
Text {
id: termsOfUsageTextItem
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
text: baseItem.termsOfUsageText
width: parent.width
elide: Text.ElideRight
wrapMode: Text.Wrap
font.pixelSize: Constants.normal_font_size
}
}
}
}
}
}