{% set title = __("Edit post") %} {% set formId = "editpost" %} {% set formError = getAndClearFormError(formId) %} {% extends "base.twig" %} {% block content %}

{{ __("Edit post") }}

{% if formError %} {% include "components/alert_error.twig" with { message: formError } %} {% endif %}

{% include "components/post_editor.twig" with { name: "message", id: "i_message", value: lastFormField(formId, "message")|default(ctx.post.content) } %}
{{ __("Cancel") }}
{% endblock %}