summaryrefslogtreecommitdiff
path: root/gui/qml/LoginDialog.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-17 13:17:16 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-06-26 12:13:41 +0200
commit253b12e140905d3a38bcd09d55b9c5dbf0601d66 (patch)
tree3c2da8b70ebe0536cb4382b54d8a1a8c04f5cc4a /gui/qml/LoginDialog.qml
parent35971c9a80879728a7bec38494a1edc1ecbf740f (diff)
[feat] working about dialog
Diffstat (limited to 'gui/qml/LoginDialog.qml')
-rw-r--r--gui/qml/LoginDialog.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/gui/qml/LoginDialog.qml b/gui/qml/LoginDialog.qml
new file mode 100644
index 0000000..fbe5ce1
--- /dev/null
+++ b/gui/qml/LoginDialog.qml
@@ -0,0 +1,28 @@
+import QtQuick 2.0
+import QtQuick.Dialogs 1.2
+import QtQuick.Controls 1.4
+
+Dialog {
+ standardButtons: StandardButton.Ok
+ title: "Login"
+ Column {
+ anchors.fill: parent
+ Text {
+ text: "Log in with your library credentials"
+ }
+ TextField {
+ id: username
+ placeholderText: "patron id"
+ }
+ TextField {
+ id: password
+ placeholderText: "password"
+ echoMode: TextInput.PasswordEchoOnEdit
+ }
+ }
+
+ visible: false
+ //visible: ctx.showLogin == true
+ //onAccepted: backend.login(username.text, password.text)
+ onRejected: backend.quit() // TODO: it doesn't close
+}