{% extends "wagtailadmin/userbar/item_base.html" %}
{% load i18n wagtailadmin_tags %}

{% block item_content %}
    <form action="{% url 'wagtailadmin_pages:approve_moderation' self.revision.id %}" target="_parent" method="post">
        {% csrf_token %}
        <button type="submit" value="{% trans 'Approve' %}" class="button" role="menuitem">
            {% icon name="tick" class_name="wagtail-action-icon" %}
            {% trans 'Approve' %}
        </button>
    </form>
{% endblock %}
