{% 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 with context %} {# 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' %} {% set crumbs = [(url('questions.home'), _('Support Forums')), (url('questions.details', answer.question.id), answer.question.title), (None, _('Edit an answer'))] %} {% set ga_content_group = "support-forum-answer-edit" %} {% if answer.question.product %} {% set ga_products = "/" + answer.question.product.slug + "/" %} {% endif %} {% if answer.question.topic %} {% set ga_topics = "/" + answer.question.topic.slug + "/" %} {% endif %} {% block content %}

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

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

{{ _('When editing an answer, uploading new images or deleting existing ones will happen instantly.') }}

{{ _('Cancel') }}
{% if answer_preview %} {% include "questions/includes/answer_preview.html" %} {% endif %}
{% endblock %} {% block side %} {% endblock %}