summaryrefslogtreecommitdiff
path: root/Shop/Checkout/PersonalInfo/PaymentMethod/NetBanking.ui.qml
blob: a776ee067515abe950111f2644ace6a23536a256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Eduport 1.4

ColumnLayout {
	property alias banks: banks

	Label {
		text: qsTr("Pay with Net Banking")
		wrapMode: Label.Wrap
		Layout.fillWidth: true
		Layout.rightMargin: 16
		Layout.leftMargin: 16
		Layout.topMargin: 16
	}

	ColumnLayout {
		Layout.margins: 16

		Label {
			text: qsTr("In order to complete your transaction, we will transfer you over to Eduport secure servers.")
			wrapMode: Label.Wrap
			Layout.fillWidth: true
		}

		Label {
			text: qsTr("Select your bank from the drop-down list and click proceed to continue with your payment.")
			wrapMode: Label.Wrap
			Layout.fillWidth: true
		}

		ComboBox {
			id: banks
			Layout.fillWidth: true
			Layout.topMargin: 24
			font: Eduport.bsBodyFont
			model: ListModel {
				ListElement {
					label: "Please choose one"
				}
				ListElement {
					label: "Bank of America"
				}
				ListElement {
					label: "Bank of India"
				}
				ListElement {
					label: "Bank of London"
				}
			}
			contentItem: Text {
				text: banks.displayText
				font: banks.font
				color: Eduport.bsBodyColor
				verticalAlignment: Text.AlignVCenter
			}
			background: Rectangle {
				width: banks.width
				color: Eduport.bsBodyBg
				radius: 8
			}
			delegate: ItemDelegate {
				contentItem: Text {
					text: label
					font: banks.font
					color: Eduport.bsBodyColor
					verticalAlignment: Text.AlignVCenter
				}
				background: Rectangle {
					width: banks.width
					color: Eduport.bsBodyBg
				}
			}
		}
	}
}