{% 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=_('Sign In')) }}{% endblock %} {% block content %}

{% trans %}Sign In to Your Account{% endtrans %}

{% if message %}
{{ macros.draw_message_icon(message) }}

{{ message.message }}

{% if bad_password %}

{% trans %}Click here if you forgot your sign in credentials.{% endtrans %}

{% endif %} {% if not_active %}

{% trans %}Click here if you didn't receive activation e-mail.{% endtrans %}

{% endif %} {% if banned_account.reason_user %} {{ banned_account.reason_user|markdown|safe }} {% endif %} {% if banned_account.expires %}

{% trans ban_expires=banned_account.expires|date %}Your ban will expire on {{ ban_expires }}{% endtrans %}

{% endif %}
{% endif %}
{{ form_theme.hidden_fields(form) }} {{ form_theme.row(form.user_email, attrs={'class': 'span4', 'placeholder': lang_singnin_enter_email()}) }} {{ form_theme.row(form.user_password, attrs={'class': 'span4', 'placeholder':lang_singnin_enter_password()}) }} {% if 'user_remember_me' in form.fields %} {{ form_theme.row(form.user_remember_me) }} {% endif %}
{% endblock %} {# Language strings macros #} {% macro lang_singnin_enter_email() -%}{% trans %}Enter your e-mail{% endtrans %}{%- endmacro %} {% macro lang_singnin_enter_password() -%}{% trans %}Enter your password{% endtrans %}{%- endmacro %}