{{ csrf() }}
{{ errorlist(revision_form) }} {% if collision %}

{% trans %} Please review the differences between your changes and the changes saved since you started editing. You may save again, but try to resolve any conflicts by hand so that the changes made since you started are not lost. {% endtrans %}

{{ _('Your Changes') }}

{{ _('Revision {id} by {user} on {date}')|fe(id=original_revision.id, user=original_revision.creator, date=datetimeformat(original_revision.created, format='longdatetime')) }}

{{ _('Current Revision:')|f(num=current_revision.id) }}

{{ _('Revision {id} by {user} on {date}')|fe(id=current_revision.id, user=current_revision.creator, date=datetimeformat(current_revision.created, format='longdatetime')) }}

{% set title = request.POST['title'] %} {% set slug = request.POST['slug'] %} {% set keywords = request.POST['request'] %} {% set summary = request.POST['summary'] %} {% if title and current_revision.title and title != current_revision.title %}

{{ _('Title:') }}

{{ title }}

{{ current_revision.title }}

{% endif %} {% if tags and current_revision.tags and tags != current_revision.tags %}

{{ _('Tags:') }}

{{ tags }}

{{ current_revision.tags }}

{% endif %} {% if keywords and current_revision.keywords and keywords != current_revision.keywords %}

{{ _('Keywords:') }}

{{ keywords }}

{{ current_revision.keywords }}

{% endif %} {% if summary and current_revision.summary and summary != current_revision.summary %}

{{ _('Search results summary:') }}

{{ summary }}

{{ current_revision.summary }}

{% endif %} {% if content and current_revision.content and content != current_revision.content %}

{{ _('Content:') }}

{{ diff_table(content, current_content, current_revision.id, "Proposed") }} {% endif %}
{% endif %} {% if waffle.flag('external_signup') %}

Do you have docs you want to automatically add to MDN from an external source? Let us know!

{% endif %}

{{ _('Editing {title}')|fe(title=revision.title) }}

{% if not section_id %} {{ _('Edit Page Title and Properties') }}
{% endif %} {% trans %}Draft {% endtrans %}

{% include 'wiki/includes/page_buttons.html' %} {% if revision_form and not section_id %} {% endif %} {% if not collision %} {{ revision_form.current_rev | safe }} {% endif %}
{% if revision_form %} {% if document.is_template %} {{ revision_form.content | safe }}
{% else %}
{{ revision_form.content | safe }}
{% endif %} {{ revision_form.hidden_fields()|join|safe }} {% include 'wiki/includes/revision_comment.html' %}
{% set tags = document.tags.all() %}

{{ _('Tags') }}

{{_('Review needed?')}}

{{ revision_form.review_tags|safe }}
{% endif %}
{% include 'wiki/includes/attachment_list.html' %}