mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 17:43:46 +01:00
83 lines
2.4 KiB
HTML
83 lines
2.4 KiB
HTML
{% 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>
|
|
|
|
<form action="" method="POST" class="form" role="form" class="box-body">
|
|
<a href="{{ url_for('github_signin_page') }}">GitHub</a>
|
|
|
|
|
|
{{ 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>
|
|
{{ field(class_='form-control', tabindex=120) }}
|
|
{% if field.errors %}
|
|
{% for e in field.errors %}
|
|
<p class="help-block">{{ e }}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
{# Remember me #}
|
|
{% if user_manager.enable_remember_me %}
|
|
{{ render_checkbox_field(login_form.remember_me, tabindex=130) }}
|
|
{% endif %}
|
|
|
|
{# Submit button #}
|
|
{{ render_submit_field(form.submit, tabindex=180) }}
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
<aside class="box box_grey">
|
|
<h2>New here?</h2>
|
|
|
|
<div class="box-body">
|
|
<p>Create an account using your forum account.</p>
|
|
|
|
<a href="{{ url_for('user_claim_page') }}" class="button">{%trans%}Claim your account{%endtrans%}</a>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|