summaryrefslogtreecommitdiff
path: root/gui/qml/LoginDialog.qml
diff options
context:
space:
mode:
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
+}