2018-05-18 12:03:03 +02:00
< div id = "converse-login-panel" class = "controlbox-pane fade-in row no-gutters" >
2018-03-07 17:48:53 +01:00
< form id = "converse-login" class = "converse-form" method = "post" >
< div class = "conn-feedback fade-in {[ if (!o.conn_feedback_subject) { ]} hidden {[ } ]} {{{o.conn_feedback_class}}}" >
< p class = "feedback-subject" > {{{ o.conn_feedback_subject }}}< / p >
< p class = "feedback-message {[ if (!o.conn_feedback_message) { ]} hidden {[ } ]}" > {{{o.conn_feedback_message}}}< / p >
< / div >
{[ if (o.auto_login || o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') { ]}
2018-03-11 13:56:53 +01:00
< span class = "spinner fa fa-spinner centered" / >
2018-03-07 17:48:53 +01:00
{[ } else { ]}
{[ if (o.authentication == o.LOGIN || o.authentication == o.EXTERNAL) { ]}
< div class = "form-group" >
2018-05-17 18:25:12 +02:00
< label for = "converse-login-jid" > {{{o.__("XMPP Username:")}}}< / label >
< input id = "converse-login-jid" class = "form-control" autofocus required = "required" type = "text" name = "jid" placeholder = "{{{o.placeholder_username}}}" >
2018-03-07 17:48:53 +01:00
< / div >
{[ if (o.authentication !== o.EXTERNAL) { ]}
< div class = "form-group" >
2018-05-17 18:25:12 +02:00
< label for = "converse-login-password" > {{{o.__("Password:")}}}< / label >
< input id = "converse-login-password" class = "form-control" required = "required" type = "password" name = "password" placeholder = "{{{o.__('password')}}}" >
2018-03-07 17:48:53 +01:00
< / div >
2017-11-10 21:20:13 +01:00
{[ } ]}
2018-05-17 18:25:12 +02:00
< div class = "form-group form-check" >
2018-05-18 12:21:02 +02:00
< input id = "converse-login-trusted" type = "checkbox" class = "form-check-input" name = "trusted" { [ if ( o . _converse . trusted ) { ] } checked = "checked" { [ } ] } >
2018-05-17 18:25:12 +02:00
< label for = "converse-login-trusted" class = "form-check-label" > {{{o.__('This is a trusted device')}}}< / label >
< i class = "fa fa-info-circle" data-toggle = "popover"
2018-05-18 12:03:03 +02:00
data-title="Trusted device?"
data-content="{{{o.__('To improve performance, we cache your data in this browser. Uncheck this box if this is a public computer or if you want your data to be deleted when you log out. It\'s important that you explicitly log out, otherwise not all cached data might be deleted.')}}}">< / i >
2018-05-17 18:25:12 +02:00
< / div >
2018-03-07 17:48:53 +01:00
< fieldset class = "buttons" >
2018-05-17 18:25:12 +02:00
< input class = "btn btn-primary" type = "submit" value = "{{{o.__('Log in')}}}" >
2018-03-07 17:48:53 +01:00
< / fieldset >
{[ } ]}
{[ if (o.authentication == o.ANONYMOUS) { ]}
2018-03-11 12:04:13 +01:00
< input class = "btn btn-primary login-anon" type = "submit" value = "{{{o.__('Click here to log in anonymously')}}}" / >
2018-03-07 17:48:53 +01:00
{[ } ]}
{[ if (o.authentication == o.PREBIND) { ]}
< p > Disconnected.< / p >
2018-02-24 19:59:25 +01:00
{[ } ]}
2018-03-07 17:48:53 +01:00
{[ } ]}
< / form >
2017-11-10 21:20:13 +01:00
< / div >