1234567891011121314151617181920212223242526272829303132 |
- {% extends "cranefly/usercp/layout.html" %}
- {% load i18n %}
- {% load url from future %}
- {% import "_forms.html" as form_theme with context %}
- {% import "cranefly/editor.html" as editor with context %}
- {% import "cranefly/macros.html" as macros with context %}
- {% block title %}{{ macros.page_title(title=_('Edit your Signature')) }}{% endblock %}
- {% block action %}
- <h2>{% trans %}Edit your Signature{% endtrans %}</h2>
- {% if message %}{{ macros.draw_message(message, 'alert-form') }}{% endif %}
- {% if user.signature_preparsed %}
- <div class="well" style="margin: 0px; margin-bottom: 32px; padding: 12px;">
- <div class="markdown">
- {{ user.signature_preparsed|markdown_final|safe }}
- </div>
- </div>
- {% endif %}
- <form action="{% url 'usercp_signature' %}" method="post">
- <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
- {{ editor.editor(form.fields.signature, _('Save Signature'),
- hide_links=(not acl.usercp.allow_signature_links()),
- hide_images=(not acl.usercp.allow_signature_images()),
- hide_hr=True) }}
- </form>
- {% endblock %}
- {% block javascripts %}
- {{ super() }}
- {{ editor.js() }}
- {% endblock %}
|