@@ -1,91 +0,0 @@
2− * Copyright (C) 2015 Canonical, Ltd.
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU General Public License as published by
6− * the Free Software Foundation; version 3.
8− * This program is distributed in the hope that it will be useful,
9− * but WITHOUT ANY WARRANTY; without even the implied warranty of
10− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11− * GNU General Public License for more details.
13− * You should have received a copy of the GNU General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
18−import Ubuntu.Components 1.3
19−import ".." as LocalComponents
21−LocalComponents.Page {
22− objectName: "ubuntuAccountSignInPage"
24− title: i18n.tr("Sign In")
26− backButtonText: i18n.tr("Cancel")
27− forwardButtonSourceComponent: forwardButton
29− Component.onCompleted: {
30− emailInput.forceActiveFocus()
35− anchors.fill: content
39− anchors.left: parent.left
40− anchors.right: parent.right
42− text: i18n.tr("Email:")
44− font.weight: Font.Light
47− LocalComponents.WizardTextField {
49− anchors.left: parent.left
50− anchors.right: parent.right
51− anchors.top: emailLabel.bottom
52− anchors.topMargin: units.gu(1)
53− inputMethodHints: Qt.ImhEmailCharactersOnly
54− validator: RegExpValidator {
55− regExp: /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i
57− KeyNavigation.tab: passInput
62− anchors.left: parent.left
63− anchors.right: parent.right
64− anchors.top: emailInput.bottom
65− anchors.topMargin: units.gu(3)
67− text: i18n.tr("Password:")
69− font.weight: Font.Light
72− LocalComponents.WizardTextField {
74− anchors.left: parent.left
75− anchors.right: parent.right
76− anchors.top: passLabel.bottom
77− anchors.topMargin: units.gu(1)
78− echoMode: TextInput.Password
79− KeyNavigation.tab: emailInput
85− LocalComponents.StackButton {
86− enabled: emailInput.acceptableInput && passInput.text !== ""
87− text: i18n.tr("Sign In")
88− onClicked: pageStack.next() // TODO sign in against U1