kaiwa/views/login.jade

30 lines
994 B
Plaintext
Raw Normal View History

2013-09-05 19:53:23 -04:00
extends layout
block content
2013-09-18 13:45:40 -04:00
section#loginbox.content.box
.head
h2
2013-09-18 13:45:40 -04:00
| Log in
2013-09-05 19:53:23 -04:00
2013-09-18 13:45:40 -04:00
.content
2013-09-18 13:45:40 -04:00
form
.fieldContainer
label(for='username') Username
input(type='text', id='jid', name='jid', placeholder='you', tabindex='1', autofocus)
2013-09-18 13:45:40 -04:00
.fieldContainer
label(for='password') Password
input(type='password', id='password', name='password', placeholder='•••••••••••••', tabindex='2')
2014-11-21 14:11:23 -05:00
.fieldContainer.fieldContainerWSS
label(for='wsURL') WebSocket or BOSH URL
input(type='text', id='connURL', name='connURL', placeholder='wss://aweso.me:5281/xmpp-websocket', tabindex='3')
2013-09-18 13:45:40 -04:00
2013-10-24 17:32:20 -04:00
button(type='submit', tabindex='3', class="primary") Go!
2013-09-05 19:53:23 -04:00
block scripts
script(src="/config.js")
2013-09-16 05:19:07 -04:00
script(src="/js/login.js")
2014-11-21 14:11:23 -05:00
script.
if ("#{config.wss}".length == 0)
$('.fieldContainerWSS').show();