summaryrefslogtreecommitdiff
path: root/features/ProfileForm.ui.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 11:59:57 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 11:59:57 +0800
commitaf814b7312868cbfb54ebc994a7996c81d0f9670 (patch)
tree6c83a6cef3a84c976b7eabbc136fd351690fb531 /features/ProfileForm.ui.qml
parent9cfffd5b6ea437fef61512728472999158a084b7 (diff)
Profile edit components are copied but hidden
Diffstat (limited to 'features/ProfileForm.ui.qml')
-rw-r--r--features/ProfileForm.ui.qml55
1 files changed, 55 insertions, 0 deletions
diff --git a/features/ProfileForm.ui.qml b/features/ProfileForm.ui.qml
index 452a895..6aa5d73 100644
--- a/features/ProfileForm.ui.qml
+++ b/features/ProfileForm.ui.qml
@@ -6,9 +6,13 @@ import QtQuick.Layouts 1.12
Page {
property alias backButton: backButton
property alias editToolButton: editToolButton
+ property alias saveProfileButton: saveProfileButton
property alias fullnameLabel: fullnameLabel
+ property alias fullnameTextField: fullnameTextField
property alias usernameLabel: usernameLabel
+ property alias usernameTextField: usernameTextField
property alias userEmailLabel: userEmailLabel
+ property alias userEmailTextField: userEmailTextField
header: ToolBar{
background: Rectangle {
@@ -46,6 +50,21 @@ Page {
highlighted: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
+ Button {
+ id: saveProfileButton
+ text: qsTr("Save")
+ leftPadding: 8
+ rightPadding: 8
+ padding: 8
+ highlighted: true
+ font.weight: Font.Medium
+ display: AbstractButton.TextOnly
+ font.family: "Work Sans"
+ font.capitalization: Font.MixedCase
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ Layout.rightMargin: 8
+ visible: false
+ }
}
}
@@ -101,6 +120,18 @@ Page {
text: qsTr("Full name")
Layout.alignment: Qt.AlignVCenter
}
+
+ TextField {
+ id: fullnameTextField
+ Layout.rightMargin: 16
+ Layout.leftMargin: 24
+ font.pointSize: 16
+ font.family: "Work Sans"
+ Layout.fillWidth: true
+ placeholderText: qsTr("Full name")
+ Layout.alignment: Qt.AlignVCenter
+ visible: false
+ }
}
RowLayout {
id: usernameRowLayout
@@ -134,6 +165,18 @@ Page {
Layout.fillWidth: true
text: qsTr("Username")
}
+
+ TextField {
+ id: usernameTextField
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ Layout.rightMargin: 16
+ Layout.leftMargin: 24
+ font.pointSize: 16
+ font.family: "Work Sans"
+ Layout.fillWidth: true
+ placeholderText: qsTr("Username")
+ visible: false
+ }
}
RowLayout {
@@ -168,6 +211,18 @@ Page {
font.family: "Work Sans"
font.pointSize: 16
}
+
+ TextField {
+ id: userEmailTextField
+ Layout.fillWidth: true
+ placeholderText: qsTr("Your@email.com")
+ Layout.rightMargin: 16
+ Layout.leftMargin: 24
+ verticalAlignment: Text.AlignVCenter
+ font.family: "Work Sans"
+ font.pointSize: 16
+ visible: false
+ }
}
ItemDelegate {