xmpp.chapril.org-conversejs/src/templates/login_panel.html

32 lines
1.6 KiB
HTML
Raw Normal View History

<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">
<legend>{{{o.__("Login")}}}</legend>
<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') { ]}
<span class="spinner centered"/>
{[ } else { ]}
{[ if (o.authentication == o.LOGIN || o.authentication == o.EXTERNAL) { ]}
<label>{{{o.__("Jabber ID:")}}}</label>
<input autofocus required
type="text"
name="jid"
placeholder="{{{o.placeholder_username}}}">
{[ if (o.authentication !== o.EXTERNAL) { ]}
<label>{{{o.__("Password:")}}}</label>
<input required
type="password" name="password"
placeholder="{{{o.__('password')}}}">
{[ } ]}
<input class="pure-button button-primary" type="submit" value="{{{o.__('Submit')}}}">
2015-03-22 13:20:24 +01:00
{[ } ]}
{[ if (o.authentication == o.ANONYMOUS) { ]}
<input class="pure-button button-primary login-anon" type="submit" value="{{{o.__('Click here to log in anonymously')}}}"/>
2015-03-22 13:20:24 +01:00
{[ } ]}
{[ if (o.authentication == o.PREBIND) { ]}
2015-03-22 13:20:24 +01:00
<p>Disconnected.</p>
{[ } ]}
2015-03-22 12:14:45 +01:00
{[ } ]}
</form>