{% extends "cranefly/usercp/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_('Change your Username')) }}{% endblock %} {% block action %}

{% trans %}Change your Username{% endtrans %}

{% if message %}
{{ macros.draw_message(message) }}
{% endif %}
{{ form_theme.hidden_fields(form) }}
{% if changes_left == 0 %} {{ form_theme.row(form.username, attrs={'class': 'span9', 'disabled': 'disabled'}) }} {% else %} {{ form_theme.row(form.username, attrs={'class': 'span9'}) }} {% endif %}
{% if changes_left > 0 -%} {% trans changes=changes_left -%} You can change your username one more time. {%- pluralize -%} You can change your username {{ changes }} more times. {%- endtrans %} {%- elif acl.usercp.changes_expire() -%} {% trans next_change=next_change|reldate|low %}You will be able to change your username on {{ next_change }}{% endtrans %} {%- else -%} {% trans %}You have exceeded the maximum number of name changes.{% endtrans %} {%- endif %}
{% endblock %}