on xenial help sign in
some shuffling (again) due to different workflow

uaccount main page gets hidden temporarily, will be implemented in phase 2

commit3855f5e1b075f59ae8fff817db56c88b1e30aa42 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 14 Jul 2015, 17:34 (11 years ago) parent1866aa4
4 files changed+17−75
qml/Wizard/Pages/uaccount-signup.qml → qml/Wizard/Pages/60-uaccount-signup.qml+17−6 qml/Wizard/Pages/60-passwd-type.qml → qml/Wizard/Pages/70-passwd-type.qml qml/Wizard/Pages/70-reporting.qml−69 qml/Wizard/Pages/55-uaccount.qml → qml/Wizard/Pages/uaccount.qml
qml/Wizard/Pages/uaccount-signup.qml → qml/Wizard/Pages/60-uaccount-signup.qmlrenamed+17−6
@@ -26,10 +26,6 @@ LocalComponents.Page {
2626 backButtonText: i18n.tr("Cancel")
2727 forwardButtonSourceComponent: forwardButton
2828
29− Component.onCompleted: {
30− emailInput.forceActiveFocus()
31− }
32−
3329 Item {
3430 id: column
3531 anchors.fill: content
@@ -123,6 +119,18 @@ LocalComponents.Page {
123119 anchors.top: pass2Label.bottom
124120 anchors.topMargin: units.gu(1)
125121 echoMode: TextInput.Password
122+ KeyNavigation.tab: encryptCheck
123+ }
124+
125+ LocalComponents.CheckableSetting {
126+ id: encryptCheck
127+ objectName: "encryptCheck"
128+ showDivider: false
129+ anchors.left: parent.left
130+ anchors.right: parent.right
131+ anchors.top: pass2Input.bottom
132+ anchors.topMargin: units.gu(3)
133+ text: i18n.tr("Encrypt my content")
126134 KeyNavigation.tab: optoutCheck
127135 }
128136
@@ -132,10 +140,11 @@ LocalComponents.Page {
132140 showDivider: false
133141 anchors.left: parent.left
134142 anchors.right: parent.right
135− anchors.top: pass2Input.bottom
143+ anchors.top: encryptCheck.bottom
136144 anchors.topMargin: units.gu(3)
137145 text: i18n.tr("Opt out of cloud account (not recommended)")
138146 KeyNavigation.tab: termsCheck
147+ visible: false
139148 }
140149
141150 LocalComponents.CheckableSetting {
@@ -149,13 +158,15 @@ LocalComponents.Page {
149158 text: i18n.tr("I have read and accept the Ubuntu account <a href='#'>terms of service</a>")
150159 //onLinkActivated: pageStack.load(Qt.resolvedUrl("here-terms.qml")) // TODO show terms
151160 KeyNavigation.tab: emailInput
161+ visible: false
152162 }
153163 }
154164
155165 Component {
156166 id: forwardButton
157167 LocalComponents.StackButton {
158− enabled: emailInput.acceptableInput && termsCheck.checked &&
168+ enabled: emailInput.acceptableInput &&
169+ //termsCheck.checked && // FIXME re-enable when the checkboxes get visible again
159170 passInput.text !== "" && pass2Input.text !== "" && passInput.text === pass2Input.text
160171 text: i18n.tr("Sign Up")
161172 onClicked: pageStack.next() // TODO sign up against U1
qml/Wizard/Pages/60-passwd-type.qml → qml/Wizard/Pages/70-passwd-type.qmlrenamed

The content is the same.

qml/Wizard/Pages/70-reporting.qmldeleted−69
@@ -1,69 +0,0 @@
1−/*
2− * Copyright (C) 2013-2015 Canonical, Ltd.
3− *
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.
7− *
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.
12− *
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/>.
15− */
16−
17−import QtQuick 2.3
18−import Ubuntu.Components 1.2
19−import ".." as LocalComponents
20−
21−LocalComponents.Page {
22− objectName: "reportingPage"
23−
24− title: i18n.tr("Help us improve")
25− forwardButtonSourceComponent: forwardButton
26−
27− Column {
28− id: column
29− anchors.fill: content
30− spacing: units.gu(3)
31− anchors.topMargin: units.gu(4)
32−
33− LocalComponents.CheckableSetting {
34− id: reportCheck
35− objectName: "reportCheck"
36− showDivider: false
37− text: i18n.tr("Improve your system performance by sending us crashes and error reports.")
38− checked: true
39− }
40−
41− Label {
42− anchors.left: parent.left
43− anchors.leftMargin: reportCheck.labelOffset
44− anchors.right: parent.right
45− wrapMode: Text.Wrap
46− text: i18n.tr("Privacy policy")
47− color: UbuntuColors.orange
48− font.weight: Font.Light
49− fontSize: "small"
50− MouseArea {
51− anchors.fill: parent
52− cursorShape: Qt.PointingHandCursor
53− onClicked: {
54− // TODO
55− print("Display privacy policy")
56− }
57− }
58− }
59− }
60−
61− Component {
62− id: forwardButton
63− LocalComponents.StackButton {
64− // TODO save the policy somewhere?
65− text: i18n.tr("Next")
66− onClicked: pageStack.next()
67− }
68− }
69−}
qml/Wizard/Pages/55-uaccount.qml → qml/Wizard/Pages/uaccount.qmlrenamed

The content is the same.