{% extends "plainui/base.html" %}
{% import "plainui/components/form_elements.html" as formElements %}
{% import "plainui/components/markdown.html" as markdownMacro %}
{% import "plainui/components/nav.html" as navMacro with context %}
{% block title %}{{conf.name}} - {{ page.title }}{% endblock %}
{% block content %}
{{ navMacro.top_nav(_("Edit")) }}
{% if not lock_id %}
{% call alert.warning() %}
{{ _('This page is currently being edited by another user, please try again in a moment.') }}
{% endcall %}
{% elif not writeable %}
{% call alert.warning() %}
{{ _("Sorry, you don't have permission to edit this wiki page.") }}
{{ _("If you think this is an error please use the report functionality on this page and select 'technical issue'.") }}
{% endcall %}
{% elif page.is_localized %}
{% call alert.danger() %}
{{ _("Localized page.") }}
{{ _("Please note that this page is present in the current language only. It may have a (translated) copy in other language or not exist there at all.") }}
{% endcall %}
{% endif %}
{% if preview_body is defined %}
{{ markdownMacro.markdown(markdown=preview_body | safe) }}
{% endif %}
{% endblock %}
{% block jstools %}
{% if page_slug and lock_id %}
{% endif %}
{% endblock %}