@@ -23,19 +23,9 @@ import ".." as LocalComponents
2323LocalComponents.Page {
2424 objectName: "ubuntuAccountSignUpPage"
2525
26− title: webview.visible ? i18n.tr("Terms And Conditions") : i18n.tr("Create Account")
26+ title: i18n.tr("Create Account")
2727 customTitle: true
28− customBack: true
29− backButtonText: webview.visible ? i18n.tr("Back") : i18n.tr("Cancel")
30− forwardButtonSourceComponent: !webview.visible ? forwardButton : null
31−
32− onBackClicked: {
33− if (webview.visible) {
34− webview.visible = false;
35− } else {
36− pageStack.prev();
37− }
38− }
28+ buttonBarVisible: false
3929
4030 Flickable
4131 {
@@ -148,60 +138,32 @@ LocalComponents.Page {
148138 KeyNavigation.tab: emailInput
149139 }
150140
151−// LocalComponents.CheckableSetting {
152−// id: encryptCheck
153−// objectName: "encryptCheck"
154−// showDivider: false
155−// anchors.left: parent.left
156−// anchors.right: parent.right
157−// anchors.top: pass2Input.bottom
158−// anchors.topMargin: units.gu(2)
159−// text: i18n.tr("Encrypt my content")
160−// KeyNavigation.tab: emailInput
161−// }
162−
163− // LocalComponents.CheckableSetting {
164− // id: optoutCheck
165− // objectName: "optoutCheck"
166− // showDivider: false
167− // anchors.left: parent.left
168− // anchors.right: parent.right
169− // anchors.top: encryptCheck.bottom
170− // anchors.topMargin: units.gu(2)
171− // text: i18n.tr("Opt out of cloud account (not recommended)")
172− // KeyNavigation.tab: termsCheck
173− // }
174−
175− // LocalComponents.CheckableSetting {
176− // id: termsCheck
177− // objectName: "termsCheck"
178− // showDivider: false
179− // anchors.left: parent.left
180− // anchors.right: parent.right
181− // anchors.top: encryptCheck.bottom
182− // anchors.topMargin: units.gu(1)
183− // text: i18n.tr("I have read and accept the Ubuntu account <a href='#'>terms of service</a>")
184− // onLinkActivated: {
185− // webview.visible = true;
186− // webview.url = "https://login.ubuntu.com/terms/";
187− // }
188− // KeyNavigation.tab: emailInput
189− // }
190− }
191−
192− WebView {
193− id: webview
194− objectName: "webview"
195− anchors.fill: content
196− visible: false
197− }
141+ // buttons
142+ Button {
143+ id: cancelButton
144+ anchors {
145+ top: pass2Input.bottom
146+ left: parent.left
147+ right: parent.horizontalCenter
148+ rightMargin: units.gu(1)
149+ topMargin: units.gu(4)
150+ }
151+ text: i18n.tr("Cancel")
152+ onClicked: pageStack.prev()
153+ }
198154
199− Component {
200− id: forwardButton
201− LocalComponents.StackButton {
155+ Button {
156+ id: okButton
157+ anchors {
158+ top: pass2Input.bottom
159+ left: parent.horizontalCenter
160+ right: parent.right
161+ leftMargin: units.gu(1)
162+ topMargin: units.gu(4)
163+ }
164+ text: i18n.tr("Sign Up")
202165 enabled: emailInput.acceptableInput && nameInput.text !== "" &&
203166 pass2Input.text.length > 7 && passInput.text === pass2Input.text
204− text: i18n.tr("Sign Up")
205167 onClicked: {
206168 root.password = passInput.text;
207169 AccountsService.realName = nameInput.text;