From 51c0b6dfd3ab9dacf9bfc35d22834d95050f1634 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Thu, 27 Oct 2016 18:02:41 +0200
Subject: Add LoginForm.

---
 src/components/login_form/login_form.vue | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/components/login_form/login_form.vue

(limited to 'src/components/login_form/login_form.vue')

diff --git a/src/components/login_form/login_form.vue b/src/components/login_form/login_form.vue
new file mode 100644
index 00000000..94fb885d
--- /dev/null
+++ b/src/components/login_form/login_form.vue
@@ -0,0 +1,25 @@
+<template>
+  <div class="panel panel-default">
+    <!-- Default panel contents -->
+    <div class="panel-heading">
+      Log in
+    </div>
+    <div class="panel-body">
+      <form v-on:submit.prevent='submit(user)'>
+        <div class='form-group'>
+          <label for='username'>Username</label>
+          <input :disabled="loggingIn" v-model='user.username' class='form-control' id='username' placeholder='e.g. lain'>
+        </div>
+        <div class='form-group'>
+          <label for='password'>Password</label>
+          <input :disabled="loggingIn" v-model='user.password' class='form-control' id='password' type='password'>
+        </div>
+        <div class='form-group'>
+          <button :disabled="loggingIn" type='submit' class='btn btn-default'>Submit</button>
+        </div>
+      </form>
+    </div>
+  </div>
+</template>
+
+<script src="./login_form.js" ></script>
-- 
cgit v1.2.3-70-g09d2

