{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load crispy_forms_tags %}

{% block content %}


{% if form.errors %}
{% show_message "error" _("Please fix errors in the registration form.") %}
{% endif %}

<form action="{% url 'email_login' %}" method="post" accept-charset="utf-8">

<div class="panel panel-primary">
  <div class="panel-heading"><h4 class="panel-title">{% trans "Register email" %}</h4></div>
  <div class="panel-body">

{% csrf_token %}
{{ form|crispy }}
{% if captcha_form %}
{{ captcha_form|crispy }}
{% endif %}
<p>
{% trans "By registering you agree to use your name and email in the commits and provide your contribution under license defined by each translated project." %}
</p>
</div>
<div class="panel-footer">
<input type="submit" value="{% trans 'Register' %}" class="btn btn-default" />
</div>
</div>
</form>

{% endblock %}
