{# vim: set ts=2 et sts=2 sw=2: #} {% extends "questions/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "upload/attachments.html" import attachments_form %} {% from "includes/common_macros.html" import content_editor %} {# L10n: {t} is the title of the question. #} {% set title = _('Editing an answer | {t} | Firefox Support Forum')|f(t=answer.question.title) %} {% set classes = 'answers' %} {% block content %}

{{ _('Edit an answer') }}

{{ csrf() }} {{ errorlist(form) }}
{{ content_editor(form.content) }}
{{ attachments_form('questions.Answer', answer.pk, answer.images.all(), settings, request.user) }}
{% if answer_preview %}

{{ _('Answer Preview:') }}

  1. {% set answer = answer_preview %} {% set question = answer.question %} {% include "questions/includes/answer.html" %}
{% endif %}
{% endblock %} {% block side %} {% endblock %}