signature.html 927 B

123456789101112131415161718192021222324
  1. {% extends "sora/usercp/layout.html" %}
  2. {% load i18n %}
  3. {% load url from future %}
  4. {% import "_forms.html" as form_theme with context %}
  5. {% import "sora/editor.html" as editor with context %}
  6. {% import "sora/macros.html" as macros with context %}
  7. {% block title %}{{ macros.page_title(title=_('Edit your Signature')) }}{% endblock %}
  8. {% block action %}
  9. <h2>{% trans %}Edit your Signature{% endtrans %}</h2>
  10. {% if message %}{{ macros.draw_message(message, 'alert-form') }}{% endif %}
  11. {% if user.signature_preparsed %}
  12. <div class="well" style="margin: 0px; margin-bottom: 32px; padding: 8px;">
  13. <div class="markdown">
  14. {{ user.signature_preparsed|safe }}
  15. </div>
  16. </div>
  17. {% endif %}
  18. <form action="{% url 'usercp_signature' %}" method="post">
  19. <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
  20. {{ editor.editor(form.fields.signature, _('Save Signature')) }}
  21. </form>
  22. {% endblock %}