2015-08-02 11:59:11 -07:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="well col-sm-6 col-sm-offset-2">
|
2016-11-09 10:24:33 -08:00
|
|
|
<h2 style="margin-top: 0">{{_('Login')}}</h2>
|
2015-08-02 11:59:11 -07:00
|
|
|
<form method="POST" role="form">
|
2017-07-07 18:18:03 -07:00
|
|
|
<input type="hidden" name="next" value="{{next_url}}">
|
2015-08-02 11:59:11 -07:00
|
|
|
<div class="form-group">
|
2016-11-09 10:24:33 -08:00
|
|
|
<label for="username">{{_('Username')}}</label>
|
|
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="{{_('Username')}}">
|
2015-08-02 11:59:11 -07:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-11-09 10:24:33 -08:00
|
|
|
<label for="password">{{_('Password')}}</label>
|
|
|
|
<input type="password" class="form-control" id="password" name="password" placeholder="{{_('Password')}}">
|
2015-08-02 11:59:11 -07:00
|
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2016-11-09 10:24:33 -08:00
|
|
|
<input type="checkbox" name="remember_me" checked> {{_('Remember me')}}
|
2015-08-02 11:59:11 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
2017-02-15 09:09:17 -08:00
|
|
|
<button type="submit" name="submit" class="btn btn-default">{{_('Submit')}}</button>
|
2017-07-07 18:18:03 -07:00
|
|
|
{% if remote_login %}
|
|
|
|
<a href="{{url_for('remote_login')}}" class="pull-right">{{_('Log in with magic link')}}</a>
|
|
|
|
{% endif %}
|
2015-08-02 11:59:11 -07:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% if error %}
|
|
|
|
<div class="col-sm-6 col-sm-offset-2">
|
|
|
|
<div class="alert alert-danger">{{error}}</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|