{% requireAdmin %}

{% extends "_layouts/cp" %}
{% set title = plugin.name %}
{% set docTitle = title ~ ' - ' ~ "Plugins"|t('app') %}
{% set fullPageForm = true %}

{% set crumbs = [
    { label: "Settings"|t('app'), url: url('settings') },
    { label: "Plugins"|t('app'), url: url('settings/plugins') }
] %}

{% set formActions = [
    {
        label: 'Save and continue editing'|t('app'),
        redirect: "settings/plugins/#{plugin.handle}"|hash,
        shortcut: true,
        retainScroll: true,
    },
] %}


{% block content %}
    {{ actionInput('plugins/save-plugin-settings') }}
    {{ hiddenInput('pluginHandle', plugin.handle) }}
    {{ redirectInput('settings') }}
    {{ settingsHtml|raw }}
{% endblock %}
