AusweisApp2/resources/qml/Governikus/IdentifyView/+ios/IdentifyViewContent.qml

127 lines
3.2 KiB
QML
Raw Normal View History

2018-03-28 15:10:51 +02:00
import QtQuick 2.7
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
import Governikus.Provider 1.0
2018-03-28 15:10:51 +02:00
import Governikus.TitleBar 1.0
2017-07-03 09:33:28 +02:00
2018-03-28 15:10:51 +02:00
SectionPage {
id: baseItem
2017-07-03 09:30:10 +02:00
2018-03-28 15:10:51 +02:00
leftTitleBarAction: TitleBarAction {
state: "cancel"
onClicked: authModel.cancelWorkflow()
}
headerTitleBarAction: TitleBarAction { text: qsTr("Identify") + settingsModel.translationTrigger; font.bold: true }
2017-07-03 09:30:10 +02:00
2018-03-28 15:10:51 +02:00
content: Column {
width: baseItem.width
padding: Constants.pane_padding
2017-07-03 09:30:10 +02:00
2018-03-28 15:10:51 +02:00
Column {
width: parent.width - 2 * Constants.pane_padding
2017-12-20 14:54:05 +01:00
2018-03-28 15:10:51 +02:00
spacing: Constants.component_spacing
2017-07-03 09:30:10 +02:00
2018-03-28 15:10:51 +02:00
Text {
color: Constants.secondary_text
font.pixelSize: Constants.normal_font_size
2017-07-03 09:33:28 +02:00
width: parent.width
2018-03-28 15:10:51 +02:00
wrapMode: Text.WordWrap
text: qsTr("You are about to identify yourself towards the following service provider:") + settingsModel.translationTrigger
}
Pane {
Item {
width: parent.width
height: providerEntries.height
Column {
id: providerEntries
anchors.top: parent.top
anchors.left: parent.left
anchors.right: forwardAction.left
spacing: Constants.pane_spacing
ProviderInfoSection {
imageSource: "qrc:///images/provider/information.svg"
title: qsTr("Service provider") + settingsModel.translationTrigger
name: certificateDescriptionModel.subjectName
}
ProviderInfoSection {
imageSource: "qrc:///images/provider/purpose.svg"
title: qsTr("Purpose for reading out requested data") + settingsModel.translationTrigger
name: certificateDescriptionModel.purpose
}
2017-07-03 09:33:28 +02:00
}
2018-03-28 15:10:51 +02:00
Text {
id: forwardAction
anchors.right: parent.right
anchors.verticalCenter: providerEntries.verticalCenter
2017-07-03 09:33:28 +02:00
2018-03-28 15:10:51 +02:00
text: ">"
font.pixelSize: Utils.sp(22)
color: Constants.grey
}
2017-07-03 09:33:28 +02:00
2018-03-28 15:10:51 +02:00
MouseArea {
anchors.fill: parent
onClicked: firePush(certificateDescriptionPage, {})
}
2017-07-03 09:33:28 +02:00
2018-03-28 15:10:51 +02:00
CertificateDescriptionPage {
id: certificateDescriptionPage
name: certificateDescriptionModel.subjectName
visible: false
}
2017-07-03 09:30:10 +02:00
}
}
2017-07-03 09:33:28 +02:00
2018-03-28 15:10:51 +02:00
GButton {
iconSource: "qrc:///images/npa.svg"
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Identify now") + settingsModel.translationTrigger;
onClicked: {
2017-07-03 09:30:10 +02:00
chatModel.transferAccessRights()
2017-07-03 09:33:28 +02:00
numberModel.continueWorkflow()
2017-07-03 09:30:10 +02:00
}
}
2017-07-03 09:33:28 +02:00
2017-12-20 14:54:05 +01:00
Text {
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-12-20 14:54:05 +01:00
font.pixelSize: Constants.normal_font_size
2018-03-28 15:10:51 +02:00
width: parent.width
2017-12-20 14:54:05 +01:00
wrapMode: Text.WordWrap
2018-03-28 15:10:51 +02:00
text: qsTr("The following data will be transferred to the service provider when you enter the PIN:") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
}
2018-03-28 15:10:51 +02:00
Pane {
id: transactionInfo
title: qsTr("Transactional information") + settingsModel.translationTrigger
visible: !!transactionInfoText.text
Text {
id: transactionInfoText
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
2018-03-28 15:10:51 +02:00
width: parent.width
font.pixelSize: Constants.normal_font_size
text: authModel.transactionInfo
wrapMode: Text.WordWrap
}
}
DataGroup {
title: qsTr("Required Data") + settingsModel.translationTrigger
chat: chatModel.required
}
DataGroup {
title: qsTr("Optional Data") + settingsModel.translationTrigger
chat: chatModel.optional
}
2017-07-03 09:30:10 +02:00
}
}
}