{% extends "cranefly/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_('Register new account')) }}{% endblock %} {% block content %}

{% trans %}Register new account{% endtrans %}

{% if message %}
{{ macros.draw_message(message) }}
{% endif %}
{{ form_theme.hidden_fields(form) }}
{{ form_theme.row(form.username, attrs={'class': 'span8'}) }}
{{ form_theme.repeat(form, (form.email, form.email_rep), attrs=( {'placeholder': _("Enter your e-mail"), 'class': 'span4'}, {'placeholder': _("Repeat your e-mail"), 'class': 'span4'} )) }}
{{ form_theme.repeat(form, (form.password, form.password_rep), attrs=( {'placeholder': _("Enter your password"), 'class': 'span4'}, {'placeholder': _("Repeat your password"), 'class': 'span4'} )) }}
{% if form.has_captcha %} {{ form_theme.captcha(form, attrs={'class': 'span8'}) }} {% endif %} {% if 'accept_tos' in form.fields %}
{{ form_theme.row(form.accept_tos) }}
{% endif %}
{% endblock %} {# Translation Strings #} {% macro lang_enter_your_email() -%} {% trans %}Enter your e-mail{% endtrans %} {%- endmacro %} {% macro lang_repeat_your_email() -%} {% trans %}Repeat your e-mail{% endtrans %} {%- endmacro %} {% macro lang_enter_your_password() -%} {% trans %}Enter your password{% endtrans %} {%- endmacro %} {% macro lang_repeat_your_password() -%} {% trans %}Repeat your password{% endtrans %} {%- endmacro %}