WIP
This commit is contained in:
7
core/views/base.pug
Normal file
7
core/views/base.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
doctype html
|
||||
html(data-theme=user_settings.theme)
|
||||
head
|
||||
link(rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css")
|
||||
script(src="https://unpkg.com/htmx.org@1.9.12" integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" crossorigin="anonymous")
|
||||
body
|
||||
block content
|
||||
11
core/views/login-password-challenge.pug
Normal file
11
core/views/login-password-challenge.pug
Normal file
@@ -0,0 +1,11 @@
|
||||
div#innerTarget
|
||||
form(hx-post=links.challenge_form hx-select="#innerTarget" hx-swap="outerHTML")
|
||||
fieldset
|
||||
input(type="hidden" name="state" value=state)
|
||||
input(type="text" name="username" placeholder="Username" value=username readonly)
|
||||
input(type="password" name="password" placeholder="Password")
|
||||
if error
|
||||
span=error
|
||||
input(type="submit" name="submit" value="Submit")
|
||||
if links.select_device
|
||||
a(hx-get=links.select_device hx-select="#innerTarget" hx-swap="outerHTML" href='#') Use a different device
|
||||
9
core/views/login-view.pug
Normal file
9
core/views/login-view.pug
Normal file
@@ -0,0 +1,9 @@
|
||||
extends base.pug
|
||||
|
||||
block content
|
||||
main
|
||||
form(hx-post=links.identifier_form hx-swap="outerHTML")
|
||||
fieldset
|
||||
input(type="hidden" name="state" value=state)
|
||||
input(type="text" name="username" placeholder="Username")
|
||||
input(type="submit" name="submit" value="Submit")
|
||||
Reference in New Issue
Block a user