2018-03-18 18:43:30 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Sign in
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="sidebar_container">
|
|
|
|
<div class="left box box_grey">
|
|
|
|
{% from "flask_user/_macros.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
|
|
<h2>{%trans%}Sign in{%endtrans%}</h2>
|
|
|
|
|
2018-05-21 23:42:02 +02:00
|
|
|
<form action="" method="POST" class="form box-body" role="form">
|
2018-05-18 22:35:54 +02:00
|
|
|
<a href="{{ url_for('github_signin_page') }}">GitHub</a>
|
|
|
|
|
|
|
|
|
2018-03-18 18:43:30 +01:00
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
|
|
|
{# Username or Email field #}
|
|
|
|
{% set field = form.username if user_manager.enable_username else form.email %}
|
|
|
|
<div class="form-group {% if field.errors %}has-error{% endif %}">
|
|
|
|
{# Label on left, "New here? Register." on right #}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<label for="{{ field.id }}" class="control-label">{{ field.label.text }}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ field(class_='form-control', tabindex=110) }}
|
|
|
|
{% if field.errors %}
|
|
|
|
{% for e in field.errors %}
|
|
|
|
<p class="help-block">{{ e }}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{# Password field #}
|
|
|
|
{% set field = form.password %}
|
|
|
|
<div class="form-group {% if field.errors %}has-error{% endif %}">
|
|
|
|
{# Label on left, "Forgot your Password?" on right #}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<label for="{{ field.id }}" class="control-label">{{ field.label.text }}</label>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 text-right">
|
|
|
|
{% if user_manager.enable_forgot_password %}
|
|
|
|
<a href="{{ url_for('user.forgot_password') }}" tabindex='195'>
|
|
|
|
{%trans%}Forgot your Password?{%endtrans%}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-21 23:42:02 +02:00
|
|
|
{{ field(class_='form-control', tabindex=120) }}
|
|
|
|
{% if field.errors %}
|
|
|
|
{% for e in field.errors %}
|
|
|
|
<p class="help-block">{{ e }}</p>
|
|
|
|
{% endfor %}
|
2018-03-18 18:43:30 +01:00
|
|
|
{% endif %}
|
2018-05-21 23:42:02 +02:00
|
|
|
</div>
|
2018-03-18 18:43:30 +01:00
|
|
|
|
2018-05-21 23:42:02 +02:00
|
|
|
{# Remember me #}
|
|
|
|
{% if user_manager.enable_remember_me %}
|
|
|
|
{{ render_checkbox_field(login_form.remember_me, tabindex=130) }}
|
|
|
|
{% endif %}
|
2018-05-14 00:31:42 +02:00
|
|
|
|
2018-05-21 23:42:02 +02:00
|
|
|
{# Submit button #}
|
|
|
|
{{ render_submit_field(form.submit, tabindex=180) }}
|
|
|
|
</form>
|
2018-03-18 18:43:30 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
<aside class="box box_grey">
|
|
|
|
<h2>New here?</h2>
|
|
|
|
|
2018-05-18 22:35:54 +02:00
|
|
|
<div class="box-body">
|
|
|
|
<p>Create an account using your forum account.</p>
|
2018-03-18 19:05:53 +01:00
|
|
|
|
2018-05-18 22:35:54 +02:00
|
|
|
<a href="{{ url_for('user_claim_page') }}" class="button">{%trans%}Claim your account{%endtrans%}</a>
|
|
|
|
</div>
|
2018-03-18 19:05:53 +01:00
|
|
|
</aside>
|
2018-03-18 18:43:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|