{% extends "misago/modusers/base.html" %} {% load i18n misago_editor misago_forms %} {% block title %} {{ profile }}: {% trans "Signature" %} | {{ block.super }} {% endblock title %} {% block action-name %} {% trans "Signature" %} {% endblock action-name %} {% block action-content %}
{% csrf_token %}

{% trans "Signature moderation" %}

{% include "misago/form_errors.html" %}
{% if not profile.signature %}

{% blocktrans trimmed with user=profile %} {{ user }} has no signature set. {% endblocktrans %}

{% elif profile.has_valid_signature %}
{{ profile.signature_parsed|safe }}
{% else %}

{% trans "Signature is corrupted and can't be displayed." %}

{% endif %}
{% with label_class="col-md-3" input_class="col-md-9" %}
{% editor_body editor %}
{% trans "Signature lock" %} {% form_row form.is_signature_locked label_class input_class %} {% form_row form.signature_lock_user_message label_class input_class %} {% form_row form.signature_lock_staff_message label_class input_class %}
{% endwith %}
{% if profile.is_signature_locked %}

{% trans "Signature is locked" %}

{% else %}

{% trans "Signature is editable" %}

{% endif %} {% if profile.signature_lock_user_message %}

{% trans "User message" %}

{{ profile.signature_lock_user_message|escape|urlize|linebreaksbr }}
{% endif %} {% if profile.signature_lock_staff_message %}

{% trans "Team message" %}

{{ profile.signature_lock_staff_message|escape|urlize|linebreaksbr }}
{% endif %}
{% endblock action-content %} {% block javascripts %} {{ block.super }} {% editor_js editor %} {% endblock javascripts %}