aboutsummaryrefslogtreecommitdiff
path: root/templates/login.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/login.qtpl')
-rw-r--r--templates/login.qtpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/login.qtpl b/templates/login.qtpl
new file mode 100644
index 0000000..eee5711
--- /dev/null
+++ b/templates/login.qtpl
@@ -0,0 +1,31 @@
+{% code
+type LoginPage struct {
+}
+%}
+
+{% func (p *LoginPage) Title() %}Hello{% endfunc %}
+
+{% func (p *LoginPage) Navbar() %}{%= Navbar(Login) %}{% endfunc %}
+
+{% func (p *LoginPage) Content() %}
+<div class="row">
+ <div class="col-md-6 offset-md-3">
+ <form>
+ <div class="form-group m-3">
+ <label for="username" class="form-label">Username</label>
+ <input type="text" class="form-control" id="username" aria-describedby="emailHelp">
+ </div>
+ <div class="form-group m-3">
+ <label for="password" class="form-label">Password</label>
+ <input type="password" class="form-control" id="password">
+ </div>
+ <div class="form-group m-3">
+ <button type="submit" class="btn btn-primary">Login</button>
+ </div>
+ </form>
+ </div>
+</div>
+{% endfunc %}
+
+{% func (p *LoginPage) Script() %}
+{% endfunc %}